shareQrCode.vue 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. <template>
  2. <view class="all" >
  3. <view class="list" v-for="item in 12" :key="item">
  4. <view class="listO">
  5. <view class="li">第2022010223期</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. };
  33. },
  34. onLoad() {
  35. // this.test()
  36. this.getGame()
  37. // this.request()
  38. },
  39. //下拉刷新
  40. onPullDownRefresh() {
  41. let obj = this;
  42. //监听下拉刷新动作的执行方法,每次手动下拉刷新都会执行一次
  43. setTimeout(function() {
  44. obj.loadCodeList();
  45. uni.stopPullDownRefresh(); //停止下拉刷新动画
  46. }, 1000);
  47. },
  48. methods: {
  49. // async request() {
  50. // try{
  51. // const res1 = await test(); //第一个异步函数
  52. // const res2 = await getGame(); //第二个异步函数
  53. // console.log('11',res1);
  54. // }catch(error) {
  55. // console.log(error);
  56. // }
  57. // }
  58. // async test() {
  59. // try {
  60. // const res = await test();
  61. // console.log('312', res);
  62. // } catch (error) {
  63. // console.error('请求出错', error);
  64. // }
  65. // },
  66. // 互娱记录
  67. async getGame() {
  68. try {
  69. const res = await getGame();
  70. console.log('12312', res);
  71. } catch (error) {
  72. console.error('请求出错', error);
  73. }
  74. }
  75. }
  76. };
  77. </script>
  78. <style lang="scss">
  79. .all {
  80. width: 750rpx;
  81. // height: 100%;
  82. min-height: 100vh;
  83. background-color: $page-color-base;
  84. }
  85. .list {
  86. width: 710rpx;
  87. height: 300rpx;
  88. background: #191A1F;
  89. box-shadow: 0rpx 5rpx 24rpx 0rpx rgba(4,0,0,0.06);
  90. border-radius: 15rpx;
  91. margin-left: 20rpx;
  92. margin-top: 30rpx;
  93. }
  94. .listO {
  95. display: flex;
  96. justify-content: space-between;
  97. }
  98. .li {
  99. height: 31rpx;
  100. font-size: 32rpx;
  101. font-weight: bold;
  102. color: #FFFFFF;
  103. line-height: 47rpx;
  104. margin-left: 26rpx;
  105. margin-top: 35rpx;
  106. }
  107. .lis {
  108. width: 97rpx;
  109. height: 38rpx;
  110. background: #008001;
  111. border-radius: 5rpx;
  112. margin-top: 35rpx;
  113. margin-right: 30rpx;
  114. }
  115. .liss {
  116. height: 21rpx;
  117. font-size: 22rpx;
  118. font-weight: 500;
  119. color: #FFFFFF;
  120. line-height: 37rpx;
  121. margin-left: 13rpx;
  122. }
  123. .TT {
  124. display: flex;
  125. justify-content: start;
  126. }
  127. .lsT {
  128. // height: 100rpx;
  129. font-size: 28rpx;
  130. font-weight: 500;
  131. color: #999999;
  132. line-height: 47rpx;
  133. margin-left: 28rpx;
  134. margin-top: 20rpx;
  135. }
  136. .lisT {
  137. font-size: 32rpx;
  138. font-weight: bold;
  139. color: #FFFFFF;
  140. line-height: 47rpx;
  141. margin-top: 20rpx;
  142. }
  143. </style>