chore: 配置更新
This commit is contained in:
@@ -6,7 +6,7 @@ try {
|
|||||||
baseUrl: site.baseUrl,
|
baseUrl: site.baseUrl,
|
||||||
imgDomain: site.baseUrl,
|
imgDomain: site.baseUrl,
|
||||||
h5Domain: site.baseUrl,
|
h5Domain: site.baseUrl,
|
||||||
uniacid: site.uniacid, //825
|
uniacid: site.uniacid,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (e) {}
|
} catch (e) {}
|
||||||
@@ -14,7 +14,7 @@ try {
|
|||||||
// 调试版本,配置说明
|
// 调试版本,配置说明
|
||||||
const devCfg = {
|
const devCfg = {
|
||||||
// 商户ID
|
// 商户ID
|
||||||
uniacid: 305, //825
|
uniacid: 460, //825
|
||||||
|
|
||||||
//api请求地址
|
//api请求地址
|
||||||
baseUrl: 'https://xcx30.5g-quickapp.com/',
|
baseUrl: 'https://xcx30.5g-quickapp.com/',
|
||||||
|
|||||||
@@ -58,7 +58,7 @@
|
|||||||
"quickapp" : {},
|
"quickapp" : {},
|
||||||
/* 小程序特有相关 */
|
/* 小程序特有相关 */
|
||||||
"mp-weixin" : {
|
"mp-weixin" : {
|
||||||
"appid" : "wx9377ddae89263145",
|
"appid" : "wx29215aa1bd97bbd6",
|
||||||
"setting" : {
|
"setting" : {
|
||||||
"urlCheck" : false,
|
"urlCheck" : false,
|
||||||
"postcss" : false,
|
"postcss" : false,
|
||||||
|
|||||||
@@ -41,7 +41,7 @@
|
|||||||
},
|
},
|
||||||
"compileType": "miniprogram",
|
"compileType": "miniprogram",
|
||||||
"libVersion": "2.16.1",
|
"libVersion": "2.16.1",
|
||||||
"appid": "wx59e6ba6050bbe7bc",
|
"appid": "wx29215aa1bd97bbd6",
|
||||||
"projectname": "niushop_b2c_v4_uniapp",
|
"projectname": "niushop_b2c_v4_uniapp",
|
||||||
"debugOptions": {
|
"debugOptions": {
|
||||||
"hidedInDevtools": []
|
"hidedInDevtools": []
|
||||||
|
|||||||
21
readme.md
21
readme.md
@@ -36,17 +36,22 @@
|
|||||||
|
|
||||||
```js
|
```js
|
||||||
// 发行版本,配置说明
|
// 发行版本,配置说明
|
||||||
const releaseCfg = {
|
let releaseCfg = undefined;
|
||||||
|
try {
|
||||||
|
if (site) {
|
||||||
|
releaseCfg = {
|
||||||
baseUrl: site.baseUrl,
|
baseUrl: site.baseUrl,
|
||||||
imgDomain: site.baseUrl,
|
imgDomain: site.baseUrl,
|
||||||
h5Domain: site.baseUrl,
|
h5Domain: site.baseUrl,
|
||||||
uniacid: site.uniacid, //825
|
uniacid: site.uniacid,
|
||||||
};
|
}
|
||||||
|
}
|
||||||
|
} catch (e) {}
|
||||||
|
|
||||||
// 调试版本,配置说明
|
// 调试版本,配置说明
|
||||||
const devCfg = {
|
const devCfg = {
|
||||||
// 商户ID
|
// 商户ID
|
||||||
uniacid: 305, //825
|
uniacid: 460, //825
|
||||||
|
|
||||||
//api请求地址
|
//api请求地址
|
||||||
baseUrl: 'https://xcx30.5g-quickapp.com/',
|
baseUrl: 'https://xcx30.5g-quickapp.com/',
|
||||||
@@ -76,8 +81,7 @@ const devCfg = {
|
|||||||
// h5Domain: 'http://saas.cn/',
|
// h5Domain: 'http://saas.cn/',
|
||||||
};
|
};
|
||||||
|
|
||||||
|
var config = {
|
||||||
export default {
|
|
||||||
/**
|
/**
|
||||||
* 1.开发调试模式
|
* 1.开发调试模式
|
||||||
* 去掉注释 ...devCfg;
|
* 去掉注释 ...devCfg;
|
||||||
@@ -88,8 +92,7 @@ export default {
|
|||||||
* 然后将 `import site from "../site.js";`追加到 `unpackage\dist\build\mp-weixin\common\vendor.js` 文件内容开头部分
|
* 然后将 `import site from "../site.js";`追加到 `unpackage\dist\build\mp-weixin\common\vendor.js` 文件内容开头部分
|
||||||
* 然后将 site.js 文件放到 `unpackage\dist\build\mp-weixin\` 目录下面
|
* 然后将 site.js 文件放到 `unpackage\dist\build\mp-weixin\` 目录下面
|
||||||
*/
|
*/
|
||||||
...devCfg,
|
...(releaseCfg ?? devCfg),
|
||||||
// ...releaseCfg,
|
|
||||||
|
|
||||||
|
|
||||||
// 腾讯地图key
|
// 腾讯地图key
|
||||||
@@ -104,6 +107,8 @@ export default {
|
|||||||
// 版本号
|
// 版本号
|
||||||
version: '1.0'
|
version: '1.0'
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export default config;
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user