doum
10 小时以前 ba96b41cd635e19b593b69ab6506c2f33aefc516
mini-program/pagesA/pages/product-management/product-management.vue
@@ -62,8 +62,8 @@
               <image :src="item.imgurl?item.imgurl:'/static/icon/default2.png'" mode="widthFix"></image>
            </view>
            <view class="list-item-info">
               <view class="list-item-info-title">{{item.name}} 适用雷沃/中联/久保田</view>
               <view class="price">¥{{item.price}}</view>
               <view class="list-item-info-title">{{item.name || 0}} {{item.brandNames?' 适用'+item.brandNames:''}}</view>
               <view class="price">¥{{(item.minPrice || 0).toFixed(2) }}</view>
               <view class="list-item-info-label">
                  <text>供货价¥{{(item.exFactoryPrice || 0).toFixed(2)}}</text>
                  <text>本店销量:{{item.realSaleNum || 0}}</text>
@@ -119,11 +119,8 @@
            list: [],
            paixu: [
               { name: '默认排序', id: '', active: true },
               { name: '综合排序', id: 0, active: false },
               { name: '销量由低到高', id: 1, active: false },
               { name: '价格由低到高', id: 2, active: false },
               { name: '销量由高到低', id: 3, active: false },
               { name: '价格由高到低', id: 4, active: false },
               { name: '销量由高到低', id: 3, active: false },
               { name: '价格由低到高', id: 2, active: false }
            ],
            pingpai: [],
            xilie: [],
@@ -200,9 +197,9 @@
               model: this.form
            }).then(res => {
               if (res.code === 200) {
                  res.data.records.forEach(item => {
               /*    res.data.records.forEach(item => {
                     item.minPrice = item.minPrice.toFixed(2).split('.')
                  })
                  }) */
                  this.goodsList.push(...res.data.records)
                  this.page++
                  if (this.goodsList.length === res.data.total) {
@@ -249,7 +246,8 @@
                  if (res.code === 200) {
                     this.show = null
                     this.search()
                     if (res.data.length === 0) return uni.showToast({
                     if (res.data.length === 0)
                     return uni.showToast({
                        title: '当前品牌下暂无系列',
                        icon: 'none'
                     })