|
|
@@ -64,34 +64,36 @@ export default class ProductReward extends cc.Component {
|
|
|
}
|
|
|
|
|
|
|
|
|
- if (id >= 11) {
|
|
|
+ //if (id >= 11)
|
|
|
+ {
|
|
|
mk.ad.showNative();
|
|
|
- } else {
|
|
|
- this.btnCanClick = false;
|
|
|
- this.lbl_taskTimes.string = "1";
|
|
|
- this.node_Uncomplete.active = true;
|
|
|
- this.node_complete.active = false;
|
|
|
-
|
|
|
- this.sp_taskProgress.fillRange = 0.99;
|
|
|
- this.lbl_progress.string = "99%";
|
|
|
-
|
|
|
- this.scheduleOnce(() => {
|
|
|
- this.btnCanClick = true;
|
|
|
- let data = gData.gameData.playerProp.orderData;
|
|
|
- let orderData = data.orderTaskList;
|
|
|
- let copyData = gData.gameData.playerProp.copyOrderData;
|
|
|
- if (data && orderData && copyData) {
|
|
|
- let num = 0;
|
|
|
- for (let i = 0; i != orderData.length; ++i) {
|
|
|
- num += (orderData[i].taskCount - copyData[i])
|
|
|
- }
|
|
|
- if (gData.gameData.funOpenData[11] == "1") {
|
|
|
- let curDes = `<color=8A4312>再生产${num}次,就可以收获\n啦,完成订单立即<color=ff0000>提现</color>!</color>`;
|
|
|
- mk.guide.open(11, curDes);
|
|
|
- }
|
|
|
- }
|
|
|
- }, 0.2)
|
|
|
- }
|
|
|
+ }
|
|
|
+ // else {
|
|
|
+ // this.btnCanClick = false;
|
|
|
+ // this.lbl_taskTimes.string = "1";
|
|
|
+ // this.node_Uncomplete.active = true;
|
|
|
+ // this.node_complete.active = false;
|
|
|
+
|
|
|
+ // this.sp_taskProgress.fillRange = 0.99;
|
|
|
+ // this.lbl_progress.string = "99%";
|
|
|
+
|
|
|
+ // this.scheduleOnce(() => {
|
|
|
+ // this.btnCanClick = true;
|
|
|
+ // let data = gData.gameData.playerProp.orderData;
|
|
|
+ // let orderData = data.orderTaskList;
|
|
|
+ // let copyData = gData.gameData.playerProp.copyOrderData;
|
|
|
+ // if (data && orderData && copyData) {
|
|
|
+ // let num = 0;
|
|
|
+ // for (let i = 0; i != orderData.length; ++i) {
|
|
|
+ // num += (orderData[i].taskCount - copyData[i])
|
|
|
+ // }
|
|
|
+ // if (gData.gameData.funOpenData[11] == "1") {
|
|
|
+ // let curDes = `<color=8A4312>再生产${num}次,就可以收获\n啦,完成订单立即<color=ff0000>提现</color>!</color>`;
|
|
|
+ // mk.guide.open(11, curDes);
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // }, 0.2)
|
|
|
+ // }
|
|
|
}
|
|
|
|
|
|
update(dt) {
|