mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-06-26 11:24:46 +00:00
29 lines
731 B
TypeScript
29 lines
731 B
TypeScript
import { _decorator, Component, Node } from 'cc';
|
|
import { JNGLayerBase } from '../../../components/JNComponent';
|
|
import { TbGEntity } from '../../../config/data/schema';
|
|
import JNScrollView from '../../../../../extensions/ngame/assets/ngame/util/components/scrollview/JNScrollView';
|
|
const { ccclass, property } = _decorator;
|
|
|
|
@ccclass('RewardClaimView')
|
|
export class RewardClaimView extends JNGLayerBase {
|
|
|
|
//奖励页面
|
|
@property(JNScrollView)
|
|
views:JNScrollView;
|
|
|
|
data:TbGEntity.TReward[] = [];
|
|
|
|
onJNLoad(data?: TbGEntity.TReward[]): void {
|
|
super.onJNLoad(data);
|
|
this.data = data;
|
|
this.onUpdateView();
|
|
}
|
|
|
|
onUpdateView(){
|
|
this.views.refreshData(this.data);
|
|
}
|
|
|
|
}
|
|
|
|
|