shareQrCode.vue 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. <template>
  2. <view class="all">
  3. <view class="list" v-for="item in list">
  4. <view class="flex padding-b-20">
  5. <view class="li">{{$t('set.a7')}}{{item.room.no}}{{$t('set.a8')}}</view>
  6. <view class="lis" v-if="item.status === 1">
  7. <view class="liss green">{{$t('gameList.a6')}}</view>
  8. </view>
  9. <view class="lis" v-else>
  10. <view class="liss red">{{$t('gameList.a1')}}</view>
  11. </view>
  12. </view>
  13. <view class="listT">
  14. <view class="TT flex-start">
  15. <view class="lsT">{{$t('gameList.a2')}}:</view>
  16. <view class="lisT">{{item.room.game.timebar}}</view>
  17. </view>
  18. <view class="TT flex-start">
  19. <view class="lsT">{{$t('gameList.a4')}}:</view>
  20. <view class="lisT">{{item.num}}U</view>
  21. </view>
  22. <view class="TT flex-start">
  23. <view class="lsT">{{$t('gameList.a5')}}:</view>
  24. <view class="lisT">{{item.open_time}}</view>
  25. </view>
  26. </view>
  27. </view>
  28. </view>
  29. </template>
  30. <script>
  31. import {
  32. gameBetList
  33. } from '@/api/game.js'
  34. import {
  35. getTime
  36. } from '@/utils/rocessor.js';
  37. export default {
  38. data() {
  39. return {
  40. id: 0,
  41. page: 1,
  42. limit: 10,
  43. list: []
  44. };
  45. },
  46. onLoad() {
  47. this.gameBetList()
  48. uni.setNavigationBarTitle({
  49. title: this.$t("tab.a9"),
  50. });
  51. },
  52. onReachBottom() {
  53. this.gameBetList()
  54. },
  55. //下拉刷新
  56. methods: {
  57. // 互娱记录
  58. gameBetList() {
  59. let that = this
  60. if (that.loadingType == 'loading' || that.loadingType == 'noMore') {
  61. return
  62. }
  63. gameBetList({
  64. page: that.page,
  65. limit: that.limit,
  66. id: that.id,
  67. }).then(res => {
  68. let list = res.data.bet_log.map((res) => {
  69. res.num = +res.num;
  70. res.open_time = getTime(res.open_time)
  71. return res
  72. })
  73. that.list = that.list.concat(list)
  74. that.page++
  75. if (list.length == that.limit) {
  76. that.loadingType = 'more'
  77. } else {
  78. that.loadingType = 'noMore'
  79. }
  80. that.loaded = true
  81. })
  82. }
  83. }
  84. };
  85. </script>
  86. <style lang="scss">
  87. .all {
  88. color: #FFFFFF;
  89. padding: 30rpx;
  90. line-height: 1;
  91. }
  92. .list {
  93. background: #191A1F;
  94. box-shadow: 0rpx 5rpx 24rpx 0rpx rgba(4, 0, 0, 0.06);
  95. border-radius: 15rpx;
  96. padding: 30rpx;
  97. margin-bottom: 30rpx;
  98. .li {
  99. font-size: $font-lg;
  100. font-weight: bold;
  101. }
  102. .lis {
  103. .liss {
  104. border-radius: 5rpx;
  105. padding: 10rpx 20rpx;
  106. font-size: 22rpx;
  107. font-weight: 500;
  108. &.red{
  109. background: $color-yellow;
  110. }
  111. &.green{
  112. background: $color-green;
  113. }
  114. }
  115. }
  116. }
  117. .listT {
  118. .TT {
  119. margin-top: 20rpx;
  120. .lsT {
  121. font-weight: 500;
  122. color: #999999;
  123. font-size: $font-base;
  124. min-width: 140rpx;
  125. }
  126. .lisT {
  127. font-size: $font-lg;
  128. font-weight: bold;
  129. }
  130. }
  131. }
  132. </style>