From f3a018b6953e6c94ba47c72fbe184efa269a098c Mon Sep 17 00:00:00 2001
From: whycq <whycq>
Date: 星期二, 15 二月 2022 16:51:21 +0800
Subject: [PATCH] !

---
 pages/basics/comb.vue |   22 +++++++++++++++-------
 1 files changed, 15 insertions(+), 7 deletions(-)

diff --git a/pages/basics/comb.vue b/pages/basics/comb.vue
index fd35c02..ceefe66 100644
--- a/pages/basics/comb.vue
+++ b/pages/basics/comb.vue
@@ -118,11 +118,12 @@
 					return;
 				}
 				uni.request({
-					url:that.baseUrl+"/matCode/auth",
+					url: that.baseUrl + "/matCode/auth",
+					
 					header:{
 						'content-type':'application/x-www-form-urlencoded',
-						'token':localStorage.getItem('token'),	
-					},
+						'token':uni.getStorageSync('token')
+						},
 					data:{
 						id:thatId
 					},
@@ -196,7 +197,6 @@
 				let that = this
 				let barcode = that.code
 				if(barcode.length === 0){
-					console.log(1)
 					that.messageToggle('error')
 					that.messageText = '鎵樼洏鏉$爜涓虹┖'
 					return;
@@ -213,15 +213,23 @@
 				}
 				uni.request({
 					
-					url:that.baseUrl+"/mobile/comb/auth",
-					header:{'token':localStorage.getItem('token')},
+					url: that.baseUrl + "/mobile/comb/auth",
+					header:{
+						// #ifdef H5
+						'token':uni.getStorageSync('token')
+						// #endif
+						
+						// #ifdef APP-PLUS
+						'token': uni.getStorageSync('token')
+						// Authorization:uni.getStorageSync('token')
+						// #endif
+						},
 					data:{
 						barcode:barcode,
 						combMats:that.matData
 					},
 					method:'POST',
 					success:function(res){
-						console.log(res)
 						if(res.data.code===200){
 							that.reset()
 							that.messageToggle('success')

--
Gitblit v1.9.1