南网打包配置

This commit is contained in:
BianLzhaoMin 2024-10-08 09:02:37 +08:00
parent ddb64815d9
commit 6f2a317f72
27 changed files with 638 additions and 618 deletions

View File

@ -18,29 +18,30 @@ class HttpConfig {
// baseUrl = "https://z.csgmall.com.cn/gl" // baseUrl = "https://z.csgmall.com.cn/gl"
// baseUrl = "http://192.168.2.160:39080" // 梁超 // baseUrl = "http://192.168.2.160:39080" // 梁超
// baseUrl = "http://192.168.2.218:39080" // 福 // baseUrl = "http://192.168.2.218:39080" // 福
target = "http://192.168.0.119:21624"; // 开发阶段后台ip target = "http://192.168.2.74:49080"; // 开发阶段后台ip
// #endif // #endif
// 基地址 (部署时使用 需要加 dev-api // 基地址 (部署时使用 需要加 dev-api
// authPath = `${this.baseUrl}/dev-api/auth` // authPath = `${this.baseUrl}/dev-api/auth`
// systemPath = `${this.baseUrl}/dev-api/system` // systemPath = `${this.baseUrl}/dev-api/system`
// basePath = `${this.baseUrl}/dev-api/base` // basePath = `${this.baseUrl}/dev-api/base`
// materialPath = `${this.baseUrl}/dev-api/material` // materialPath = `${this.baseUrl}/dev-api/material`
baseUrl = ENV === "production" ? "http://192.168.0.56:21627" : this.target; baseUrl =
authPath =
ENV === "production" ENV === "production"
? `${this.baseUrl}/dev-api/auth` ? "https://test-cc.zhgkxt.com/sgzbgl-api"
: `${this.baseUrl}/auth`; : this.target;
authPath =
ENV === "production" ? `${this.baseUrl}/auth` : `${this.baseUrl}/auth`;
systemPath = systemPath =
ENV === "production" ENV === "production"
? `${this.baseUrl}/dev-api/system` ? `${this.baseUrl}/system`
: `${this.baseUrl}/system`; : `${this.baseUrl}/system`;
basePath = basePath =
ENV === "production" ENV === "production"
? `${this.baseUrl}/dev-api/material/base` ? `${this.baseUrl}/material/base`
: `${this.baseUrl}/material/base`; : `${this.baseUrl}/material/base`;
materialPath = materialPath =
ENV === "production" ENV === "production"
? `${this.baseUrl}/dev-api/material` ? `${this.baseUrl}/material`
: `${this.baseUrl}/material`; : `${this.baseUrl}/material`;
// 短链 // 短链
serviceUrl = { serviceUrl = {

View File

@ -19,8 +19,8 @@ class Http {
title: "登录状态过期,请重新登录!", title: "登录状态过期,请重新登录!",
success: () => { success: () => {
uni.reLaunch({ uni.reLaunch({
url: "/pages/login/login", // url: "/pages/login/login",
// url: "/pages/nwLogin/index", url: "/pages/nwLogin/index",
}); });
}, },
}); });
@ -56,8 +56,8 @@ class Http {
title: "登录状态过期,请重新登录!", title: "登录状态过期,请重新登录!",
success: () => { success: () => {
uni.reLaunch({ uni.reLaunch({
url: "/pages/login/login", // url: "/pages/login/login",
// url: "/pages/nwLogin/index", url: "/pages/nwLogin/index",
}); });
}, },
}); });
@ -93,8 +93,8 @@ class Http {
title: "登录状态过期,请重新登录!", title: "登录状态过期,请重新登录!",
success: () => { success: () => {
uni.reLaunch({ uni.reLaunch({
url: "/pages/login/login", // url: "/pages/login/login",
// url: "/pages/nwLogin/index", url: "/pages/nwLogin/index",
}); });
}, },
}); });
@ -129,8 +129,8 @@ class Http {
title: "登录状态过期,请重新登录!", title: "登录状态过期,请重新登录!",
success: () => { success: () => {
uni.reLaunch({ uni.reLaunch({
url: "/pages/login/login", // url: "/pages/login/login",
// url: "/pages/nwLogin/index", url: "/pages/nwLogin/index",
}); });
}, },
}); });
@ -163,8 +163,8 @@ class Http {
title: "登录状态过期,请重新登录!", title: "登录状态过期,请重新登录!",
success: () => { success: () => {
uni.reLaunch({ uni.reLaunch({
url: "/pages/login/login", // url: "/pages/login/login",
// url: "/pages/nwLogin/index", url: "/pages/nwLogin/index",
}); });
}, },
}); });

View File

