RedBagCode.ts 580 B

123456789101112131415161718192021222324252627
  1. const { ccclass, property } = cc._decorator;
  2. /**
  3. * 红包码列表
  4. * @author 薛鸿潇
  5. */
  6. @ccclass
  7. export default class RedBagCode extends cc.Component {
  8. @property({ type: cc.ScrollView, displayName: '滚动视图' })
  9. private scroll_view: cc.ScrollView = null!;
  10. // onLoad () {}
  11. start() {
  12. this.initList();
  13. }
  14. /**
  15. * 初始化滚动列表
  16. */
  17. private initList() {
  18. let list_data = gData.cashNormal.getListDataHavCode();
  19. this.scroll_view.node.emit('srollview-init', list_data)
  20. }
  21. }