Commit 195c5296 authored by haiyoucuv's avatar haiyoucuv

整理一下代码

parent 9e65f492
......@@ -40,7 +40,7 @@ export default class PrizePanel extends Panel {
const {prizeName, prizeImg, score} = this.data;
this.score.string = `本次积分${score}`;
this.score.string = `本次游园币${score}`;
this.prizeName.string = strFormat(
prizeName,
20
......
......@@ -9,7 +9,7 @@ export class RecordScrollListItem extends ScrollListItem {
onItemRender(data, ...param: any[]) {
if (Object.keys(data).includes("ifGetPrize")) {
this.node.getChildByName("Title").getComponent(Label).string = `获得${data?.score || 0}游园积分`;
this.node.getChildByName("Title").getComponent(Label).string = `获得${data?.score || 0}游园`;
this.node.getChildByName("Time").getComponent(Label).string = `${dateFormatter(data?.timestamp, "yyyy.MM.dd hh:mm")}`;
if(!!data?.ifGetPrize) {
this.node.getChildByName("Desc").getComponent(Label).color = new Color(255, 5, 0, 255);
......
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