Commit afbdf0d6 by 高淑倩

plus 购买之后 调登录

parent 4c3fd646
...@@ -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 => {
......
...@@ -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: '正在加载...',
......
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