8a4eeec1 by simon

默认提交

1 parent ddde4ea3
......@@ -14,7 +14,7 @@
"window": {
"backgroundTextStyle": "light",
"navigationBarBackgroundColor": "#fff",
"navigationBarTitleText": "家有儿孙",
"navigationBarTitleText": "组团拜年",
"navigationBarTextStyle": "black"
},
"requiredBackgroundModes": ["audio"],
......
......@@ -2,7 +2,7 @@ let ENV_CONFIG = require('./env/index');
const APPID = ''
/** ====每次发布版本记得修改此环境配置==== */
const ENV = 'Dev'; // Dev Prod
const ENV = 'Prod'; // Dev Prod Slave NewYear
const NET_CONFIG = ENV_CONFIG[ENV];
const MOCKAPI = ENV_CONFIG.mockApi;
......
......@@ -8,7 +8,12 @@ module.exports = {
baseApi: 'https://test-api.xxx.com'
},
Slave: {
baseApi: 'https://slave-api.xxx.com'
baseApi: 'https://api.qi.kdao.xin/kd_jyes_api/minipro',
commonApi: 'https://api.k.wxpai.cn/bizproxy'
},
NewYear: {
baseApi: 'https://api.qi.kdao.xin/kd_jyes_api_v1/minipro',
commonApi: 'https://api.k.wxpai.cn/bizproxy'
},
Prod: {
baseApi: 'https://api.qi.kdao.xin/kd_jyes_api/minipro',
......
......@@ -29,7 +29,9 @@ Page({
content: "url",
},
],
options: {}
options: {},
config: {},
NewYear: false
},
onShareAppMessage(res) {
if (res.from === 'button') {
......@@ -53,6 +55,13 @@ Page({
options
})
this.initData();
this.setData({
config: app.config,
ENV: app.config.ENV,
NewYear: app.config.ENV == "NewYear"
})
// console.log("config:", this.data.config);
// console.log("ENV:", this.data.ENV);
wx.aldstat.sendEvent('进入页面', {
'页面名字': '首页'
});
......