shareQrCode.vue 3.8 KB

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