xuxueyang
2024-08-03 0c100f6c702db0dd8cf696c595e83fb3fead0232
sub_pages/customer/trade/list.vue
@@ -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)
@@ -270,11 +292,17 @@
         updateValue(item, value) {
            // item.value = value
            // this.$set(item, 'value', value)
            if (item.value.indexOf(value) < 0) {
               item.value.push(value)
            if (item.name == '优点' || item.name === '缺点') {
               if (item.value.indexOf(value) < 0) {
                  item.value.push(value)
               } else {
                  item.value.splice(item.value.indexOf(value), 1)
               }
            } else {
               item.value.splice(item.value.indexOf(value), 1)
               //单选
               item.value = [value]
            }
            this.$forceUpdate()
         },
         closeParamPop() {