|
@@ -88,7 +88,7 @@ Page({
|
|
|
wx.setStorageSync('lbt_session_time', Date.now())
|
|
wx.setStorageSync('lbt_session_time', Date.now())
|
|
|
wx.setStorageSync('lbt_token_key', res.data.token)
|
|
wx.setStorageSync('lbt_token_key', res.data.token)
|
|
|
console.log('nowtoken',res.data.token);
|
|
console.log('nowtoken',res.data.token);
|
|
|
- if(res.data.wx_user && res.data.wx_user.full_head != ''){
|
|
|
|
|
|
|
+ if(res.data.wx_user && res.data.wx_user.head != ''){
|
|
|
var userInfo = res.data.wx_user;
|
|
var userInfo = res.data.wx_user;
|
|
|
|
|
|
|
|
that.setData({
|
|
that.setData({
|
|
@@ -96,12 +96,12 @@ Page({
|
|
|
})
|
|
})
|
|
|
that.getBalanceInfo()
|
|
that.getBalanceInfo()
|
|
|
that.getIntegralInfo()
|
|
that.getIntegralInfo()
|
|
|
- if (that.data.checkData.merchant_id > 0) {
|
|
|
|
|
- that.getmerchant()
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ // if (that.data.checkData.merchant_id > 0) {
|
|
|
|
|
+ // that.getmerchant()
|
|
|
|
|
+ // }
|
|
|
//checkwxhead---start
|
|
//checkwxhead---start
|
|
|
// console.log('that.data.checkhead',that.data.checkhead);
|
|
// console.log('that.data.checkhead',that.data.checkhead);
|
|
|
- if(res.data.wx_user.full_head == '' ){
|
|
|
|
|
|
|
+ if(res.data.wx_user.head == '' ){
|
|
|
that.setData({
|
|
that.setData({
|
|
|
checkhead: false
|
|
checkhead: false
|
|
|
})
|
|
})
|
|
@@ -285,7 +285,7 @@ Page({
|
|
|
})
|
|
})
|
|
|
console.log('untel',res.data.user.tel)
|
|
console.log('untel',res.data.user.tel)
|
|
|
|
|
|
|
|
- if(res.data.wx_user.full_head == ''){
|
|
|
|
|
|
|
+ if(res.data.wx_user.head == ''){
|
|
|
that.setData({
|
|
that.setData({
|
|
|
userInfo: 'nologin'
|
|
userInfo: 'nologin'
|
|
|
})
|
|
})
|