twt 8 月之前
父节点
当前提交
907c46f66f
共有 1 个文件被更改,包括 9 次插入9 次删除
  1. 9 9
      utils/request.js

+ 9 - 9
utils/request.js

@@ -1,7 +1,7 @@
 //测试地址
-const baseUrl = 'http://api.dms.66km.com.cn/'
+//const baseUrl = 'http://api.dms.66km.com.cn/'
 //const baseUrl = 'http://dms.66km.com.cn/'
-//const baseUrl = 'http://192.168.0.146:20187/'
+//const baseUrl = 'http://192.168.0.32:20187/'
 //const baseUrl = 'http://syadmin.66km.com/'
 //正式地址-66
 //const baseUrl = 'http://apidms.66km.com/'
@@ -9,7 +9,7 @@ const baseUrl = 'http://api.dms.66km.com.cn/'
 //const baseUrl = 'https://crm.eurorepar.cn/'
 //安徒生
 //const baseUrl = 'http://dms-api.lhrhy.cn/'
-//const baseUrl = '//store-api.qdbtl.cn/'
+ const baseUrl = '//store-api.qdbtl.cn/' 
 import $store from '../store'
 
 const http = (url = '', date = {}, type = 'POST', header = {
@@ -22,7 +22,7 @@ const http = (url = '', date = {}, type = 'POST', header = {
 		 	header['accessToken']=wxOpenData.loginInfo.token;
 	 	   header['uid']=wxOpenData.loginInfo.uid; 
 		 }
-		console.log(wxOpenData.loginInfo.token)
+		//console.log(wxOpenData.loginInfo.token)
 		//header['token']='870347EA782D4A8D90848EEDF6A0B327';
 		//header['uid']='BD04C2D5-0C07-40C9-9F8A-91BB30EDF2F6'; 
 		header['Content-Type']='application/x-www-form-urlencoded';
@@ -40,11 +40,11 @@ const http = (url = '', date = {}, type = 'POST', header = {
             let [error, res] = response;
 		 
 			if(res.data.code==401||res.data.code==403){
-				//  uni.showToast({
-				//      title: res.data.msg,
-				//  	 icon:'none',
-				//      duration: 3000,
-				//  });
+				/* uni.showToast({
+				     title: res.data.msg,
+				 	 icon:'none',
+			         duration: 3000,
+				 }); */
 				 uni.clearStorageSync()
 				//  uni.navigateTo({
 				// 	url:'../login/login'