Commit 7ad8b366 authored by haiyoucuv's avatar haiyoucuv

背包奖品高亮

parent 7c6be580
...@@ -88,11 +88,11 @@ export class LuckRecordPanel extends Panel { ...@@ -88,11 +88,11 @@ export class LuckRecordPanel extends Panel {
cell.getChildByName(`name`) cell.getChildByName(`name`)
.getComponent(Label) .getComponent(Label)
.string = strFormat(`${changeType}${num} ${desc}`, 32); .string = strFormat(`${changeType == "1" ? "+" : "-"}${num} ${desc}`, 32);
cell.getChildByName(`time`) cell.getChildByName(`time`)
.getComponent(Label) .getComponent(Label)
.string = `${dateFormatter(time, "yyyy.MM.dd hh:mm")}${changeType == "+" ? "获得" : "消耗"}`; .string = `${dateFormatter(time, "yyyy.MM.dd hh:mm")}${changeType == "1" ? "获得" : "消耗"}`;
cell.getChildByPath("img/数量角标/num") cell.getChildByPath("img/数量角标/num")
.getComponent(Label).string = `x${num}`; .getComponent(Label).string = `x${num}`;
......
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