3.18 患者端

This commit is contained in:
zoujiandong
2024-03-18 16:43:38 +08:00
parent faa8070ec3
commit 43153c15a7
102 changed files with 4477 additions and 357 deletions
+1 -2
View File
@@ -15,6 +15,7 @@ function request(url, method, data, loding = false) {
// })
}
let token = wx.getStorageSync('AUTH_TOKEN');
console.log(token);
if (!token) {
let freelist = ["/login/wechat_mobile_login", '/login/mobile_login','/code/phone','/patient/index',"/popup","/sign/im"];//接口白名单
let currentUrl=getCurrentPageUrl();
@@ -44,8 +45,6 @@ function request(url, method, data, loding = false) {
data: data,
header: header,
success: function (res) {
console.log('-----------------------------');
console.log(res);
var Authorization_token = res.header.Authorization;
if (Authorization_token) {
wx.setStorageSync('AUTH_TOKEN', Authorization_token); //当token快过期时,服务器会返回新token,本地刷新