Merge branch 'master' of http://82.156.121.2:3000/abu/app
This commit is contained in:
commit
6ad4f76fa1
@ -1,14 +1,14 @@
|
|||||||
{
|
{
|
||||||
"version": "1",
|
"version": "4",
|
||||||
"prompt": "template",
|
"prompt": "template",
|
||||||
"title": "用户协议和隐私政策",
|
"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": "同意并接受",
|
"buttonAccept": "同意并接受",
|
||||||
"buttonRefuse": "暂不同意",
|
"buttonRefuse": "暂不同意",
|
||||||
"hrefLoader": "system|default",
|
"hrefLoader": "system|default",
|
||||||
"second": {
|
"second": {
|
||||||
"title": "确认提示",
|
"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": "同意并继续",
|
"buttonAccept": "同意并继续",
|
||||||
"buttonRefuse": "退出应用"
|
"buttonRefuse": "退出应用"
|
||||||
},
|
},
|
||||||
|
@ -12,19 +12,17 @@ const dev = {
|
|||||||
common: "http://43.143.227.203:8890",
|
common: "http://43.143.227.203:8890",
|
||||||
buyer: "http://43.143.227.203:8888",
|
buyer: "http://43.143.227.203:8888",
|
||||||
vlog: "http://43.143.227.203:8099",
|
vlog: "http://43.143.227.203:8099",
|
||||||
// vlog: "http://192.168.1.86:8099",
|
|
||||||
web: "http://43.143.227.203:8099",
|
web: "http://43.143.227.203:8099",
|
||||||
seller: "http://43.143.227.203:8889",
|
seller: "http://43.143.227.203:8889",
|
||||||
|
|
||||||
};
|
};
|
||||||
// 生产环境
|
// 生产环境
|
||||||
const prod = {
|
const prod = {
|
||||||
// common: "https://common-api.pickmall.cn",
|
// common: "http://192.168.1.211:8890",
|
||||||
// buyer: "https://buyer-api.pickmall.cn",
|
// buyer: "http://192.168.1.211:8888",
|
||||||
common: "http://43.143.227.203:8890",
|
common: "http://43.143.227.203:8890",
|
||||||
buyer: "http://43.143.227.203:8888",
|
buyer: "http://43.143.227.203:8888",
|
||||||
vlog: "http://43.143.227.203:8099",
|
vlog: "http://43.143.227.203:8099",
|
||||||
// vlog: "http://192.168.1.86:8099",
|
|
||||||
web: "http://43.143.227.203:8099",
|
web: "http://43.143.227.203:8099",
|
||||||
seller: "http://43.143.227.203:8889",
|
seller: "http://43.143.227.203:8889",
|
||||||
};
|
};
|
||||||
|
@ -6,6 +6,10 @@
|
|||||||
"versionCode" : 4000049,
|
"versionCode" : 4000049,
|
||||||
"transformPx" : false,
|
"transformPx" : false,
|
||||||
"app-plus" : {
|
"app-plus" : {
|
||||||
|
"android" : {
|
||||||
|
"versionCode" : 4000049, // Android 版本号
|
||||||
|
"versionName" : "4.0.0" // 用户看到的版本号
|
||||||
|
},
|
||||||
"compatible" : {
|
"compatible" : {
|
||||||
"ignoreVersion" : true //true表示忽略版本检查提示框,HBuilderX1.9.0及以上版本支持
|
"ignoreVersion" : true //true表示忽略版本检查提示框,HBuilderX1.9.0及以上版本支持
|
||||||
},
|
},
|
||||||
|
@ -3,6 +3,9 @@ import {
|
|||||||
refreshTokenFn
|
refreshTokenFn
|
||||||
} from "@/api/login.js";
|
} from "@/api/login.js";
|
||||||
import storage from "@/utils/storage.js";
|
import storage from "@/utils/storage.js";
|
||||||
|
import {
|
||||||
|
logout
|
||||||
|
} from '@/api/login';
|
||||||
import {
|
import {
|
||||||
md5
|
md5
|
||||||
} from "@/utils/md5.js";
|
} from "@/utils/md5.js";
|
||||||
@ -146,9 +149,7 @@ http.interceptors.response.use(
|
|||||||
// }
|
// }
|
||||||
|
|
||||||
let token = storage.getAccessToken();
|
let token = storage.getAccessToken();
|
||||||
if(response.statusCode === 408){
|
|
||||||
cleanStorage();
|
|
||||||
}
|
|
||||||
if (
|
if (
|
||||||
(token && response.statusCode === 403) ||
|
(token && response.statusCode === 403) ||
|
||||||
(token && response.data.status === 403)
|
(token && response.data.status === 403)
|
||||||
@ -208,12 +209,29 @@ http.interceptors.response.use(
|
|||||||
response.statusCode == 400
|
response.statusCode == 400
|
||||||
) {
|
) {
|
||||||
if (response.data.message) {
|
if (response.data.message) {
|
||||||
|
if (response.data.code == 408) {
|
||||||
|
uni.showModal({
|
||||||
|
title: '提示',
|
||||||
|
content: response.data.message,
|
||||||
|
showCancel: false,
|
||||||
|
success() {
|
||||||
|
logout().then(() => {
|
||||||
|
cleanStorage();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
})
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
// title: response.data.message,
|
title: response.data.message,
|
||||||
title: "请重试",
|
|
||||||
icon: "none",
|
icon: "none",
|
||||||
duration: 1500,
|
duration: 1500,
|
||||||
});
|
});
|
||||||
|
} else {
|
||||||
|
uni.showToast({
|
||||||
|
title: response.data.message,
|
||||||
|
icon: "none",
|
||||||
|
duration: 1500,
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else if (response.data.code == 502) {
|
} else if (response.data.code == 502) {
|
||||||
cleanStorage();
|
cleanStorage();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user