Commit 4ea56822 authored by wjf's avatar wjf

l

parent 5fd30067
......@@ -264,7 +264,7 @@ const mockData = {
{
"taskName": "doFollowShop",
"isComplete": true,
"taskDrawStatus": 0
"taskDrawStatus": 0 //0未解锁,1待领取,3成功
},
{
"taskName": "doInvite",
......
......@@ -99,7 +99,7 @@ export class TaskPanel extends Panel {
if (l.taskName == TaskType.doOrder) this.toShowMsg = 1//标记是没完成的
}
//三个状态,到时确认
else if (l.taskDrawStatus == 0) {//待领取状态
else if (l.taskDrawStatus == 1) {//待领取状态
this[l.taskName].canGetStatus = true;
this[l.taskName].enabled = true;
//额外判断下单,原先是1,且待领取状态,
......@@ -108,7 +108,7 @@ export class TaskPanel extends Panel {
showToast("成功完成下单任务,可领取道具大礼包")
}
}
else if (l.taskDrawStatus == 1) {//已领取状态
else if (l.taskDrawStatus == 3) {//已领取状态
this[l.taskName].enabled = false;
}
......
......@@ -934,7 +934,7 @@ export class PlayScene extends Scene {
// 随机生成基础元素
generateOneElement() {
// 随机生成一个数字 2or4
let randNumber = Math.random() < 0.5 ? 2 : 2048
let randNumber = Math.random() < 0.9 ? 2 : 4
// 随机生成位置
let randNumberX = Math.floor(Math.random() * 4)
let randNumberY = Math.floor(Math.random() * 4)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment