首次提交

This commit is contained in:
2023-09-19 15:16:44 +08:00
parent 9e3c9e794b
commit 0828a65606

View File

@ -14,20 +14,6 @@ var request = function(config) {
Authorization: 'Bearer' + ' ' + uni.getStorageSync('token')
},
success(res) {
if (res.data.code == 9999) {
uni.clearStorageSync();
let pages = getCurrentPages();
let path = pages[pages.length - 1].$page.fullPath
let paths = path.split('?')
if (paths == '/pages/integral/integral' || paths ==
'/pages/shopping/shopping' || paths ==
'/pages/coupon/coupon' || paths ==
'/pages/materialbenefits/materialbenefits') {} else {
uni.navigateTo({
url: '/pages/login/login'
})
}
}
uni.hideLoading();
resolve(res.data)
},