shareQrCode.vue 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. <template>
  2. <view class="all" >
  3. <view class="list" v-for="item in 12" :key="item" :style="{color: item.status === '待开奖' ? 'green' : item.status === '已中奖' ? 'red' : 'yellow'}">
  4. <view class="listO">
  5. <view class="li">{{$t('set.a7')}}2022010223{{$t('set.a8')}}</view>
  6. <view class="lis">
  7. <view class="liss">{{$t('gameList.a1')}}</view>
  8. </view>
  9. </view>
  10. <view class="listT">
  11. <view class="TT">
  12. <view class="lsT">{{$t('gameList.a2')}}:</view>
  13. <view class="lisT">{{$t('gameList.a3')}}</view>
  14. </view>
  15. <view class="TT">
  16. <view class="lsT">{{$t('gameList.a4')}}:</view>
  17. <view class="lisT">10.00U</view>
  18. </view>
  19. <view class="TT">
  20. <view class="lsT">{{$t('gameList.a5')}}:</view>
  21. <view class="lisT">2023/3/18 12:00</view>
  22. </view>
  23. </view>
  24. </view>
  25. </view>
  26. </template>
  27. <script>
  28. import {getGame,test } from '@/api/game.js'
  29. export default {
  30. data() {
  31. return {
  32. item: [
  33. {
  34. status: '待开奖'
  35. }
  36. ]
  37. };
  38. },
  39. onLoad() {
  40. this.getGame()
  41. uni.setNavigationBarTitle({
  42. title: this.$t("tab.a9"),
  43. });
  44. },
  45. //下拉刷新
  46. onPullDownRefresh() {
  47. let obj = this;
  48. //监听下拉刷新动作的执行方法,每次手动下拉刷新都会执行一次
  49. setTimeout(function() {
  50. obj.loadCodeList();
  51. uni.stopPullDownRefresh(); //停止下拉刷新动画
  52. }, 1000);
  53. },
  54. methods: {
  55. // 互娱记录
  56. async getGame() {
  57. try {
  58. const res = await getGame();
  59. console.log('12312', res);
  60. } catch (error) {
  61. console.error('请求出错', error);
  62. }
  63. }
  64. }
  65. };
  66. </script>
  67. <style lang="scss">
  68. .all {
  69. width: 750rpx;
  70. min-height: 100vh;
  71. background-color: $page-color-base;
  72. }
  73. .list {
  74. width: 710rpx;
  75. height: 300rpx;
  76. background: #191A1F;
  77. box-shadow: 0rpx 5rpx 24rpx 0rpx rgba(4,0,0,0.06);
  78. border-radius: 15rpx;
  79. margin-left: 20rpx;
  80. margin-top: 30rpx;
  81. }
  82. .listO {
  83. display: flex;
  84. justify-content: space-between;
  85. }
  86. .li {
  87. height: 31rpx;
  88. font-size: 32rpx;
  89. font-weight: bold;
  90. color: #FFFFFF;
  91. line-height: 47rpx;
  92. margin-left: 26rpx;
  93. margin-top: 35rpx;
  94. }
  95. .lis {
  96. width: 97rpx;
  97. height: 38rpx;
  98. background: #008001;
  99. border-radius: 5rpx;
  100. margin-top: 35rpx;
  101. margin-right: 30rpx;
  102. }
  103. .liss {
  104. height: 21rpx;
  105. font-size: 22rpx;
  106. font-weight: 500;
  107. color: #FFFFFF;
  108. line-height: 37rpx;
  109. margin-left: 13rpx;
  110. }
  111. .TT {
  112. display: flex;
  113. justify-content: start;
  114. }
  115. .lsT {
  116. // height: 100rpx;
  117. font-size: 28rpx;
  118. font-weight: 500;
  119. color: #999999;
  120. line-height: 47rpx;
  121. margin-left: 28rpx;
  122. margin-top: 20rpx;
  123. }
  124. .lisT {
  125. font-size: 32rpx;
  126. font-weight: bold;
  127. color: #FFFFFF;
  128. line-height: 47rpx;
  129. margin-top: 20rpx;
  130. }
  131. </style>