@ -43,7 +43,14 @@
"<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>", "<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>",
"<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>", "<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>",
"<uses-feature android:name=\"android.hardware.camera\"/>", "<uses-feature android:name=\"android.hardware.camera\"/>",
"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>" "<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>",
"<uses-permission android:name=\"android.permission.WRITE_EXTERNAL_STORAGE\" />",
"<uses-permission android:name=\"android.permission.INSTALL_PACKAGES\" />",
"<uses-permission android:name=\"android.permission.REQUEST_INSTALL_PACKAGES\" />",
"<uses-permission android:name=\"android.permission.READ_LOGS\\\" />",
"<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\\\" />",
"<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\\\" />",
"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\\\" />"
] ]
}, },
/* ios */ /* ios */

View File

@ -48,7 +48,7 @@
{ {
"path": "pages/nwLogin/index", "path": "pages/nwLogin/index",
"style": { "style": {
"navigationBarTitleText": "南网登录" "navigationBarTitleText": "登录"
} }
}, },
{ {

File diff suppressed because it is too large Load Diff

View File

@ -434,8 +434,8 @@
uni.removeStorageSync("token"); uni.removeStorageSync("token");
uni.removeStorageSync("userInfo"); uni.removeStorageSync("userInfo");
uni.reLaunch({ uni.reLaunch({
url: "/pages/login/login", // url: "/pages/login/login",
// url: "/pages/nwLogin/index", url: "/pages/nwLogin/index",
}); });
}, },
}); });

View File

@ -644,8 +644,8 @@
uni.removeStorageSync("token"); uni.removeStorageSync("token");
uni.removeStorageSync("userInfo"); uni.removeStorageSync("userInfo");
uni.reLaunch({ uni.reLaunch({
url: "/pages/login/login", // url: "/pages/login/login",
// url: "/pages/nwLogin/index", url: "/pages/nwLogin/index",
}); });
}, },
}); });

View File

@ -273,12 +273,12 @@
success: () => { success: () => {
uni.removeStorageSync("token"); uni.removeStorageSync("token");
uni.removeStorageSync("userInfo"); uni.removeStorageSync("userInfo");
uni.reLaunch({
url: "/pages/login/login",
});
// uni.reLaunch({ // uni.reLaunch({
// url: "/pages/nwLogin/index", // url: "/pages/login/login",
// }); // });
uni.reLaunch({
url: "/pages/nwLogin/index",
});
}, },
}); });
} }

View File

@ -220,6 +220,8 @@
const { data: messageRes } = const { data: messageRes } =
await this.$api.login.getMessageCode(params); await this.$api.login.getMessageCode(params);
console.log("-----", messageRes, "-----");
if (messageRes.code === 200) { if (messageRes.code === 200) {
uni.showToast({ uni.showToast({
icon: "none", icon: "none",
@ -456,7 +458,7 @@
? "测试环境或者线上ip" ? "测试环境或者线上ip"
: "本地调试ip"; : "本地调试ip";
uni.request({ uni.request({
url: "http://192.168.0.119:21624/sgzbgl-api/code", url: "http://192.168.2.74:49080/code",
method: "GET", method: "GET",
}).then((res) => { }).then((res) => {
this.phoneCodeUrlNew = this.phoneCodeUrlNew =

View File

@ -72,8 +72,8 @@
uni.removeStorageSync("token"); uni.removeStorageSync("token");
uni.removeStorageSync("userInfo"); uni.removeStorageSync("userInfo");
uni.reLaunch({ uni.reLaunch({
url: "/pages/login/login", // url: "/pages/login/login",
// url: "/pages/nwLogin/index", url: "/pages/nwLogin/index",
}); });
} }
}, },

View File

@ -25,16 +25,16 @@ const router = createRouter({
}, },
}, },
// 重庆登录页 // 重庆登录页
{
path: "/pages/login/login",
name: "login",
},
// 南网登陆页
// { // {
// path: "/pages/nwLogin/index", // path: "/pages/login/login",
// name: "login", // name: "login",
// }, // },
// 南网登陆页
{
path: "/pages/nwLogin/index",
name: "login",
},
{ {
path: "/pages/fetchMaterial/fetchMaterial", path: "/pages/fetchMaterial/fetchMaterial",
name: "fetchMaterial", name: "fetchMaterial",

4
uniapp.pro Normal file
View File

@ -0,0 +1,4 @@
-keep class com.dcloud.** { *; }
-keep public class * extends io.dcloud.* {
*;
}

Binary file not shown.

View File

@ -1 +1 @@
https://app.liuyingyong.cn/build/download/ace9e090-602c-11ef-a76c-b5b4f2c19209 https://app.liuyingyong.cn/build/download/0c114b20-7d8f-11ef-8759-952981b5c6a0

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long