绿满眶商城微信小程序-uniapp
peng
2025-09-08 f91b8ab866a25cc79b0438952873c9b9463607ec
pages/goods-manager/goodsList/goodsList.vue
@@ -28,13 +28,14 @@
                        <text>.00</text>
                     </view>
                     <view class="uni-flex-row">
                        <view class="uni-note">{{ item.commentNum || 0 }}条评论 月销量 {{
                           item.buyCount || 0 }}
                        <view class="uni-note">{{ item.commentNum || 0 }}条评论
                        </view>
                        <view class="uni-note ellipsis">
                           <text :class="item.marketEnable == 'DOWN' ? 'market-down' : 'market-up'">{{
                              item.marketEnable == 'DOWN' ? "已下架" : "已上架" }}</text>
                           <!-- <text :class="item.marketEnable == 'DOWN' ? 'market-down' : 'market-up'">{{
                              item.marketEnable == 'DOWN' ? "已下架" : "已上架" }}</text> -->
                           <text :class="item.authFlag == 'TOBEAUDITED' ? 'market-down' : item.authFlag == 'PASS' ? 'market-up' : 'market-down'">
                             {{ item.authFlag == 'TOBEAUDITED' ? "待审核" : (item.authFlag == 'PASS' ? '通过' : '未通过') }}
                           </text>
                           <!--<text class="uni-link" style="color:red;">删除</text> -->
                        </view>
                     </view>
@@ -71,12 +72,11 @@
<script>
import UIcon from '@/uview-components/uview-ui/components/u-icon/u-icon.vue';
import '@/components/uview-components/uview-ui';
import * as API_GOODS from "@/api/goods.js";
export default {
   components: { UIcon },
   data() {
      return {
         formData: {
@@ -142,8 +142,8 @@
         });
      },
      toggle(item) {
         this.$refs.popup.open('bottom')
         this.selectGoods = item;
         // this.$refs.popup.open('bottom')
         // this.selectGoods = item;
      },
      getGoodsList() {
@@ -159,7 +159,7 @@
      },
      addGoods(id) {
         uni.navigateTo({
            url: `/pages/goods-manager/addGoods/addGoods${id ? "?id=" + id : ""}`,
            url: `/pages/supplier/publish-goods/publishGoods`,
         });
      }