shareQrCode.vue 2.5 KB

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