From ea2c02f9c775c3aadc5a11fbe1c97d8c59561b4b Mon Sep 17 00:00:00 2001
From: whycq <10027870+whycq@user.noreply.gitee.com>
Date: 星期二, 29 十一月 2022 08:46:04 +0800
Subject: [PATCH] #

---
 pages/basics/order.vue |   36 +++++++++++++++---------------------
 1 files changed, 15 insertions(+), 21 deletions(-)

diff --git a/pages/basics/order.vue b/pages/basics/order.vue
index 752f385..541320f 100644
--- a/pages/basics/order.vue
+++ b/pages/basics/order.vue
@@ -9,7 +9,7 @@
 				<view class="square-content">
 					<view class="content-input">
 						<input  v-model="barcode" type="text" placeholder="鎵爜 / 杈撳叆" maxlength="10"
-						:focus="barcodeFocus" @input="barcodeInput">
+						:focus="barcodeFocus" @input="barcodeInput" placeholder-style="line-height:  85rpx;">
 						<uni-icons type="closeempty" size="20" color="#dadada" @click="removeBarcode()"></uni-icons>
 					</view>
 				</view>
@@ -23,7 +23,7 @@
 				<view class="square-content">
 					<view class="content-input">
 						<input v-model="order" type="text" placeholder="鎵爜 / 杈撳叆" @input="findOrder()"
-						:focus="focus">
+						:focus="focus" placeholder-style="line-height:  85rpx;">
 						<uni-icons type="closeempty" size="20" color="#dadada" @click="removeOrder()"></uni-icons>
 					</view>
 				</view>
@@ -33,17 +33,6 @@
 				<view class="square-title">
 					<view class="title-sign"><view class="sign"></view></view>
 					<view class="title-text"><text>鍟嗗搧鍒楄〃</text></view>
-					<view v-show="matList.length != 0" class="lable">
-						<label class="label-btn" style="width: 170rpx;line-height: 95rpx;"  >
-							<checkbox :checked="check" @click="allChecked()">{{checkText}}</checkbox>
-						</label>
-						<label class="label-btn"  >
-							<text  @click="reChecked()">鍙嶉��</text>
-						</label>
-						<label >
-							<uni-icons type="trash" size="25" color="#a5a5a5" @click="remove()"></uni-icons>
-						</label>
-					</view>
 				</view>
 				
 			</view>
@@ -125,6 +114,7 @@
 	export default {
 		data() {
 			return {
+				commonUrl:null,
 				barcode: '',
 				barcodeFocus:true,
 				focus:false,
@@ -150,8 +140,15 @@
 			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
+			},
 			// barcode input 浜嬩欢
 			barcodeInput() {
 				var len = this.barcode.length
@@ -283,7 +280,7 @@
 				}
 				uni.showLoading();
 				uni.request({
-				    url: that.baseHttp + that.baseIP + ':' +that.basePORT + that.baseUrl + '/mobile/comb/auth',
+				    url: that.commonUrl + '/mobile/comb/auth',
 				    data: JSON.stringify({
 						orderNo: that.orderNo,
 						barcode: that.barcode,
@@ -291,7 +288,7 @@
 					}),
 					method: 'POST',
 				    header: {
-						'token':uni.getStorageSync('token')
+						'token':uni.getStorageSync('token'),
 				    },
 					success(result) {
 						uni.showLoading();
@@ -299,13 +296,10 @@
 						if (res.code === 200) {
 							uni.showToast({
 								title: res.msg,
-								position: 'bottom',
+								position: 'top',
 								duration: 1000
 							});
-							that.barcode = ''
-							that.orderNo = ''
-							that.order = ''
-							that.matList = []
+							that.resst()
 						} else if (res.code == 403) {
 							uni.showToast({title: res.msg, icon: "none", position: 'top'})
 							setTimeout(() => {
@@ -322,7 +316,7 @@
 			findOrder() {
 				let that = this
 				uni.request({
-				    url: that.baseHttp + that.baseIP + ':' +that.basePORT + that.baseUrl + '/mobile/order/search/orderNo/auth',
+				    url: that.commonUrl + '/mobile/order/search/orderNo/auth',
 				    data: {
 						orderNo: that.order
 				    },

--
Gitblit v1.9.1