chore: 配置更新

This commit is contained in:
2025-10-30 09:17:54 +08:00
parent 19ba4856a4
commit 66bf2504e0
5 changed files with 197 additions and 192 deletions

View File

@@ -6,7 +6,7 @@ try {
baseUrl: site.baseUrl,
imgDomain: site.baseUrl,
h5Domain: site.baseUrl,
uniacid: site.uniacid, //825
uniacid: site.uniacid,
}
}
} catch (e) {}
@@ -14,7 +14,7 @@ try {
// 调试版本,配置说明
const devCfg = {
// 商户ID
uniacid: 305, //825
uniacid: 460, //825
//api请求地址
baseUrl: 'https://xcx30.5g-quickapp.com/',

View File

@@ -58,7 +58,7 @@
"quickapp" : {},
/* */
"mp-weixin" : {
"appid" : "wx9377ddae89263145",
"appid" : "wx29215aa1bd97bbd6",
"setting" : {
"urlCheck" : false,
"postcss" : false,

View File

@@ -41,7 +41,7 @@
},
"compileType": "miniprogram",
"libVersion": "2.16.1",
"appid": "wx59e6ba6050bbe7bc",
"appid": "wx29215aa1bd97bbd6",
"projectname": "niushop_b2c_v4_uniapp",
"debugOptions": {
"hidedInDevtools": []

View File

@@ -36,17 +36,22 @@
```js
// 发行版本,配置说明
const releaseCfg = {
let releaseCfg = undefined;
try {
if (site) {
releaseCfg = {
baseUrl: site.baseUrl,
imgDomain: site.baseUrl,
h5Domain: site.baseUrl,
uniacid: site.uniacid, //825
};
uniacid: site.uniacid,
}
}
} catch (e) {}
// 调试版本,配置说明
const devCfg = {
// 商户ID
uniacid: 305, //825
uniacid: 460, //825
//api请求地址
baseUrl: 'https://xcx30.5g-quickapp.com/',
@@ -76,8 +81,7 @@ const devCfg = {
// h5Domain: 'http://saas.cn/',
};
export default {
var config = {
/**
* 1.开发调试模式
* 去掉注释 ...devCfg;
@@ -88,8 +92,7 @@ export default {
* 然后将 `import site from "../site.js";`追加到 `unpackage\dist\build\mp-weixin\common\vendor.js` 文件内容开头部分
* 然后将 site.js 文件放到 `unpackage\dist\build\mp-weixin\` 目录下面
*/
...devCfg,
// ...releaseCfg,
...(releaseCfg ?? devCfg),
// 腾讯地图key
@@ -104,6 +107,8 @@ export default {
// 版本号
version: '1.0'
};
export default config;
```

View File

@@ -1,4 +1,4 @@
module.exports = {
baseUrl: "https://xcx30.5g-quickapp.com/",//修改域名
uniacid: 305,//后台对应uniacid
uniacid: 460,//后台对应uniacid
};