From 8edcbd986b0fee1e7d94fcfd69e619d4ab58ded2 Mon Sep 17 00:00:00 2001
From: whycq <whycq>
Date: 星期三, 23 二月 2022 16:59:45 +0800
Subject: [PATCH] #

---
 pages/basics/stockQuery.vue |   30 ++++++++++++++++++++++++------
 1 files changed, 24 insertions(+), 6 deletions(-)

diff --git a/pages/basics/stockQuery.vue b/pages/basics/stockQuery.vue
index 8f803b0..df2f787 100644
--- a/pages/basics/stockQuery.vue
+++ b/pages/basics/stockQuery.vue
@@ -25,8 +25,8 @@
 			</uni-table>
 			
 		</view>
-		<view>
-			<button class="cu-btn bg-grey pda-btn" @click="reset">閲嶇疆</button>
+		<view class="reset">
+			<button class="cu-btn bg-grey pda-btn1" @click="reset">閲� 缃�</button>
 		</view>
 	</view>
 </template>
@@ -39,6 +39,10 @@
 				matNo:'',
 				locDetlData:[],
 			}
+		},
+		mounted(){
+			const UIP = uni.getStorageSync('UIP');
+			this.baseIP = UIP
 		},
 		methods: {
 			reset:function() {
@@ -66,7 +70,7 @@
 			find(){
 				let that = this
 				uni.request({
-					url: that.baseUrl + "/mobile/locDetl/stockQuery",
+					url: that.baseHttp + that.baseIP + that.baseUrl + "/mobile/locDetl/stockQuery",
 					header:{
 						'content-type':'application/x-www-form-urlencoded',
 						'token':uni.getStorageSync('token')
@@ -81,9 +85,12 @@
 							if(res.data.data != null){
 								that.locDetlData = res.data.data
 							} else if (res.data.code ===403){
-								
+								uni.navigateBack({
+								    delta: 1
+								})
 							} else {
-								
+								this.messageToggle('error')
+								this.messageText = res.data.msg
 							}
 						}
 					}
@@ -95,5 +102,16 @@
 </script>
 
 <style>
-
+	.reset {
+		
+		position: absolute;
+		width: 750upx;
+		bottom: 80upx;
+	}
+	.pda-btn1 {
+		display: flex;
+		flex-direction:row;
+		justify-content: center;
+		width: 150upx;
+	}
 </style>

--
Gitblit v1.9.1