WechatOwnerService/pages/my/my.js
2019-12-28 20:16:52 +08:00

34 lines
788 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/** index.js **/
const context = require('../../context/Java110Context.js');
const factory = context.factory;
//获取app实例
const app = getApp();
Page({
data: {
userInfo: {}, // 用户信息
hasLogin: context.getLoginFlag()
? true
: false // 是否登录根据后台返回的skey判断
},
onLoad: function() {
let _that = this;
factory.login.checkLoginStatus(function(){
_that.setData({
userInfo: context.getUserInfo()
});
});
},
onShow: function() {
let that = this;
that.setData({
userInfo: context.getUserInfo()
});
},
bindingOwner:function(){
wx.navigateTo({
url: '../bindOwner/bindOwner',
})
}
})