chore: 配置更新
This commit is contained in:
@@ -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/',
|
||||
|
||||
@@ -58,7 +58,7 @@
|
||||
"quickapp" : {},
|
||||
/* 小程序特有相关 */
|
||||
"mp-weixin" : {
|
||||
"appid" : "wx9377ddae89263145",
|
||||
"appid" : "wx29215aa1bd97bbd6",
|
||||
"setting" : {
|
||||
"urlCheck" : false,
|
||||
"postcss" : false,
|
||||
|
||||
@@ -41,7 +41,7 @@
|
||||
},
|
||||
"compileType": "miniprogram",
|
||||
"libVersion": "2.16.1",
|
||||
"appid": "wx59e6ba6050bbe7bc",
|
||||
"appid": "wx29215aa1bd97bbd6",
|
||||
"projectname": "niushop_b2c_v4_uniapp",
|
||||
"debugOptions": {
|
||||
"hidedInDevtools": []
|
||||
|
||||
21
readme.md
21
readme.md
@@ -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;
|
||||
```
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user