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DateCountView } from \"../type/DateCountView\";\nimport { CCPureView } from \"../../../../common/classbase/CCViewBase\";\nimport { RegView } from \"../../PresenterCCViewFactory\";\nimport { DummyNode, DummyRichText, DummySprite } from \"../../../../common/CCDummyObjects\";\nimport { ResUtils } from \"simba-cc-resutils\";\nimport { GameModelManager } from \"../../../model/GameModelManager\";\n\nconst { ccclass, property } = cc._decorator;\n@ccclass\n@RegView(DateCountViewType, \"prefab/ui/DateCountView\")\nexport class DateCountViewImpl extends CCPureView<DateCountViewProps> implements DateCountView {\n\n @property(cc.Sprite)\n progressTipSpr: cc.Sprite = DummySprite;\n\n @property(cc.Sprite)\n preNumberSpr: cc.Sprite = DummySprite;\n\n @property(cc.Sprite)\n curNumberSpr: cc.Sprite = DummySprite;\n\n @property(cc.Sprite)\n skinSpr: cc.Sprite = DummySprite;\n\n @property(cc.Node)\n numberNode: cc.Node = DummyNode;\n\n @property(cc.RichText)\n skinNameLabel: cc.RichText = DummyRichText;\n\n @property(cc.Node)\n kaNode: cc.Node = DummyNode;\n\n private _resumPosY: number = -120;\n private _moveTmpPosY: number = -10;\n private _actLifeCycle: number = 2;\n private _rotationStep: number = -60;\n\n onLoad() {\n this.bindProp(\"skinSprPath\", async (value) => {\n if (value && \"\" !== value.trim() && !value.endsWith(\"/\")) {\n this.skinSpr.spriteFrame = await ResUtils.loadRes(value, cc.SpriteFrame);\n }\n });\n this.bindProp(\"progressTipSprPath\", async (value) => {\n if (value && \"\" !== value.trim() && !value.endsWith(\"/\")) {\n this.progressTipSpr.spriteFrame = await ResUtils.loadRes(value, cc.SpriteFrame);\n }\n });\n this.bindProp(\"preNumberSprPath\", async (value) => {\n if (value && \"\" !== value.trim() && !value.endsWith(\"/\")) {\n this.preNumberSpr.spriteFrame = await ResUtils.loadRes(value, cc.SpriteFrame);\n }\n });\n this.bindProp(\"curNumberSprPath\", async (value) => {\n if (value && \"\" !== value.trim() && !value.endsWith(\"/\")) {\n this.curNumberSpr.spriteFrame = await ResUtils.loadRes(value, cc.SpriteFrame);\n }\n });\n this.bindProp(\"skinName\", async (value) => {\n this.skinNameLabel.string = value;\n });\n }\n\n onEnable() {\n this.kaNodeAnim();\n }\n\n runMoveAction = () => {\n this.numberNode.y = this._resumPosY;\n cc.tween(this.numberNode).to(this._actLifeCycle, { y: this._moveTmpPosY }, { easing: 'backInOut' }).start();\n }\n\n resumeMoveAction = () => {\n this.numberNode.y = this._resumPosY;\n }\n\n kaNodeAnim() {\n cc.tween(this.kaNode).by(this._actLifeCycle, { angle: this._rotationStep }).repeatForever().start()\n }\n\n closeAction() {\n if (this._props.canClose) {\n this.close();\n // GameModelManager.checkAutoPopView();\n }\n }\n}"]}