Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
dev
/
home-with-kids-mp
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
8a4eeec1
authored
2020-01-17 19:51:19 +0800
by
simon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
默认提交
1 parent
ddde4ea3
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
4 deletions
src/app.json
src/config.js
src/env/index.js
src/pages/index/index.js
src/app.json
View file @
8a4eeec
...
...
@@ -14,7 +14,7 @@
"window"
:
{
"backgroundTextStyle"
:
"light"
,
"navigationBarBackgroundColor"
:
"#fff"
,
"navigationBarTitleText"
:
"
家有儿孙
"
,
"navigationBarTitleText"
:
"
组团拜年
"
,
"navigationBarTextStyle"
:
"black"
},
"requiredBackgroundModes"
:
[
"audio"
],
...
...
src/config.js
View file @
8a4eeec
...
...
@@ -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
;
...
...
src/env/index.js
View file @
8a4eeec
...
...
@@ -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'
,
...
...
src/pages/index/index.js
View file @
8a4eeec
...
...
@@ -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
(
'进入页面'
,
{
'页面名字'
:
'首页'
});
...
...
Please
register
or
sign in
to post a comment