Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
W
wechatapp.shangjiadao.com
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangxuelai
wechatapp.shangjiadao.com
Commits
036ba1ba
Commit
036ba1ba
authored
Dec 20, 2019
by
sujie@126.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dd
parent
a5b97c9a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
19 deletions
+18
-19
index.wxml
components/tab/index.wxml
+1
-1
constants.js
constants/constants.js
+4
-4
index.js
constants/index.js
+13
-14
No files found.
components/tab/index.wxml
View file @
036ba1ba
...
...
@@ -17,6 +17,6 @@
<slot name="tcontent-right"></slot>
</view>
</view>
</view>
</view>
</view>
constants/constants.js
View file @
036ba1ba
export
default
{
imageRoot
:
'https://cdn.img.shangjiadao.cn/qingxiao/daka/images/'
,
//
host: 'https://qxapi.qingxiao.online/daka',
//
host2: 'https://wx.m.shangjiadao.cn',
host
:
'https://qxapi.qingxiao.online/daka'
,
host2
:
'https://wx.m.shangjiadao.cn'
,
storageVersion
:
'4.0'
,
imageVersion
:
'20191104'
,
host
:
'https://clock.wp53.cn'
,
host2
:
'https://test.wp53.cn'
,
//
host: 'https://clock.wp53.cn',
//
host2: 'https://test.wp53.cn',
appId
:
'wxc1246ea029394785'
,
miniProgram
:
{
clock
:
'wxdeee20e52a1fd7ee'
...
...
constants/index.js
View file @
036ba1ba
import
constants
from
'./constants.js'
;
let
NODE_ENV
=
'pro'
;
const
fileManager
=
wx
.
getFileSystemManager
();
try
{
fileManager
.
accessSync
(
'/local'
)
NODE_ENV
=
'dev'
;
}
catch
(
e
){}
if
(
NODE_ENV
===
'pro'
){
constants
.
host
=
'https://qxapi.qingxiao.online/daka'
;
constants
.
host2
=
'https://wx.m.shangjiadao.cn'
;
}
else
{
constants
.
host
=
'https://clock.wp53.cn'
;
constants
.
host2
=
'https://test.wp53.cn'
;
}
console
.
log
(
constants
,
'dasssssssssdadsa'
)
// let NODE_ENV = 'pro';
// const fileManager = wx.getFileSystemManager();
// try{
// fileManager.accessSync('/local')
// NODE_ENV = 'dev';
// }catch(e){}
// if( NODE_ENV === 'pro' ){
// constants.host = 'https://qxapi.qingxiao.online/daka';
// constants.host2 = 'https://wx.m.shangjiadao.cn';
// }else{
// constants.host = 'https://clock.wp53.cn';
// constants.host2 = 'https://test.wp53.cn';
// }
export
{
constants
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment