|
@@ -185,21 +185,27 @@ cc.Class({
|
|
|
JobApi.changeJob(this.actorInfo.uid, job.id,
|
|
|
(response, msg) => {
|
|
|
this.onChangeJobSuccess(msg);
|
|
|
+ GameModule.audioMng.playSignSuccess();
|
|
|
},
|
|
|
(code, msg) => {
|
|
|
this.onFail(msg);
|
|
|
+ GameModule.audioMng.playSignFail();
|
|
|
+
|
|
|
});
|
|
|
break;
|
|
|
case JobPageType.ChooseJob:
|
|
|
var job = this.pageView.getComponent('PVCtrl').getSelectedJob();
|
|
|
JobApi.chooseJob(this.actorInfo.uid, job.id,
|
|
|
(response) => {
|
|
|
+ GameModule.audioMng.playSignSuccess();
|
|
|
this.onFail('选择成功', () => {
|
|
|
this.nextChoose();
|
|
|
});
|
|
|
},
|
|
|
(code, msg) => {
|
|
|
this.onFail(msg);
|
|
|
+ GameModule.audioMng.playSignFail();
|
|
|
+
|
|
|
});
|
|
|
|
|
|
break;
|
|
@@ -207,9 +213,12 @@ cc.Class({
|
|
|
JobApi.levelUp(this.actorInfo.uid,
|
|
|
(response) => {
|
|
|
this.onLevelUpSuccess();
|
|
|
+ GameModule.audioMng.playSignSuccess();
|
|
|
},
|
|
|
(code, msg) => {
|
|
|
this.onFail(msg);
|
|
|
+ GameModule.audioMng.playSignFail();
|
|
|
+
|
|
|
});
|
|
|
break;
|
|
|
}
|
|
@@ -254,7 +263,6 @@ cc.Class({
|
|
|
});
|
|
|
GameEvent.fire(GameNotificationKey.RefreshUserInformation);
|
|
|
GameEvent.fire(GameNotificationKey.PlaySuccessAnimation);
|
|
|
- GameModule.audioMng.playSignSuccess();
|
|
|
},
|
|
|
|
|
|
|
|
@@ -268,15 +276,12 @@ cc.Class({
|
|
|
});
|
|
|
GameEvent.fire(GameNotificationKey.RefreshUserInformation);
|
|
|
GameEvent.fire(GameNotificationKey.PlaySuccessAnimation);
|
|
|
- GameModule.audioMng.playSignSuccess();
|
|
|
},
|
|
|
|
|
|
onFail(msg, callback) {
|
|
|
this.fail = cc.instantiate(this.failPrefab);
|
|
|
this.fail = this.fail.getComponent('JobPageFail');
|
|
|
this.fail.show(this.node, msg, callback);
|
|
|
-
|
|
|
- GameModule.audioMng.playSignFail();
|
|
|
},
|
|
|
|
|
|
setNeedChooseJobUsers(users) {
|