|
@@ -79,13 +79,12 @@ cc.Class({
|
|
this.user.active = false;
|
|
this.user.active = false;
|
|
this.pageView.node.active = true;
|
|
this.pageView.node.active = true;
|
|
this.levelUpNode.active = false;
|
|
this.levelUpNode.active = false;
|
|
- this.pageView.getComponent('PVCtrl').bind(this.actorInfo.jobId, this.actorInfo.gender);
|
|
|
|
|
|
+ this.pageViewScript = this.pageView.getComponent('PVCtrl');
|
|
|
|
+ this.pageViewScript.bind(this.actorInfo.jobId, this.actorInfo.gender);
|
|
|
|
|
|
this.titleText.string = '<b>职业转换</b>';
|
|
this.titleText.string = '<b>职业转换</b>';
|
|
this.confirmText.string = '<outline color=#690802 width=1><b>转职</b></outline>';
|
|
this.confirmText.string = '<outline color=#690802 width=1><b>转职</b></outline>';
|
|
|
|
|
|
- this.pageViewScript = this.pageView.getComponent('PVCtrl');
|
|
|
|
-
|
|
|
|
JobApi.changeJobList(this.actorInfo.uid,
|
|
JobApi.changeJobList(this.actorInfo.uid,
|
|
(response) => {
|
|
(response) => {
|
|
this.userPack = response.userPack;
|
|
this.userPack = response.userPack;
|
|
@@ -115,12 +114,12 @@ cc.Class({
|
|
this.user.active = true;
|
|
this.user.active = true;
|
|
this.pageView.node.active = true;
|
|
this.pageView.node.active = true;
|
|
this.levelUpNode.active = false;
|
|
this.levelUpNode.active = false;
|
|
- this.pageView.getComponent('PVCtrl').bind(0, this.actorInfo.gender);
|
|
|
|
|
|
+ this.pageViewScript = this.pageView.getComponent('PVCtrl');
|
|
|
|
+ this.pageViewScript.bind(0, this.actorInfo.gender);
|
|
|
|
|
|
this.titleText.string = '<b>选择职业</b>';
|
|
this.titleText.string = '<b>选择职业</b>';
|
|
this.confirmText.string = '<outline color=#690802 width=1><b>确定</b></outline>';
|
|
this.confirmText.string = '<outline color=#690802 width=1><b>确定</b></outline>';
|
|
|
|
|
|
- this.pageViewScript = this.pageView.getComponent('PVCtrl');
|
|
|
|
this.pageViewScript.bindSelectedJobText();
|
|
this.pageViewScript.bindSelectedJobText();
|
|
this.bindChooseJob(this.actorInfo);
|
|
this.bindChooseJob(this.actorInfo);
|
|
},
|
|
},
|
|
@@ -242,6 +241,7 @@ cc.Class({
|
|
},
|
|
},
|
|
|
|
|
|
bindChooseJob() {
|
|
bindChooseJob() {
|
|
|
|
+ this.pageViewScript.bind(0, this.actorInfo.gender);
|
|
this.user.getComponent('Actor').bind(this.actorInfo);
|
|
this.user.getComponent('Actor').bind(this.actorInfo);
|
|
},
|
|
},
|
|
|
|
|