From 166b9c6d7517fbff3a400e07d47d1f33c8634c69 Mon Sep 17 00:00:00 2001 From: Junjie <540245094@qq.com> Date: 星期六, 05 七月 2025 15:08:47 +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