update
This commit is contained in:
parent
4bbe3cbff2
commit
33c85b5fa1
@ -174,7 +174,6 @@ cc.Class({
|
||||
|
||||
onLoad() {
|
||||
cc.audioEngine.stopAll();
|
||||
console.log("打开uimain")
|
||||
},
|
||||
start() {
|
||||
//test
|
||||
@ -260,10 +259,14 @@ cc.Class({
|
||||
cc.Notifier.on("hasConnectWallet", this);
|
||||
},
|
||||
refreshBaseInfo() {
|
||||
NetManage.getUserMainInfo((res)=>{
|
||||
this.lb_gold.string = res.info.gold;
|
||||
});
|
||||
|
||||
var pdata = cc.playerData;
|
||||
this.lb_name.string = pdata.name;
|
||||
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.pr_progress.progress = pdata.exp / pdata.max_exp;
|
||||
|
||||
|
@ -442,6 +442,19 @@ module.exports = {
|
||||
this.getResponce(cb, this.urlbd);
|
||||
},
|
||||
|
||||
|
||||
getUserMainInfo(cb) {
|
||||
this.urlbd.clear();
|
||||
this.urlbd
|
||||
.addKV('c', 'User')
|
||||
.addKV('a', 'Info')
|
||||
.addKV('account_id', this.account_id)
|
||||
.addKV('session_id', this.session_id)
|
||||
.addKV('target_id', this.account_id);
|
||||
this.getResponce(cb, this.urlbd);
|
||||
},
|
||||
|
||||
|
||||
missionList(type, cb) {
|
||||
this.urlbd.clear();
|
||||
this.urlbd
|
||||
|
Loading…
x
Reference in New Issue
Block a user