tabulation.vue 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273
  1. <template>
  2. <view class="all">
  3. <view class="row">
  4. <view class="row1">
  5. <view class="shu">30</view>
  6. <view class="wenben">{{$t('huiyuan.a1')}}</view>
  7. </view>
  8. <view class="row2">
  9. <view class="shu">30</view>
  10. <view class="wenben">{{$t('huiyuan.a2')}}</view>
  11. </view>
  12. </view>
  13. <view class="rowT">
  14. <view class="row1">
  15. <view class="shu">30</view>
  16. <view class="wenben">{{$t('huiyuan.a3')}}</view>
  17. </view>
  18. <view class="row2">
  19. <view class="shu">30</view>
  20. <view class="wenben">{{$t('huiyuan.a4')}}</view>
  21. </view>
  22. </view>
  23. <view class="list" v-for="item in 12" :key="item">
  24. <view class="top">
  25. <view class="nc">123****032@qq.com</view>
  26. <view class="">
  27. <image class="img" src="/static/shouye/huiyuan.png" mode=""></image>
  28. </view>
  29. </view>
  30. <view class="center" @click="navX">
  31. <view class="sj">2023.05.05 15:00</view>
  32. <view class="xq">{{$t('huiyuan.a5')}}</view>
  33. <view class="">
  34. <image class="ima" src="/static/icon/jt.png" mode=""></image>
  35. </view>
  36. </view>
  37. <view class="xian"></view>
  38. <view class="last">
  39. <view class="left">{{$t('huiyuan.a6')}}:</view>
  40. <view class="leftT">5000U</view>
  41. <view class="right">{{$t('huiyuan.a7')}}:</view>
  42. <view class="rightT">50</view>
  43. </view>
  44. </view>
  45. <view class="bto">
  46. </view>
  47. </view>
  48. </template>
  49. <script>
  50. import {
  51. mapState,
  52. mapMutations
  53. } from 'vuex';
  54. import {spread, getUserInfo} from "@/api/user.js"
  55. export default {
  56. data() {
  57. return {
  58. id: '',
  59. page: 1,
  60. limit: 10,
  61. list: []
  62. };
  63. },
  64. onLoad(option) {
  65. this.id = option.id
  66. this.spread()
  67. uni.setNavigationBarTitle({
  68. title: this.$t("tab.b1"),
  69. });
  70. },
  71. //下拉刷新
  72. onPullDownRefresh() {
  73. let obj = this;
  74. //监听下拉刷新动作的执行方法,每次手动下拉刷新都会执行一次
  75. setTimeout(function() {
  76. obj.loadCodeList();
  77. uni.stopPullDownRefresh(); //停止下拉刷新动画
  78. }, 1000);
  79. },
  80. computed: {
  81. ...mapState('user', ['userInfo', 'orderInfo', 'hasLogin'])
  82. },
  83. methods: {
  84. // 会员记录
  85. spread() {
  86. // const id = this.userInfo.id
  87. // console.log(this.userInfo,'dsadas');
  88. let that = this
  89. if (that.loadingType == 'loading' || that.loadingType == 'noMore') {
  90. return
  91. }
  92. spread({
  93. page: that.page,
  94. limit: that.limit,
  95. // id: that.userInfo.uid,
  96. }).then(res => {
  97. // that.list = data.list
  98. let list = res.data.list
  99. // that.list = that.list.concat(list)
  100. // that.page++
  101. console.log('list', list);
  102. if (list.length == that.limit) {
  103. that.loadingType = 'more'
  104. } else {
  105. that.loadingType = 'noMore'
  106. }
  107. that.loaded = true
  108. }).catch(e=>{
  109. console.log(e);
  110. })
  111. },
  112. navX() {
  113. uni.navigateTo({
  114. url: '/pages/user/vip/details'
  115. })
  116. }
  117. }
  118. };
  119. </script>
  120. <style lang="scss">
  121. .all {
  122. width: 750rpx;
  123. min-height: 100vh;
  124. background-color: $page-color-base;
  125. }
  126. .row {
  127. display: flex;
  128. justify-content: space-between;
  129. }
  130. .rowT {
  131. display: flex;
  132. justify-content: space-between;
  133. margin-top: 20rpx;
  134. }
  135. .row1 {
  136. width: 325rpx;
  137. height: 168rpx;
  138. background: #191A1F;
  139. border-radius: 10rpx;
  140. margin-left: 36rpx;
  141. }
  142. .wenben {
  143. height: 27rpx;
  144. font-size: 28rpx;
  145. font-weight: 500;
  146. color: #FFFFFF;
  147. margin-left: 107rpx;
  148. margin-top: 22rpx;
  149. }
  150. .shu {
  151. width: 52rpx;
  152. height: 35rpx;
  153. font-size: 46rpx;
  154. font-weight: bold;
  155. color: #FEB041;
  156. margin-left: 136rpx;
  157. margin-top: 43rpx;
  158. }
  159. .row2 {
  160. width: 325rpx;
  161. height: 168rpx;
  162. background: #191A1F;
  163. border-radius: 10rpx;
  164. margin-right: 36rpx;
  165. }
  166. .list {
  167. width: 684rpx;
  168. height: 262rpx;
  169. background: #191A1F;
  170. border-radius: 16rpx;
  171. margin-left: 36rpx;
  172. margin-top: 25rpx;
  173. }
  174. .top {
  175. display: flex;
  176. justify-content: start;
  177. }
  178. .nc {
  179. height: 31rpx;
  180. font-size: 32rpx;
  181. font-weight: bold;
  182. color: #FFFFFF;
  183. margin-left: 35rpx;
  184. padding-top: 40rpx;
  185. }
  186. .img {
  187. width: 100rpx;
  188. height: 32rpx;
  189. margin-left: 20rpx;
  190. margin-top: 46rpx;
  191. object-fit: cover;
  192. }
  193. .center {
  194. display: flex;
  195. justify-content: start;
  196. }
  197. .sj {
  198. margin-left: 34rpx;
  199. margin-top: 25rpx;
  200. height: 22rpx;
  201. float: length($list: 231rpx);
  202. font-size: 28rpx;
  203. font-weight: 500;
  204. color: #999999;
  205. }
  206. .xq {
  207. margin-top: 25rpx;
  208. margin-left: 290rpx;
  209. height: 26rpx;
  210. font-size: 28rpx;
  211. font-family: PingFang SC;
  212. font-weight: 500;
  213. color: #999999;
  214. float: length($list: 54rpx);
  215. }
  216. .ima {
  217. width: 13rpx;
  218. height: 19rpx;
  219. margin-top: 35rpx;
  220. margin-left: 20rpx;
  221. }
  222. .xian {
  223. width: 618rpx;
  224. height: 1rpx;
  225. background: #DDE1EB;
  226. opacity: 0.2;
  227. margin-left: 20rpx;
  228. margin-top: 30rpx;
  229. }
  230. .last {
  231. display: flex;
  232. justify-content: start;
  233. }
  234. .left {
  235. font-size: 28rpx;
  236. font-family: PingFang SC;
  237. font-weight: 500;
  238. color: #999999;
  239. margin-left: 36rpx;
  240. margin-top: 30rpx;
  241. }
  242. .leftT {
  243. font-size: 28rpx;
  244. font-weight: 500;
  245. color: #b98134;
  246. margin-top: 30rpx;
  247. }
  248. .right {
  249. font-size: 28rpx;
  250. font-weight: 500;
  251. color: #999999;
  252. margin-left: 200rpx;
  253. margin-top: 30rpx;
  254. }
  255. .rightT {
  256. font-size: 28rpx;
  257. font-weight: 500;
  258. color: #ffffff;
  259. margin-top: 30rpx;
  260. }
  261. </style>