shareQrCode.vue 2.6 KB

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