|
|
@ -30,6 +30,10 @@ Page({ |
|
|
|
|
|
|
|
|
|
|
|
onLoad: function() { |
|
|
|
onLoad: function() { |
|
|
|
var that = this |
|
|
|
var that = this |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app.getUserInfo(function(userInfo){ |
|
|
|
|
|
|
|
that.setData({userInfo: userInfo}) |
|
|
|
|
|
|
|
|
|
|
|
if (app.globalData.token) { |
|
|
|
if (app.globalData.token) { |
|
|
|
profile.getCustomerInfo({}, that.infoCallback) |
|
|
|
profile.getCustomerInfo({}, that.infoCallback) |
|
|
|
} else { |
|
|
|
} else { |
|
|
@ -39,8 +43,6 @@ Page({ |
|
|
|
profile.getCustomerInfo({}, that.infoCallback) |
|
|
|
profile.getCustomerInfo({}, that.infoCallback) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
app.getUserInfo(function(userInfo){ |
|
|
|
|
|
|
|
that.setData({userInfo: userInfo}) |
|
|
|
|
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|