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'
@ -62,9 +62,9 @@ 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") {
@ -73,10 +73,8 @@ export default {
}); });
} }
} }
},
} });
})
} }
// 统一的响应日志记录 // 统一的响应日志记录
_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,7 +1,8 @@
{ {
"description": "项目配置文件。", "description": "项目配置文件。",
"packOptions": { "packOptions": {
"ignore": [] "ignore": [],
"include": []
}, },
"setting": { "setting": {
"urlCheck": false, "urlCheck": false,
@ -9,28 +10,20 @@
"postcss": false, "postcss": false,
"minified": false, "minified": false,
"newFeature": true, "newFeature": true,
"bigPackageSizeSupport": true "bigPackageSizeSupport": true,
"babelSetting": {
"ignore": [],
"disablePlugins": [],
"outputPath": ""
}
}, },
"compileType": "miniprogram", "compileType": "miniprogram",
"libVersion": "", "libVersion": "3.1.0",
"appid": "wx2ab0adfa3346d44f", "appid": "wx2ab0adfa3346d44f",
"projectname": "uni-Identify-quality", "projectname": "uni-Identify-quality",
"condition": { "condition": {},
"search": { "editorSetting": {
"current": -1, "tabIndent": "insertSpaces",
"list": [] "tabSize": 4
},
"conversation": {
"current": -1,
"list": []
},
"game": {
"current": -1,
"list": []
},
"miniprogram": {
"current": -1,
"list": []
}
} }
} }

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
} }