update
This commit is contained in:
parent
e2b989e7f1
commit
a941f317bc
File diff suppressed because it is too large
Load Diff
@ -37,8 +37,8 @@ export class guns_single extends cc.Component {
|
|||||||
|
|
||||||
if (data.lock_type == 3) {
|
if (data.lock_type == 3) {
|
||||||
this.showWanted();
|
this.showWanted();
|
||||||
this.wantedNode.getComponentInChildren(cc.Label).string =
|
// this.wantedNode.getComponentInChildren(cc.Label).string =
|
||||||
this.formatSeconds(lefttime);
|
// this.formatSeconds(lefttime);
|
||||||
this.schedule(function () {
|
this.schedule(function () {
|
||||||
this.wantedNode.getComponentInChildren(cc.Label).string =
|
this.wantedNode.getComponentInChildren(cc.Label).string =
|
||||||
this.formatSeconds(lefttime);
|
this.formatSeconds(lefttime);
|
||||||
|
@ -66,8 +66,8 @@ cc.Class({
|
|||||||
|
|
||||||
if (v.lock_type == 3) {
|
if (v.lock_type == 3) {
|
||||||
this.showWanted();
|
this.showWanted();
|
||||||
this.wantedNode.getComponentInChildren(cc.Label).string =
|
// this.wantedNode.getComponentInChildren(cc.Label).string =
|
||||||
this.formatSeconds(lefttime);
|
// this.formatSeconds(lefttime);
|
||||||
this.schedule(function () {
|
this.schedule(function () {
|
||||||
this.wantedNode.getComponentInChildren(cc.Label).string =
|
this.wantedNode.getComponentInChildren(cc.Label).string =
|
||||||
this.formatSeconds(lefttime);
|
this.formatSeconds(lefttime);
|
||||||
|
@ -71,6 +71,7 @@ cc.Class({
|
|||||||
if (this.missionState == 0) {
|
if (this.missionState == 0) {
|
||||||
NetManage.commitMission(this.missionId, () => {
|
NetManage.commitMission(this.missionId, () => {
|
||||||
cc.uiHelper.showTips('Get Reward Success!');
|
cc.uiHelper.showTips('Get Reward Success!');
|
||||||
|
cc.Notifier.emit('ReFreshMission');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (this.missionState == 1) {
|
if (this.missionState == 1) {
|
||||||
@ -151,13 +152,21 @@ cc.Class({
|
|||||||
|
|
||||||
this.boostCost = data.boost;
|
this.boostCost = data.boost;
|
||||||
|
|
||||||
|
console.log(JSON.stringify(originData));
|
||||||
|
|
||||||
this.wantedData = data;
|
this.wantedData = data;
|
||||||
this.missionId = originData.mission_id;
|
this.missionId = originData.mission_id;
|
||||||
|
this.missionState = originData.state;
|
||||||
if (originData.state == 0) {
|
if (originData.state == 0) {
|
||||||
|
//can revice
|
||||||
this.receiveNode.active = true;
|
this.receiveNode.active = true;
|
||||||
this.missionState = 0;
|
}
|
||||||
|
if (originData.state == 1) {
|
||||||
|
// has get
|
||||||
|
this.getNode.active = true;
|
||||||
}
|
}
|
||||||
if (originData.state == 2) {
|
if (originData.state == 2) {
|
||||||
|
// doing
|
||||||
if (originData.objects.length == 0) {
|
if (originData.objects.length == 0) {
|
||||||
this.getNode.active = true;
|
this.getNode.active = true;
|
||||||
this.missionState = 1;
|
this.missionState = 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user