var salesInfo = { template: '
返回
avatar

昵 称:{{wxInfo.nickname}}

玩家ID:{{salesInfo.player_id}}

账 号:{{salesInfo.salesid}}

可赠送房卡数:{{assets.roomcard}}

{{lang.starName}}数:{{assets.bean}}

{{loginType}}
', data: function () { return { params: {}, lang: {}, salesInfo: {}, wxInfo: {}, agentInfo: {}, assets: {} } }, computed: { loginType: function() { var type = this.salesInfo.logintype; if(type == 1) return '账号登录'; else if(type == 0) return '微信登录'; else if(type == 2) return '手机号登录'; else return '' }, personCenter: function () { return 'javascript:;'; }, indexUrl: function () { return 'javascript:;'; } }, created: function () { this.params = $.getQueryObj(); this.lang = lang[this.params.agentid] ? lang[this.params.agentid] : lang.default; var that = this; $.getAgentInfo(function (agentInfo) { that.agentInfo = agentInfo; $.getWxInfo(function (wxInfo) { that.wxInfo = wxInfo; $.getUserInfo(function (res) { that.salesInfo = res; $.api( 'agent.user.getUserInfo', { idx: res.idx }, function (assets) { that.assets = assets; }, 1 ); }) }) }) } }