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
3835e746
Commit
3835e746
authored
Sep 24, 2019
by
高淑倩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
集点详情
parent
585b4af6
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
20 additions
and
14 deletions
+20
-14
app.js
src/app.js
+2
-2
authorization-modal-point.js
...nt/authorization-modal-point/authorization-modal-point.js
+6
-0
index.js
src/config/index.js
+1
-1
pointDetail.js
src/pages/pointDetail/pointDetail.js
+8
-8
project.config.json
src/project.config.json
+3
-3
No files found.
src/app.js
View file @
3835e746
...
...
@@ -117,9 +117,9 @@ App({
imageUrl
:
envInfo
.
imgCtx
,
//图片地址
isFullSucreen
:
false
,
// 当前设备是否为 FullSucreen
commonFunc
:
commonFunc
,
//
brandId: 2711,
brandId
:
2711
,
// brandId: 2005,
// brandId: 1001,
brandId
:
1002
,
//
brandId: 1002,
}
})
src/component/authorization-modal-point/authorization-modal-point.js
View file @
3835e746
...
...
@@ -67,6 +67,12 @@ Component({
wx
.
setStorageSync
(
'token'
,
''
)
}
wx
.
setStorageSync
(
'_baseUserInfo'
,
data
)
const
baseUserInfo
=
wx
.
getStorageSync
(
'_baseUserInfo'
)
// 获取当前会员是否是体验者
const
{
member
}
=
baseUserInfo
const
curMemberTrial
=
member
&&
member
.
trial
||
false
console
.
log
(
'获取当前会员是否是体验者'
,
curMemberTrial
)
wx
.
setStorageSync
(
'isExperiencer'
,
curMemberTrial
)
// 存储用户开卡状态
// wx.setStorageSync('memberActivateStatus', data.memberActivateStatus)
this
.
setUserInfo
()
...
...
src/config/index.js
View file @
3835e746
const
PROJECT_ENV
=
'
test
'
// 生产 prod, 开发1 dev,开发2 dev2, 测试 test, 预生产 pre
const
PROJECT_ENV
=
'
prod
'
// 生产 prod, 开发1 dev,开发2 dev2, 测试 test, 预生产 pre
const
needMock
=
''
//
// appid_dev_wx wxc3b64b09b1d3dfc2
...
...
src/pages/pointDetail/pointDetail.js
View file @
3835e746
...
...
@@ -47,9 +47,7 @@ wxService.page({
},
watch
:
{
experAccessible
(
newVal
,
oldVal
)
{
console
.
log
(
'newVal, oldVal'
,
newVal
,
oldVal
)
if
(
newVal
)
{
// 登录接口返回err
// 登录接口返回err
const
reLoginErrFlag
=
wx
.
getStorageSync
(
'reLoginErr'
)
const
baseUserInfo
=
wx
.
getStorageSync
(
'_baseUserInfo'
)
let
id
...
...
@@ -71,7 +69,13 @@ wxService.page({
this
.
setData
({
id
},
()
=>
{
this
.
getPointDetail
(
id
)
if
(
newVal
)
{
this
.
getPointDetail
(
id
)
}
else
{
// 去别的页面
wxService
.
router
(
`/subPackage/page/pages/goToHome/goToHome`
).
replace
()
}
// this.getPointDetail(id)
})
}
// 隐藏 dialog
...
...
@@ -88,10 +92,6 @@ wxService.page({
isAuthorization
:
true
})
}
}
else
{
// 去别的页面
wxService
.
router
(
`/subPackage/page/pages/goToHome/goToHome`
).
replace
()
}
}
},
// 集点详情
...
...
src/project.config.json
View file @
3835e746
...
...
@@ -13,7 +13,7 @@
},
"compileType"
:
"miniprogram"
,
"libVersion"
:
"2.8.2"
,
"appid"
:
"wx
ac09792264c49b5c
"
,
"appid"
:
"wx
700028bf32a3be66
"
,
"projectname"
:
"7-Eleven"
,
"debugOptions"
:
{
"hidedInDevtools"
:
[]
...
...
@@ -39,7 +39,7 @@
"list"
:
[]
},
"miniprogram"
:
{
"current"
:
1
3
,
"current"
:
1
5
,
"list"
:
[
{
"id"
:
-1
,
...
...
@@ -138,7 +138,7 @@
"id"
:
15
,
"name"
:
"pages/pointDetail/pointDetail"
,
"pathName"
:
"pages/pointDetail/pointDetail"
,
"query"
:
"id=
611943773647278080
"
,
"query"
:
"id=
623814145518743552
"
,
"scene"
:
null
},
{
...
...
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