Commit c333a428 authored by haiyoucuv's avatar haiyoucuv

整理一下代码1

parent d64234b8
......@@ -78,12 +78,6 @@ export class TaskItem extends ScrollListItem {
switch (+taskStatus) {
case 0: {
if(!haveJump){
btnSp.spriteFrame = this.noJumpSf;
break;
}
if (code?.startsWith("it")) {
btnSp.spriteFrame = this.inviteSf;
} else if (code?.startsWith("tt") && (extra == 0 || !!!extra)) {
......@@ -91,6 +85,11 @@ export class TaskItem extends ScrollListItem {
} else if (code?.startsWith("bt")) {
btnSp.spriteFrame = this.doSf;
} else {
if(!haveJump){
btnSp.spriteFrame = this.noJumpSf;
break;
}
if (code === "bank_2202") { // 特殊任务
// hasReceivedNum 特殊任务的已领奖次数
if (completedSize >= 1) {
......
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