Skip to content

Commit

Permalink
修改bug
Browse files Browse the repository at this point in the history
  • Loading branch information
闫士博 committed Jul 27, 2018
1 parent fe0895b commit 535bb3e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions xfz/pages/index/chooseMerchant.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ Page({
//mlist:[]
},
onLoad: function (options) {
var scene = decodeURIComponent(options.scene)
var scene = decodeURIComponent(options.scene || "ef970d799cc26cae5e8fdae6904ef991")
var that = this;
if(options.scene){
if(scene){
app.globalData.scene = scene;
wx.navigateTo({
url: '../my/my'
Expand Down
11 changes: 6 additions & 5 deletions xfz/pages/my/my.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Page({
canIUse: wx.canIUse('button.open-type.getUserInfo')
},
onShow:function(data){
console.log(data);

},
onLoad: function (options) {
wx.showLoading({
Expand All @@ -20,14 +20,15 @@ Page({
var that = this;
if(app.globalData.scene){
app.login(function(res){
console.log(res);
app.globalData.logingData = res
if(app.globalData.logingData.nickName){ //有值,非第一次
if(!res.needOpenCard){ //有值,非第一次
that.setData({
userInfo: app.globalData.logingData
})
wx.hideLoading()
}else{ //null 第一次登录
that.loginBackUseInfo();
}else{ //需要开卡
//that.loginBackUseInfo();
}
that.balance();
});
Expand All @@ -38,7 +39,7 @@ Page({
})
wx.hideLoading()
}else{
that.loginBackUseInfo();
//that.loginBackUseInfo();
}
that.balance();
}
Expand Down

0 comments on commit 535bb3e

Please sign in to comment.