|
|
@ -106,20 +106,20 @@ class _IntegralTask extends State<IntegralTask> { |
|
|
|
|
|
|
|
|
|
|
|
taskImg(String taskType) { |
|
|
|
taskImg(String taskType) { |
|
|
|
switch (taskType) { |
|
|
|
switch (taskType) { |
|
|
|
case "bill_type_point_login": |
|
|
|
case "bill_type_point_order": |
|
|
|
return "assets/image/icon_integral_login.png"; |
|
|
|
return "assets/image/icon_integral_login.png"; |
|
|
|
break; |
|
|
|
break; |
|
|
|
case "bill_type_point_share": |
|
|
|
case "bill_type_point_share": |
|
|
|
return "assets/image/icon_integral_share.png"; |
|
|
|
return "assets/image/icon_integral_share.png"; |
|
|
|
break; |
|
|
|
break; |
|
|
|
case "bill_type_point_order": |
|
|
|
case "bill_type_point_login": |
|
|
|
return "assets/image/icon_integral_order.png"; |
|
|
|
return "assets/image/icon_integral_order.png"; |
|
|
|
break; |
|
|
|
break; |
|
|
|
case "bill_type_point_signin": |
|
|
|
case "bill_type_point_signin": |
|
|
|
return "assets/image/icon_integral_sign.png"; |
|
|
|
return "assets/image/icon_integral_sign.png"; |
|
|
|
break; |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
return "assets/image/icon_integral_share.png"; |
|
|
|
return "assets/image/icon_integral_login.png"; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
Widget taskItem(Task task) { |
|
|
|
Widget taskItem(Task task) { |
|
|
@ -202,7 +202,7 @@ class _IntegralTask extends State<IntegralTask> { |
|
|
|
), |
|
|
|
), |
|
|
|
) |
|
|
|
) |
|
|
|
: RoundButton( |
|
|
|
: RoundButton( |
|
|
|
text: "x10", |
|
|
|
text: "x${double.tryParse(task.rewardValue).toInt()}", |
|
|
|
textColor: |
|
|
|
textColor: |
|
|
|
task.limitDay == (task.complateNum ?? task.conplateNum) |
|
|
|
task.limitDay == (task.complateNum ?? task.conplateNum) |
|
|
|
? Color(0xFF808080) |
|
|
|
? Color(0xFF808080) |
|
|
|