公司小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

68 lines
1.2 KiB

export default {
///钱包余额
balancescore : 0,
///生日
birthday : '',
///头像地址
headimgurl : '',
///iUserId
id : -1,
///简介
introduction : '',
///登录方式
login_kind : '',
///需要实名 0否 1是
needrealname : 1,
///昵称
nickname : '',
///职业
occupation : '',
///手机号码
phone : '',
///性别:0未知,1 为男性,2 为女性。
sex : 0,
///用户登录的token
user_token : '',
///真实姓名
username : '',
///银行卡账号
bankcard : '',
///开户行地址
deposit : '',
///身份证号
identitycardnum : '',
clear : function(){
this.identitycardnum = '';
this.balancescore = 0;
this.birthday = '';
this.headimgurl = '';
this.id = -1;
this.introduction = '';
this.login_kind = '';
this.needrealname = 1;
this.nickname = '';
this.occupation = '';
this.phone = '';
this.sex = 0;
this.user_token = '';
this.username = '';
this.bankcard = '';
this.deposit = '';
},
/**
* 从网络数据中初始化当前的用户信息
* @param {Object} data
*/
InitPlayerWithData : function(data){
for(var key in data){
this[key] = data[key];
}
},
/**
* 判断用户是否登录了
*/
isLogined(){
return this.user_token != '';
},
};