shareQrCode.vue 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. <template>
  2. <view class="all" >
  3. <view class="list" v-for="item in list" :key="id">
  4. <view class="listO">
  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">{{$t('gameList.a6')}}</view>
  8. </view>
  9. <view class="lis" v-else>
  10. <view class="liss">{{$t('gameList.a1')}}</view>
  11. </view>
  12. </view>
  13. <view class="listT">
  14. <view class="TT">
  15. <view class="lsT">{{$t('gameList.a2')}}:</view>
  16. <view class="lisT">{{item.room.game.timebar}}</view>
  17. </view>
  18. <view class="TT">
  19. <view class="lsT">{{$t('gameList.a4')}}:</view>
  20. <view class="lisT">{{item.num}}U</view>
  21. </view>
  22. <view class="TT">
  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 {gameBetList} from '@/api/game.js'
  32. export default {
  33. data() {
  34. return {
  35. id: '',
  36. page: 1,
  37. limit: 10,
  38. list: []
  39. };
  40. },
  41. onLoad(option) {
  42. this.id = option.id
  43. this.gameBetList()
  44. uni.setNavigationBarTitle({
  45. title: this.$t("tab.a9"),
  46. });
  47. },
  48. //下拉刷新
  49. onPullDownRefresh() {
  50. let obj = this;
  51. //监听下拉刷新动作的执行方法,每次手动下拉刷新都会执行一次
  52. setTimeout(function() {
  53. obj.loadCodeList();
  54. uni.stopPullDownRefresh(); //停止下拉刷新动画
  55. }, 1000);
  56. },
  57. methods: {
  58. // 互娱记录
  59. gameBetList() {
  60. let that = this
  61. if (that.loadingType == 'loading' || that.loadingType == 'noMore') {
  62. return
  63. }
  64. gameBetList({
  65. page: that.page,
  66. limit: that.limit,
  67. id: that.id,
  68. }).then(res => {
  69. let list = res.data.bet_log
  70. that.list = that.list.concat(list)
  71. that.page++
  72. console.log('11111111', list);
  73. if (list.length == that.limit) {
  74. that.loadingType = 'more'
  75. } else {
  76. that.loadingType = 'noMore'
  77. }
  78. that.loaded = true
  79. })
  80. }
  81. }
  82. };
  83. </script>
  84. <style lang="scss">
  85. .all {
  86. width: 750rpx;
  87. min-height: 100vh;
  88. background-color: $page-color-base;
  89. }
  90. .list {
  91. width: 710rpx;
  92. height: 300rpx;
  93. background: #191A1F;
  94. box-shadow: 0rpx 5rpx 24rpx 0rpx rgba(4,0,0,0.06);
  95. border-radius: 15rpx;
  96. margin-left: 20rpx;
  97. margin-top: 30rpx;
  98. }
  99. .listO {
  100. display: flex;
  101. justify-content: space-between;
  102. }
  103. .li {
  104. height: 31rpx;
  105. font-size: 32rpx;
  106. font-weight: bold;
  107. color: #FFFFFF;
  108. line-height: 47rpx;
  109. margin-left: 26rpx;
  110. margin-top: 35rpx;
  111. }
  112. .lis {
  113. width: 97rpx;
  114. height: 38rpx;
  115. background: #008001;
  116. border-radius: 5rpx;
  117. margin-top: 35rpx;
  118. margin-right: 30rpx;
  119. }
  120. .liss {
  121. height: 21rpx;
  122. font-size: 22rpx;
  123. font-weight: 500;
  124. color: #FFFFFF;
  125. line-height: 37rpx;
  126. margin-left: 13rpx;
  127. }
  128. .TT {
  129. display: flex;
  130. justify-content: start;
  131. }
  132. .lsT {
  133. // height: 100rpx;
  134. font-size: 28rpx;
  135. font-weight: 500;
  136. color: #999999;
  137. line-height: 47rpx;
  138. margin-left: 28rpx;
  139. margin-top: 20rpx;
  140. }
  141. .lisT {
  142. font-size: 32rpx;
  143. font-weight: bold;
  144. color: #FFFFFF;
  145. line-height: 47rpx;
  146. margin-top: 20rpx;
  147. }
  148. </style>