项目初始化

This commit is contained in:
wyw 2025-11-12 10:04:44 +08:00
parent 5df8a474bb
commit 99c0f55fa8
2 changed files with 56 additions and 60 deletions

View File

@ -1,79 +1,79 @@
const getServiceHost = api => {
const apimodules = [{
OP: 3116
OP: 5116
}, {
BD: 3101
BD: 5101
}, {
DD: 3102
DD: 5102
}, {
EA: 3103
EA: 5103
}, {
ED: 3104
ED: 5104
}, {
EM: 3105
EM: 5105
}, {
FC: 3106
FC: 5106
},
{
FM: 3107
FM: 5107
}, {
KR: 3108
KR: 5108
}, {
LG: 3109
LG: 5109
}, {
MR: 3110
MR: 5110
}, {
NW: 3111
NW: 5111
}, {
PF: 3112
PF: 5112
}, {
PM: 3113
PM: 5113
}, {
QC: 3114
QC: 5114
}, {
FW: 3115
FW: 5115
}, {
OP: 3116
OP: 5116
},
{
HM: 3117
HM: 5117
}, {
PP: 3118
PP: 5118
}, {
FO: 3119
FO: 5119
}, {
UT: 3177
UT: 5177
}, {
BS: 3178
BS: 5178
}, {
SC: 3179
SC: 5179
}, {
TI: 3179
TI: 5179
}, {
SE: 3179
SE: 5179
}, {
AE: 3179
AE: 5179
}, {
PT: 3179
PT: 5179
}, {
LR: 3179
LR: 5179
}, {
OG: 3179
OG: 5179
}, {
PE: 3179
PE: 5179
}, {
OH: 3179
OH: 5179
}, {
CM: 3179
CM: 5179
}, {
PR: 3179
PR: 5179
}, {
DM: 3179
DM: 5179
}, {
BI: 3179
BI: 5179
}
]
let port = 3112
let port = 5112
for (let i = 0; i < apimodules.length; i++) {
const apimodule = apimodules[i]
const key = Object.keys(apimodule)[0]
@ -86,7 +86,7 @@ const getServiceHost = api => {
}
// 发行APP前先确定要发布的版本
let APP_ENV = 'release' // release: 发行版 debug:开发环境 beta: 测试版
let APP_ENV = 'dev' // release: 发行版 debug:开发环境 beta: 测试版
let configURL
if (APP_ENV === "dev") {
//本地环境
@ -98,7 +98,7 @@ if (APP_ENV === "dev") {
},
uni_app_web_url: "", //
uni_app_web_api_url: "http://localhost", // 请求接口的地址
uni_app_web_source_url: "http://localhost:3199", // 资源地址
uni_app_web_source_url: "http://localhost:5199", // 资源地址
uni_app_web_local_api_url: "http://localhost", // 请求接口的地址
uni_app_url: "http121.41.2.71:9100",
qrcode_url: "http://121.41.2.71:9201"
@ -113,7 +113,7 @@ if (APP_ENV === "dev") {
},
uni_app_web_url: "", //
uni_app_web_api_url: "http://121.41.2.71", // 请求接口的地址
uni_app_web_source_url: "http://121.41.2.71:3199", // 资源地址
uni_app_web_source_url: "http://121.41.2.71:5199", // 资源地址
uni_app_web_local_api_url: "http://121.41.2.71", // 请求接口的地址
uni_app_url: "http://121.41.2.71:9100",
qrcode_url: "http://121.41.2.71:9201"
@ -127,11 +127,11 @@ if (APP_ENV === "dev") {
return `${this.uni_app_web_local_api_url}:${apis}`
},
uni_app_web_url: "",
uni_app_web_api_url: "http://xmmhe.com",
uni_app_web_source_url: "http://xmmhe.com:3199",
qrcode_url: "http://xmmhe.com:9201",
uni_app_url: "http://xmmhe.com:9100",
uni_app_web_local_api_url: "http://xmmhe.com"
uni_app_web_api_url: "http://124.117.209.78",
uni_app_web_source_url: "http://124.117.209.78:5199",
qrcode_url: "http://124.117.209.78:9201",
uni_app_url: "http://124.117.209.78:9100",
uni_app_web_local_api_url: "http://124.117.209.78"
}
} else {
//开发 debug

View File

@ -45,25 +45,21 @@
baseList: [],
company: '',
dataLists: [{
name: '行洛坑',
code: 'XLK',
id: 'B043B28B-BBC3-C452-6052-4FBA1457ABFA',
tenantId: '0001'
name: '且末县邦泰矿业',
id: '00500000-0000-0000-0000-000000000000',
tenantId: '005'
}, {
name: '都昌金鼎',
code: 'DCJD',
id: '8B3C41AA-51B1-7CE9-1879-248A038C1B5C',
tenantId: 'A0000025'
name: '新疆路源矿业',
id: '01000000-0000-0000-0000-000000000000',
tenantId: '010'
}, {
name: '洛阳豫鹭',
code: 'LYYL',
id: 'D9871BA8-0EEC-9E4A-BB87-7D5A540D8913',
tenantId: 'A0000024'
name: '新疆金能昆仑矿业',
id: '01500000-0000-0000-0000-000000000000',
tenantId: '015'
}, {
name: '广西博白',
code: 'GXBB',
id: '3EFD5276-632B-E379-9FF3-7A7546591FCA',
tenantId: 'A0000028'
name: '新疆西拓矿业',
id: '02000000-0000-0000-0000-000000000000',
tenantId: '020'
}],
selectorInfo: {
showPopup: false,