|
|
@ -24,9 +24,7 @@ Page({ |
|
|
|
|
|
|
|
|
|
|
|
onLoad: function() { |
|
|
|
onLoad: function() { |
|
|
|
var that = this |
|
|
|
var that = this |
|
|
|
|
|
|
|
that.setData({userInfo: app.globalData.userInfo}) |
|
|
|
app.getUserInfo(function(userInfo){ |
|
|
|
|
|
|
|
that.setData({userInfo: userInfo}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (app.globalData.token) { |
|
|
|
if (app.globalData.token) { |
|
|
|
profile.getCustomerInfo({}, that.infoCallback) |
|
|
|
profile.getCustomerInfo({}, that.infoCallback) |
|
|
@ -37,7 +35,7 @@ Page({ |
|
|
|
profile.getCustomerInfo({}, that.infoCallback) |
|
|
|
profile.getCustomerInfo({}, that.infoCallback) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
bindGetPassCode: function(e) { |
|
|
|
bindGetPassCode: function(e) { |
|
|
@ -133,5 +131,4 @@ Page({ |
|
|
|
}) |
|
|
|
}) |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
}) |
|
|
|
}) |