Commit 050d998a by 高淑倩

合并生产_请重新授权

parent 925feb87
......@@ -71,23 +71,50 @@ wxService.page({
onShow () {
// 取会员卡号
const baseUserInfo = wx.getStorageSync('_baseUserInfo')
if (baseUserInfo){
const cardMember = wx.getStorageSync('_cardMember')
// 登录接口返回err
const reLoginErrFlag = wx.getStorageSync('reLoginErr')
if (baseUserInfo && !reLoginErrFlag){
this.setData({
token: wx.getStorageSync('token'),
baseUserInfo,
// cardMember,
cardMember,
isAuthorization: false
})
},()=>{
// 积分数量
this.getMemberPointInfo()
// 优惠券数量
this.getMemberCouponInfo()
} else {
})
}
else if(!baseUserInfo && reLoginErrFlag){
this.setData({
isAuthorization: true
})
}
else {
this.setData({
isAuthorization: true
})
}
// if (baseUserInfo){
// this.setData({
// token: wx.getStorageSync('token'),
// baseUserInfo,
// // cardMember,
// isAuthorization: false
// })
// // 积分数量
// this.getMemberPointInfo()
// // 优惠券数量
// this.getMemberCouponInfo()
// } else {
// this.setData({
// isAuthorization: true
// })
// }
// 获取手机信息
wxService.getSystemInfo().then(res=> {
this.setData({
......
......@@ -269,6 +269,7 @@ function getUserInfoByBtn(userInfo) {
}).then((res) => {
logger.log(' wx _userInfo success res --->', res)
wx.setStorageSync('_userInfo', res[0].userInfo)
wx.setStorageSync('reLoginErr', false)
wx.showLoading({
title: '正在加载...',
icon: 'none',
......
......@@ -352,7 +352,6 @@ class WXService extends Http {
page (config) {
const _self = this
const { sr } = this.getApp()
const CONFIG_PAPGE = {
onLoad: function (...args) {
const page = this
......
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