|
|
@@ -48,16 +48,16 @@ Page({
|
|
|
onShow: function () {
|
|
|
var that = this;
|
|
|
this.info();
|
|
|
- if (this.data.bindTel) {
|
|
|
- this.getBalanceInfo()
|
|
|
- this.getIntegralInfo()
|
|
|
- if (that.data.checkData.merchant_id > 0) {
|
|
|
- that.getmerchant()
|
|
|
- }
|
|
|
- } else {
|
|
|
- this.check()
|
|
|
- // this.info()
|
|
|
- }
|
|
|
+ // if (this.data.bindTel) {
|
|
|
+ // this.getBalanceInfo()
|
|
|
+ // this.getIntegralInfo()
|
|
|
+ // if (that.data.checkData.merchant_id > 0) {
|
|
|
+ // that.getmerchant()
|
|
|
+ // }
|
|
|
+ // } else {
|
|
|
+ // // this.check()
|
|
|
+ // // this.info()
|
|
|
+ // }
|
|
|
|
|
|
that.checkLogin();
|
|
|
|
|
|
@@ -89,6 +89,11 @@ Page({
|
|
|
that.setData({
|
|
|
userInfo: userInfo
|
|
|
})
|
|
|
+ that.getBalanceInfo()
|
|
|
+ that.getIntegralInfo()
|
|
|
+ if (that.data.checkData.merchant_id > 0) {
|
|
|
+ that.getmerchant()
|
|
|
+ }
|
|
|
//checkwxhead---start
|
|
|
console.log('that.data.checkhead',that.data.checkhead);
|
|
|
if(res.data.wx_user.full_head == '' && that.data.checkhead){
|
|
|
@@ -239,10 +244,10 @@ Page({
|
|
|
that.onShow();
|
|
|
}
|
|
|
}
|
|
|
- })
|
|
|
+ })
|
|
|
},
|
|
|
getVersion: function (val) {
|
|
|
- this.check()
|
|
|
+ // this.check()
|
|
|
},
|
|
|
info(){
|
|
|
console.log('oninfo');
|