From 4ab124f41c545363113cf17d3a6a33100efbcb07 Mon Sep 17 00:00:00 2001
From: whycq <you@example.com>
Date: 星期六, 15 十月 2022 08:35:23 +0800
Subject: [PATCH] #

---
 pages/basics/matSelect.vue |   32 +++++++++++++++++++-------------
 1 files changed, 19 insertions(+), 13 deletions(-)

diff --git a/pages/basics/matSelect.vue b/pages/basics/matSelect.vue
index d98b6a2..97df00f 100644
--- a/pages/basics/matSelect.vue
+++ b/pages/basics/matSelect.vue
@@ -30,11 +30,14 @@
 							<view class="cu-tag bg-cyan ">鍟嗗搧</view>
 						</view>
 						<view class="matnr"><text style="width: 400rpx;">{{item.matnr}}</text></view>
-						<view class="matnr"><text style="width: 400rpx;">{{item.maktx}}</text></view>
+						<view class="matnr"><text style="width: 400rpx;">{{item.specs}}</text></view>
 					</view>
 				</label>
 			</checkbox-group>
 		</scroll-view>
+		<!-- <view class="record">
+			
+		</view> -->
 		</view>
 </template>
 
@@ -46,10 +49,6 @@
 				condition:null,
 				tag: [],
 				data: [],
-				baseHttp:'http://',
-				baseIP:'',
-				basePORT:'',
-				baseUrl:'/lywms'
 			}
 		},
 		onLoad() {
@@ -58,7 +57,7 @@
 			const eventChannel = this.getOpenerEventChannel();
 			
 			// 鐩戝惉acceptDataFromOpenerPage浜嬩欢锛岃幏鍙栦笂涓�椤甸潰閫氳繃eventChannel浼犻�佸埌褰撳墠椤甸潰鐨勬暟鎹�
-			eventChannel.on('acceptDataFromOpenerPage', function(data) {
+			eventChannel.on('commonUrl', function(data) {
 				that.commonUrl = data.commonUrl
 				that.showTag(1)
 			})
@@ -123,7 +122,7 @@
 						'token':uni.getStorageSync('token'),
 					},
 					success(result) {
-						console.log(result)
+						uni.hideLoading();
 						that.tag = null
 						that.data = null
 						var res = result.data
@@ -143,12 +142,12 @@
 						} else {
 							uni.showToast({title: res.msg, icon: "none",position: 'top'})
 						}
-						uni.hideLoading();
+						
 					}
 				});
 			},
 			showMat(tagId) {
-				uni.vibrateShort();
+				uni.showLoading();
 				let that = this
 				if (tagId == null || tagId == '' || tagId == undefined) {
 					return;
@@ -163,14 +162,13 @@
 						'token':uni.getStorageSync('token'),
 				    },
 					success(result) {
-						console.log(result)
+						uni.hideLoading();
 						that.tag = null
 						var res = result.data
 						if (res.code === 200) {
 							if (res.data != null && res.data.length > 0) {
-								uni.showLoading();
 								that.data = res.data
-								uni.hideLoading();
+								
 							} else {
 								// that.tagId = parentId
 							}
@@ -184,7 +182,7 @@
 						} else {
 							uni.showToast({title: res.msg, icon: "none",position: 'top'})
 						}
-						
+			
 					}
 				});
 			},
@@ -201,6 +199,14 @@
 </script>
 
 <style>
+	.record {
+		z-index: 1;
+		position: fixed;
+		top: 188rpx;
+		width: 100%;
+		min-height: 50rpx;
+		background-color: #6f6f6f;
+	}
 	.matnr {
 		margin-left: 60rpx;
 		margin-top: 20rpx;

--
Gitblit v1.9.1