zhang
2025-06-09 349779c5a4e789cdf0b15530c98b9c981d4df57a
pages/basics/matSelect.vue
@@ -52,16 +52,33 @@
      },
      onLoad() {
         let that = this
         // const eventChannel = this.$scope.eventChannel; // 兼容APP-NVUE
         // #ifdef APP-NVUE
         const eventChannel = this.$scope.eventChannel; // 兼容APP-NVUE
         // #endif
         // #ifndef APP-NVUE
         const eventChannel = this.getOpenerEventChannel();
         // #endif
         
         // 监听acceptDataFromOpenerPage事件,获取上一页面通过eventChannel传送到当前页面的数据
         eventChannel.on('commonUrl', function(data) {
            that.commonUrl = data.commonUrl
            that.showTag(1)
         })
      },
      mounted(){
         const UIP = uni.getStorageSync('UIP');
         this.baseIP = UIP;
         const UPORT = uni.getStorageSync('UPORT');
         this.basePORT = UPORT
         const PROJ = uni.getStorageSync('UPROJ');
         this.baseUrl = PROJ
         this.getUrl()
      },
      methods: {
         // 获取url
         getUrl() {
            this.commonUrl = this.baseHttp + this.baseIP + ':' +this.basePORT + "/" +this.baseUrl
         },
         checkbox() {
            
         },
@@ -104,6 +121,7 @@
                  }
               }
            });
         },
         showTag(parentId) {
            let that = this