shareQrCode.vue 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  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">待開獎</view>
  8. </view>
  9. </view>
  10. <view class="listT">
  11. <view class="TT">
  12. <view class="lsT">k線類型:</view>
  13. <view class="lisT">5分線</view>
  14. </view>
  15. <view class="TT">
  16. <view class="lsT">互娛金額:</view>
  17. <view class="lisT">10.00U</view>
  18. </view>
  19. <view class="TT">
  20. <view class="lsT">開獎時間:</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: #000000;
  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-family: PingFang SC;
  102. font-weight: bold;
  103. color: #FFFFFF;
  104. line-height: 47rpx;
  105. margin-left: 26rpx;
  106. margin-top: 35rpx;
  107. }
  108. .lis {
  109. width: 97rpx;
  110. height: 38rpx;
  111. background: #008001;
  112. border-radius: 5rpx;
  113. margin-top: 35rpx;
  114. margin-right: 30rpx;
  115. }
  116. .liss {
  117. height: 21rpx;
  118. font-size: 22rpx;
  119. font-family: PingFang SC;
  120. font-weight: 500;
  121. color: #FFFFFF;
  122. line-height: 37rpx;
  123. margin-left: 13rpx;
  124. }
  125. .TT {
  126. display: flex;
  127. justify-content: start;
  128. }
  129. .lsT {
  130. // height: 100rpx;
  131. font-size: 28rpx;
  132. font-family: PingFang SC;
  133. font-weight: 500;
  134. color: #999999;
  135. line-height: 47rpx;
  136. margin-left: 28rpx;
  137. margin-top: 20rpx;
  138. }
  139. .lisT {
  140. font-size: 32rpx;
  141. font-family: PingFang SC;
  142. font-weight: bold;
  143. color: #FFFFFF;
  144. line-height: 47rpx;
  145. margin-top: 20rpx;
  146. }
  147. </style>