Commit afbdf0d6 by 高淑倩

plus 购买之后 调登录

parent 4c3fd646
......@@ -41,6 +41,7 @@ wxService.page({
},()=> {
// 当前用户是否关注公众号
this.getMemberSubscribe()
this.loginUpdateStroage() //登录更新plus缓存
})
// 动态设置title
......@@ -50,12 +51,13 @@ wxService.page({
},
loginUpdateStroage(){
const code = wx.getStorageSync('_loginCode')
const wechatInfo = wx.getStorageSync('_wechatInfo')
// wxService.post(`/member/minaLogin`, {
// code,
// wechatInfo: res[0],
// brandId: app.globalData.brandId,
// })
wxService.post(`/member/minaLogin`, {
code,
wechatInfo,
brandId: app.globalData.brandId,
})
},
toPlus() {
wxService.post(`/merchant/modelPage/mainSetting/page?brandId=${app.globalData.brandId}&isMain=3&type=2`).then(res => {
......
......@@ -263,6 +263,7 @@ function getUserInfoByBtn(userInfo) {
}).then((res) => {
logger.log(' wx _userInfo success res --->', res)
wx.setStorageSync('_userInfo', res[0].userInfo)
wx.setStorageSync('_wechatInfo', res[0])
wx.setStorageSync('reLoginErr', false)
wx.showLoading({
title: '正在加载...',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment