CashNormal.ts 873 B

12345678910111213141516171819202122232425262728293031323334353637
  1. const { ccclass, property } = cc._decorator;
  2. /**
  3. * 提现记录
  4. * @author 薛鸿潇
  5. */
  6. @ccclass
  7. export default class CashNormal extends cc.Component {
  8. @property({ displayName: '滚动视图', type: cc.ScrollView })
  9. private scroll_view: cc.ScrollView = null!;
  10. @property({ displayName: 'lbl累计提现', type: cc.Label })
  11. private lbl_rmb_total: cc.Label = null;
  12. // onLoad () {}
  13. start() {
  14. this.initTotal();
  15. this.initScrollView();
  16. }
  17. // update (dt) {}
  18. /**
  19. * 初始化滚动视图
  20. */
  21. private initScrollView() {
  22. this.scroll_view.node.emit('srollview-init', gData.cashNormal.list_data);
  23. }
  24. /**
  25. * 初始化累计提现
  26. */
  27. private initTotal() {
  28. this.lbl_rmb_total.string = '¥' + gData.cashNormal.receip_total_rmb + '元';
  29. }
  30. }