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
afbdf0d6
Commit
afbdf0d6
authored
Sep 21, 2019
by
高淑倩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
plus 购买之后 调登录
parent
4c3fd646
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
paymentStatus.js
src/subPackage/page/pages/paymentStatus/paymentStatus.js
+7
-5
util.js
src/utils/util.js
+1
-0
No files found.
src/subPackage/page/pages/paymentStatus/paymentStatus.js
View file @
afbdf0d6
...
@@ -41,6 +41,7 @@ wxService.page({
...
@@ -41,6 +41,7 @@ wxService.page({
},()
=>
{
},()
=>
{
// 当前用户是否关注公众号
// 当前用户是否关注公众号
this
.
getMemberSubscribe
()
this
.
getMemberSubscribe
()
this
.
loginUpdateStroage
()
//登录更新plus缓存
})
})
// 动态设置title
// 动态设置title
...
@@ -50,12 +51,13 @@ wxService.page({
...
@@ -50,12 +51,13 @@ wxService.page({
},
},
loginUpdateStroage
(){
loginUpdateStroage
(){
const
code
=
wx
.
getStorageSync
(
'_loginCode'
)
const
code
=
wx
.
getStorageSync
(
'_loginCode'
)
const
wechatInfo
=
wx
.
getStorageSync
(
'_wechatInfo'
)
//
wxService.post(`/member/minaLogin`, {
wxService
.
post
(
`/member/minaLogin`
,
{
//
code,
code
,
// wechatInfo: res[0]
,
wechatInfo
,
//
brandId: app.globalData.brandId,
brandId
:
app
.
globalData
.
brandId
,
//
})
})
},
},
toPlus
()
{
toPlus
()
{
wxService
.
post
(
`/merchant/modelPage/mainSetting/page?brandId=
${
app
.
globalData
.
brandId
}
&isMain=3&type=2`
).
then
(
res
=>
{
wxService
.
post
(
`/merchant/modelPage/mainSetting/page?brandId=
${
app
.
globalData
.
brandId
}
&isMain=3&type=2`
).
then
(
res
=>
{
...
...
src/utils/util.js
View file @
afbdf0d6
...
@@ -263,6 +263,7 @@ function getUserInfoByBtn(userInfo) {
...
@@ -263,6 +263,7 @@ function getUserInfoByBtn(userInfo) {
}).
then
((
res
)
=>
{
}).
then
((
res
)
=>
{
logger
.
log
(
' wx _userInfo success res --->'
,
res
)
logger
.
log
(
' wx _userInfo success res --->'
,
res
)
wx
.
setStorageSync
(
'_userInfo'
,
res
[
0
].
userInfo
)
wx
.
setStorageSync
(
'_userInfo'
,
res
[
0
].
userInfo
)
wx
.
setStorageSync
(
'_wechatInfo'
,
res
[
0
])
wx
.
setStorageSync
(
'reLoginErr'
,
false
)
wx
.
setStorageSync
(
'reLoginErr'
,
false
)
wx
.
showLoading
({
wx
.
showLoading
({
title
:
'正在加载...'
,
title
:
'正在加载...'
,
...
...
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