From 985c4f084d77d04e9982bf3f514702122dd151cd Mon Sep 17 00:00:00 2001
From: whycq <10027870+whycq@user.noreply.gitee.com>
Date: 星期六, 13 八月 2022 17:06:29 +0800
Subject: [PATCH] #

---
 pages/basics/test.vue |   46 ++++++++++++++++++++++++++++++++++++----------
 1 files changed, 36 insertions(+), 10 deletions(-)

diff --git a/pages/basics/test.vue b/pages/basics/test.vue
index 53b7476..75c4653 100644
--- a/pages/basics/test.vue
+++ b/pages/basics/test.vue
@@ -4,12 +4,23 @@
 			<view class="square-2">
 				<view class="square-title">
 					<view class="title-sign"><view class="sign"></view></view>
+					<view class="title-text"><text>閫氶亾</text></view>
+				</view>
+				<view>
+					<view style="width: 96%;margin-left: 2%;">
+						<uni-combox emptyTips="鏆傛棤鏁版嵁" :candidates="staNoList" v-model="staNo" placeholder="閫氶亾"></uni-combox>
+					</view>
+				</view>
+			</view>
+			<view class="square-2">
+				<view class="square-title">
+					<view class="title-sign"><view class="sign"></view></view>
 					<view class="title-text"><text>搴撲綅鍙�</text></view>
 				</view>
 				<view class="square-content">
 					<view class="content-input">
 						<input readonly="value" v-model="locNo" type="text" placeholder="鎵爜 / 杈撳叆" >
-						<uni-icons type="closeempty" size="20" color="#dadada" @click="removeBarcode()"></uni-icons>
+						<uni-icons type="closeempty" size="20" color="#dadada" @click="remove('locNo')"></uni-icons>
 					</view>
 				</view>
 			</view>
@@ -21,7 +32,7 @@
 				<view class="square-content">
 					<view class="content-input">
 						<input v-model="userId" type="text" placeholder="鎵爜 / 杈撳叆">
-						<uni-icons type="closeempty" size="20" color="#dadada" @click="foucss()"></uni-icons>
+						<uni-icons type="closeempty" size="20" color="#dadada" @click="remove('userId')"></uni-icons>
 					</view>
 				</view>
 			</view>
@@ -33,7 +44,7 @@
 				<view class="square-content">
 					<view class="content-input">
 						<input v-model="barcode" type="text" placeholder="鎵爜 / 杈撳叆">
-						<uni-icons type="closeempty" size="20" color="#dadada" @click="foucss()"></uni-icons>
+						<uni-icons type="closeempty" size="20" color="#dadada" @click="remove('barcode')"></uni-icons>
 					</view>
 				</view>
 			</view>
@@ -69,6 +80,8 @@
 				type: 'center',
 				msgType: 'success',
 				messageText: '杩欐槸涓�鏉℃垚鍔熸彁绀�',
+				staNoList:[1,2,3,4,5,6],
+				staNo:''
 			}
 		},
 		mounted(){
@@ -92,22 +105,35 @@
 			getUrl() {
 				this.commonUrl = this.baseHttp + this.baseIP + ':' +this.basePORT + "/" +this.baseUrl
 			},
+			// 娓呯┖input
+			remove(e) {
+				this[e] = ''
+			},
+			// 閲嶇疆
+			resst() {
+				this.staNo = ''
+				this.locNo = ''
+				this.userId = ''
+				this.barcode = ''
+			},
+			// 纭
 			confirm() {
 				let that = this
-				var testMast = {locNo:that.locNo,
-						userId:that.userId,
-						barcode:that.barcode}
 				uni.request({
-					url: that.commonUrl + '/test/startUp/auth',
+					url: that.commonUrl + '/mobile/test/startUp/auth',
 					data: {
-						testMast:testMast,
+						channel:that.staNo,
+						locNo:that.locNo,
+						userId:that.userId,
+						barcode:that.barcode
 					},
 					header: {
 						'token':uni.getStorageSync('token')
 					},
-					method: 'GET',
+					method: 'POST',
 					success(result) {
-						console.log(result)
+						var res = result.data
+						uni.showToast({title: res.msg,icon: "none",position: 'top'})
 					}
 				})
 			},

--
Gitblit v1.9.1