Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
7
7-Eleven
Overview
Overview
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
高淑倩
7-Eleven
Commits
a85ecb98
Commit
a85ecb98
authored
Jun 04, 2019
by
高淑倩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify: 环境配置
parent
c068373c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
6 deletions
+11
-6
index.js
src/config/index.js
+8
-3
consumptionDetails.js
src/pages/consumptionDetails/consumptionDetails.js
+1
-1
project.config.json
src/project.config.json
+1
-1
util.js
src/utils/util.js
+1
-1
No files found.
src/config/index.js
View file @
a85ecb98
const
PROJECT_ENV
=
'dev'
// 生产 prod, 测试 dev
const
needMock
=
''
//
// appid_dev wxc3b64b09b1d3dfc2
// appid_prod
// appid_dev_wx wxc3b64b09b1d3dfc2
// appid_711 wx358b56af62edbde1
// 711 预备发生产环境
// 后台地址 : https://crm-b.bigaka.com/api
// brandId : 2005
// const devCtx = 'http://111.231.86.64'
const
devCtx
=
'http://buyer.devapi.bigaka.net'
// const devCtx = 'http://buyer.devapi.bigaka.net'
const
devCtx
=
'https://crm-b.bigaka.com/api'
const
prodCtx
=
''
// 发生产时解开此注释
const
config
=
{
...
...
src/pages/consumptionDetails/consumptionDetails.js
View file @
a85ecb98
...
...
@@ -43,7 +43,7 @@ wxService.page({
wx
.
showLoading
({
title
:
'加载中'
})
wxService
.
get
(
`/sale/order/findByOrderNo?orderNo=
${
orderNo
}
&brandId=
1002
`
).
then
(
res
=>
{
wxService
.
get
(
`/sale/order/findByOrderNo?orderNo=
${
orderNo
}
&brandId=
2005
`
).
then
(
res
=>
{
const
{
result
,
data
}
=
res
.
data
if
(
result
==
0
){
wx
.
hideLoading
()
...
...
src/project.config.json
View file @
a85ecb98
...
...
@@ -14,7 +14,7 @@
},
"compileType"
:
"miniprogram"
,
"libVersion"
:
"2.6.6"
,
"appid"
:
"wx
c3b64b09b1d3dfc2
"
,
"appid"
:
"wx
358b56af62edbde1
"
,
"tempappid_wx"
:
"wxc3b64b09b1d3dfc2"
,
"tempappid_711"
:
"wx358b56af62edbde1"
,
"projectname"
:
"7-Eleven"
,
...
...
src/utils/util.js
View file @
a85ecb98
...
...
@@ -179,7 +179,7 @@ function getUserInfoByBtn(userInfo) {
return
wxService
.
post
(
`/member/minaLogin`
,
{
code
:
res
[
1
].
code
,
wechatInfo
:
res
[
0
],
brandId
:
1001
,
brandId
:
2005
,
})
},
(
err
)
=>
{
return
Promise
.
reject
(
err
)
...
...
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