|
|
@@ -20,7 +20,7 @@ export default class GetLiangCaoUI extends BaseUI {
|
|
|
|
|
|
onLoad() {
|
|
|
XXEvent.addClickEvent(this.btn_receive, this.onClickReceive, this);
|
|
|
- XXEvent.on('event-new-mission-start', this.onUpdateFoodCount, this);
|
|
|
+ XXEvent.on(XXConst.EventNewMissionStart, this.onUpdateFoodCount, this);
|
|
|
}
|
|
|
|
|
|
start() {
|
|
|
@@ -35,8 +35,8 @@ export default class GetLiangCaoUI extends BaseUI {
|
|
|
// 领取粮草逻辑
|
|
|
// this.close();
|
|
|
}
|
|
|
- private onUpdateFoodCount() {
|
|
|
- GetLiangCaoModel.updateFoodCount();
|
|
|
+ private onUpdateFoodCount(mission_id) {
|
|
|
+ GetLiangCaoModel.updateFoodCount(mission_id);
|
|
|
}
|
|
|
// update (dt) {}
|
|
|
}
|