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 | 36 +++++++++++++++++++++++++++--------- 1 files changed, 27 insertions(+), 9 deletions(-) diff --git a/pages/basics/matSelect.vue b/pages/basics/matSelect.vue index 0ac5ea3..7267e48 100644 --- a/pages/basics/matSelect.vue +++ b/pages/basics/matSelect.vue @@ -27,11 +27,12 @@ @click="findBySelect(item.matnr)"> <view class="demo-list-right"> <view class="tag"> - <view class="cu-tag bg-cyan ">鍟嗗搧</view> + <view class="cu-tag bg-cyan "><strong>鍟嗗搧</strong></view> </view> - <view class="matnr" style="font-size: 16px;"><text style="min-width: 400rpx;font-size: 12px;">{{item.matnr}}</text></view> - <view class="matnr" style="font-size: 16px;"><text style="min-width: 400rpx;font-size: 12px;">{{item.maktx}}</text></view> - <view class="matnr" style="font-size: 16px;"><text style="min-width: 400rpx;font-size: 12px;">{{item.specs}}</text></view> + <view class="matnr" style="font-size: 16px;"><text style="min-width: 400rpx;font-size: 12px;"><strong>鍝佸悕:{{item.maktx}}</strong></text></view> + <view class="matnr" style="font-size: 16px;"><text style="min-width: 400rpx;font-size: 12px;"><strong>鍝佸彿:{{item.matnr}}</strong></text></view> + <view class="matnr" style="font-size: 16px;"><text style="min-width: 400rpx;font-size: 12px;"><strong>瑙勬牸:{{item.specs}}</strong></text></view> + <view class="matnr" style="font-size: 16px;"><text style="min-width: 400rpx;font-size: 12px;"><strong>宸ュ簭:{{item.sku}}</strong></text></view> </view> </label> </checkbox-group> @@ -51,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() { }, @@ -103,6 +121,7 @@ } } }); + }, showTag(parentId) { let that = this @@ -199,8 +218,7 @@ <style> .matnr { - margin-left: 60rpx; - margin-top: 20rpx; + margin: 10rpx auto 10rpx 60rpx; } .matnr:last-child { margin-top: 0rpx; @@ -282,7 +300,7 @@ } .demo-list { border-bottom: 1px solid #d8d8d8; - height: 220rpx; + height: 260rpx; margin: 15rpx; border-radius: 20rpx; } -- Gitblit v1.9.1