From 349779c5a4e789cdf0b15530c98b9c981d4df57a Mon Sep 17 00:00:00 2001 From: zhang <zc857179121@qq.com> Date: 星期一, 09 六月 2025 14:21:36 +0800 Subject: [PATCH] 代码 --- pages/basics/matSelect.vue | 22 ++++++++++++++++++++-- 1 files changed, 20 insertions(+), 2 deletions(-) diff --git a/pages/basics/matSelect.vue b/pages/basics/matSelect.vue index 927d569..7267e48 100644 --- a/pages/basics/matSelect.vue +++ b/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 -- Gitblit v1.9.1