Update UIMain.js
This commit is contained in:
parent
c7cb3ef205
commit
ef80e5474e
@ -265,10 +265,15 @@ cc.Class({
|
|||||||
cc.Notifier.on('hasConnectWallet', this);
|
cc.Notifier.on('hasConnectWallet', this);
|
||||||
},
|
},
|
||||||
refreshBaseInfo() {
|
refreshBaseInfo() {
|
||||||
|
|
||||||
|
NetManage.getUserMainInfo((res)=>{
|
||||||
|
this.lb_gold.string = res.info.gold;
|
||||||
|
})
|
||||||
|
|
||||||
var pdata = cc.playerData;
|
var pdata = cc.playerData;
|
||||||
this.lb_name.string = pdata.name;
|
this.lb_name.string = pdata.name;
|
||||||
this.lb_lv.string = 'LV.' + pdata.level;
|
this.lb_lv.string = 'LV.' + pdata.level;
|
||||||
this.lb_gold.string = pdata.gold;
|
// this.lb_gold.string = pdata.gold;
|
||||||
this.lb_diamond.string = pdata.diamond;
|
this.lb_diamond.string = pdata.diamond;
|
||||||
this.pr_progress.progress = pdata.exp / pdata.max_exp;
|
this.pr_progress.progress = pdata.exp / pdata.max_exp;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user