Commit 67253ec3 authored by haiyoucuv's avatar haiyoucuv

整理一下代码

parent 28bd0cc0
......@@ -4,6 +4,7 @@ import { changeScene } from "db://assets/Module/UIFast";
import { HomeScene } from "db://assets/Scripts/Scenes/HomeScene";
import ShareCenter from "../ShareCenter";
import { SHARE_TYPE } from "../const";
import { strFormat } from "../Utils/Utils";
const {ccclass, property} = _decorator;
......@@ -40,7 +41,10 @@ export default class PrizePanel extends Panel {
const {prizeName, prizeImg, score} = this.data;
this.score.string = `本次积分:${score}`;
this.prizeName.string = prizeName;
this.prizeName.string = strFormat(
prizeName,
20
);
this.img.spriteFrame = prizeImg;
}
......
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