#
whycq
2023-11-20 81ea5bc4134ec65263adcd340a4534685e8f36c3
pages/business/saleManage/saleManageDetails.vue
@@ -83,13 +83,26 @@
         }
      },
      onLoad(option) { 
         this.id = option.id
         console.log(option);
         this.init()
         this.autoLoad('follower','')
         setTimeout(()=>{
            this.getFollowers()
         },500)
         if (option == '') {
            this.id = option.id
            this.init()
            this.autoLoad('follower','')
            setTimeout(()=>{
               this.getFollowers()
            },500)
         } else {
            let _this = this
            const eventChannel = this.getOpenerEventChannel();
            eventChannel.on('saleManage', function(data) {
               _this.id = data.data
               _this.init()
               console.log(data.data);
            })
            this.autoLoad('follower','')
            setTimeout(()=>{
               this.getFollowers()
            },500)
         }
      },
      methods: {
         init() {
@@ -228,8 +241,14 @@
            })
         },
         goBusiness() {
            let _this = this
            // console.log(_this.saleManage);
            uni.navigateTo({
               url: '/pages/business/goBusiness/addgoBusiness',
               success: function(res) {
                   // 通过eventChannel向被打开页面传送数据
                   res.eventChannel.emit('addType', { data: {orderId: _this.saleManage.cstmrId,comeFrom: 'saleManage'} })
               }
            })
         }
      }