This commit is contained in:
陈浩 2025-05-03 18:38:27 +08:00
commit 6ad4f76fa1
4 changed files with 275 additions and 255 deletions

View File

@ -1,14 +1,14 @@
{
"version": "1",
"version": "4",
"prompt": "template",
"title": "用户协议和隐私政策",
"message": "  请你务必审慎阅读、充分理解“用户协议”和“隐私政策”各条款,包括但不限于:为了更好的向你提供服务,我们需要收集你的设备标识、操作日志等信息用于分析、优化应用性能。<br/>  你可阅读<a href=\"https://www.wzj.net.cn/yonhuxieyi.html\">《用户协议》</a>和<a href=\"http://www.wzj.net.cn/yinsizhengce.html\">《隐私政策》</a>了解详细信息。如果你同意,请点击下面按钮开始接受我们的服务。",
"message": "  请你务必审慎阅读、充分理解“用户协议”和“隐私政策”各条款,包括但不限于:为了更好的向你提供服务,我们需要收集你的设备标识、操作日志等信息用于分析、优化应用性能。<br/>  你可阅读<a href=\"https://www.wzj.net.cn/download/yonhuxieyi.html\">《用户协议》</a>和<a href=\"http://www.wzj.net.cn/download/yinsizhengce.html\">《隐私政策》</a>了解详细信息。如果你同意,请点击下面按钮开始接受我们的服务。",
"buttonAccept": "同意并接受",
"buttonRefuse": "暂不同意",
"hrefLoader": "system|default",
"second": {
"title": "确认提示",
"message": "  进入应用前,你需先同意<a href=\"https://wuzhongjie.com.cn/yonhuxieyi.html\" >《用户协议》</a>和<a href=\"http://wuzhongjie.com.cn/yinsizhengce.html\">《隐私政策》</a>,否则将退出应用。",
"message": "  进入应用前,你需先同意<a href=\"https://wuzhongjie.com.cn/download/yonhuxieyi.html\" >《用户协议》</a>和<a href=\"http://wuzhongjie.com.cn/download/yinsizhengce.html\">《隐私政策》</a>,否则将退出应用。",
"buttonAccept": "同意并继续",
"buttonRefuse": "退出应用"
},

View File

@ -12,19 +12,17 @@ const dev = {
common: "http://43.143.227.203:8890",
buyer: "http://43.143.227.203:8888",
vlog: "http://43.143.227.203:8099",
// vlog: "http://192.168.1.86:8099",
web: "http://43.143.227.203:8099",
seller: "http://43.143.227.203:8889",
};
// 生产环境
const prod = {
// common: "https://common-api.pickmall.cn",
// buyer: "https://buyer-api.pickmall.cn",
// common: "http://192.168.1.211:8890",
// buyer: "http://192.168.1.211:8888",
common: "http://43.143.227.203:8890",
buyer: "http://43.143.227.203:8888",
vlog: "http://43.143.227.203:8099",
// vlog: "http://192.168.1.86:8099",
web: "http://43.143.227.203:8099",
seller: "http://43.143.227.203:8889",
};

View File

@ -6,6 +6,10 @@
"versionCode" : 4000049,
"transformPx" : false,
"app-plus" : {
"android" : {
"versionCode" : 4000049, // Android
"versionName" : "4.0.0" //
},
"compatible" : {
"ignoreVersion" : true //trueHBuilderX1.9.0
},

View File

@ -3,6 +3,9 @@ import {
refreshTokenFn
} from "@/api/login.js";
import storage from "@/utils/storage.js";
import {
logout
} from '@/api/login';
import {
md5
} from "@/utils/md5.js";
@ -146,9 +149,7 @@ http.interceptors.response.use(
// }
let token = storage.getAccessToken();
if(response.statusCode === 408){
cleanStorage();
}
if (
(token && response.statusCode === 403) ||
(token && response.data.status === 403)
@ -208,12 +209,29 @@ http.interceptors.response.use(
response.statusCode == 400
) {
if (response.data.message) {
if (response.data.code == 408) {
uni.showModal({
title: '提示',
content: response.data.message,
showCancel: false,
success() {
logout().then(() => {
cleanStorage();
});
}
})
uni.showToast({
// title: response.data.message,
title: "请重试",
title: response.data.message,
icon: "none",
duration: 1500,
});
} else {
uni.showToast({
title: response.data.message,
icon: "none",
duration: 1500,
});
}
}
} else if (response.data.code == 502) {
cleanStorage();