This commit is contained in:
Aiden 2024-10-21 10:12:19 +08:00
parent 2a7e7bf957
commit 3d03a580fc
13 changed files with 57 additions and 74 deletions

View File

@ -1,3 +1,3 @@
export default { export default {
baseUrl: "https://stock.szjixun.cn", //"https://warehouse.szjixun.cn", // https://stock.szjixun.cn baseUrl: "https://warehouse.szjixun.cn", //"https://warehouse.szjixun.cn", // https://stock.szjixun.cn
}; };

View File

@ -4,7 +4,7 @@
*/ */
export default { export default {
config: { config: {
baseUrl: "https://stock.szjixun.cn", //"http://172.16.100.93:8017", //"http://192.168.88.175:9021",//测试 'https://warehouse.szjixun.cn' 正式 https://stock.szjixun.cn baseUrl: "https://warehouse.szjixun.cn", //"http://172.16.100.93:8017", //"http://192.168.88.175:9021",//测试 'https://warehouse.szjixun.cn' 正式 https://stock.szjixun.cn
header: { header: {
"Content-Type": "application/json;charset=UTF-8", "Content-Type": "application/json;charset=UTF-8",
// 'Content-Type':'application/x-www-form-urlencoded' // 'Content-Type':'application/x-www-form-urlencoded'
@ -61,22 +61,20 @@ export default {
} }
} }
if (response.data?.status === 401) { if (response.data?.status === 401) {
uni.showModal({ uni.showModal({
title:'登录后使用完整功能', title: "登录后使用完整功能",
success:(res)=>{ success: (res) => {
if (res.confirm){ if (res.confirm) {
let curPage = getCurrentPages(); let curPage = getCurrentPages();
let route = curPage[curPage.length - 1].route; //获取当前页面的路由 let route = curPage[curPage.length - 1].route; //获取当前页面的路由
if (route !== "pages/login/login") { if (route !== "pages/login/login") {
uni.navigateTo({ uni.navigateTo({
url: "/pages/login/login", url: "/pages/login/login",
}); });
}
} }
}
} },
}) });
} }
// 统一的响应日志记录 // 统一的响应日志记录
_reslog(response); _reslog(response);

File diff suppressed because one or more lines are too long

View File

@ -49,15 +49,7 @@
} }
}, },
"subpackages": [ "subpackages": [
{
"root": "pagesFace",
"name": "pagesFace",
"pages": [
"pages/index/index",
"pages/webview/webview",
"pages/middle/middle"
]
}
], ],
"usingComponents": {} "usingComponents": {}
} }

File diff suppressed because one or more lines are too long

View File

@ -1,4 +1,4 @@
{ {
"component": true, "usingComponents": {},
"usingComponents": {} "component": true
} }

View File

@ -1,36 +1,29 @@
{ {
"description": "项目配置文件。", "description": "项目配置文件。",
"packOptions": { "packOptions": {
"ignore": [] "ignore": [],
}, "include": []
"setting": {
"urlCheck": false,
"es6": false,
"postcss": false,
"minified": false,
"newFeature": true,
"bigPackageSizeSupport": true
},
"compileType": "miniprogram",
"libVersion": "",
"appid": "wx2ab0adfa3346d44f",
"projectname": "uni-Identify-quality",
"condition": {
"search": {
"current": -1,
"list": []
}, },
"conversation": { "setting": {
"current": -1, "urlCheck": false,
"list": [] "es6": false,
"postcss": false,
"minified": false,
"newFeature": true,
"bigPackageSizeSupport": true,
"babelSetting": {
"ignore": [],
"disablePlugins": [],
"outputPath": ""
}
}, },
"game": { "compileType": "miniprogram",
"current": -1, "libVersion": "3.1.0",
"list": [] "appid": "wx2ab0adfa3346d44f",
}, "projectname": "uni-Identify-quality",
"miniprogram": { "condition": {},
"current": -1, "editorSetting": {
"list": [] "tabIndent": "insertSpaces",
"tabSize": 4
} }
}
} }

View File

@ -1,7 +1,7 @@
{ {
"component": true,
"usingComponents": { "usingComponents": {
"u-loading-icon": "/uview-ui/components/u-loading-icon/u-loading-icon", "u-loading-icon": "/uview-ui/components/u-loading-icon/u-loading-icon",
"u-icon": "/uview-ui/components/u-icon/u-icon" "u-icon": "/uview-ui/components/u-icon/u-icon"
} },
"component": true
} }

View File

@ -1,4 +1,4 @@
{ {
"component": true, "usingComponents": {},
"usingComponents": {} "component": true
} }

View File

@ -1,6 +1,6 @@
{ {
"component": true,
"usingComponents": { "usingComponents": {
"u-line": "/uview-ui/components/u-line/u-line" "u-line": "/uview-ui/components/u-line/u-line"
} },
"component": true
} }

View File

@ -1,4 +1,4 @@
{ {
"component": true, "usingComponents": {},
"usingComponents": {} "component": true
} }

View File

@ -1,4 +1,4 @@
{ {
"component": true, "usingComponents": {},
"usingComponents": {} "component": true
} }

View File

@ -1,7 +1,7 @@
{ {
"component": true,
"usingComponents": { "usingComponents": {
"u-icon": "/uview-ui/components/u-icon/u-icon", "u-icon": "/uview-ui/components/u-icon/u-icon",
"u-loading-icon": "/uview-ui/components/u-loading-icon/u-loading-icon" "u-loading-icon": "/uview-ui/components/u-loading-icon/u-loading-icon"
} },
"component": true
} }