xuxueyang
2024-08-03 0c100f6c702db0dd8cf696c595e83fb3fead0232
sub_pages/customer/trade/list.vue
@@ -59,7 +59,7 @@
         <view class="component-shop-item flex" v-for="(item,index) of list" :key="index">
            <view class="img" @click.stop="toDetail(item)">
               <image class="img img100" :class="[!item.stock?'component-stock-zero-tmp':'']" :src="item.cover">
               <image class="img img100" :class="[!item.stock?'component-stock-zero':'']" :src="item.cover">
               </image>
               <view class="level">
                  {{item.levelStr||''}}
@@ -184,7 +184,29 @@
               []
            ]
         }
      },
      },
      // #ifdef PUB_CUSTOMER
      onShareAppMessage() {
         let that = this;
         var name = that.currentInfo.customerDTO&&currentInfo.customerDTO.name || that.currentInfo.supplierDTO&&currentInfo.supplierDTO.name || that.currentInfo.partnerDTO&&currentInfo.partnerDTO.name || ''
         var url =
            `/sub_pages/customer/trade/list?category=${this.query.category}&zoneId=${this.query.zoneId}&name=${this.query.name}&shareId=${this.currentInfo&&this.currentInfo.id||''}&shareName=${name||''}`; //你的转发页面路径拼接参数
         return {
            title: "花满芫-商品列表",
            path: url,
         }
      },
      onShareTimeline() {
         let that = this;
         var name = that.currentInfo.customerDTO&&currentInfo.customerDTO.name || that.currentInfo.supplierDTO&&currentInfo.supplierDTO.name || that.currentInfo.partnerDTO&&currentInfo.partnerDTO.name || ''
         var url =
            `/sub_pages/customer/trade/list?category=${this.query.category}&zoneId=${this.query.zoneId}&name=${this.query.name}&shareId=${this.currentInfo&&this.currentInfo.id||''}&shareName=${name||''}`; //你的转发页面路径拼接参数
         return {
            title: "花满芫-商品列表",
            path: url,
         }
      },
      // #endif
      async onLoad(options) {
         // this.list = [{},{}]
         console.log('options', options)