details.vue 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. <template>
  2. <view class="">
  3. <view class="list" v-for="item in 12" :key="item">
  4. <view class="top">
  5. <view class="nc">123****032@qq.com</view>
  6. <view class="">
  7. <image class="img" mode=""></image>
  8. </view>
  9. </view>
  10. <view class="center">
  11. <view class="sj">2023.05.05 15:00</view>
  12. <view class="xq">詳情</view>
  13. <view class="">
  14. <image class="ima" src="/static/icon/jt.png" mode=""></image>
  15. </view>
  16. </view>
  17. <view class="xian"></view>
  18. <view class="last">
  19. <view class="left">互娛金額:</view>
  20. <view class="leftT">5000U</view>
  21. <view class="right">推廣數:</view>
  22. <view class="rightT">50</view>
  23. </view>
  24. </view>
  25. </view>
  26. </template>
  27. <script>
  28. import {
  29. mapState,
  30. mapMutations
  31. } from 'vuex';
  32. import {spread, getUserInfo} from "@/api/user.js"
  33. export default {
  34. data() {
  35. return {
  36. id: '',
  37. page: 1,
  38. limit: 10,
  39. list: [],
  40. };
  41. },
  42. onLoad(option) {
  43. this.id = option.id
  44. this.spread()
  45. },
  46. computed: {
  47. ...mapState('user', ['userInfo', 'orderInfo', 'hasLogin'])
  48. },
  49. methods: {
  50. //
  51. spread() {
  52. let that = this
  53. spread({
  54. page: that.page,
  55. limit: that.limit,
  56. id: that.userInfo.uid,
  57. }).then(res => {
  58. let data = res.data
  59. this.list = res.data.list
  60. console.log('list', this.list);
  61. }).catch(e=>{
  62. console.log(e);
  63. })
  64. },
  65. }
  66. }
  67. </script>
  68. <style lang="scss">
  69. .list {
  70. width: 684rpx;
  71. height: 262rpx;
  72. background: #191A1F;
  73. border-radius: 16rpx;
  74. margin-left: 36rpx;
  75. margin-top: 25rpx;
  76. }
  77. .top {
  78. display: flex;
  79. justify-content: start;
  80. }
  81. .nc {
  82. height: 31rpx;
  83. font-size: 32rpx;
  84. font-family: PingFang SC;
  85. font-weight: bold;
  86. color: #FFFFFF;
  87. margin-left: 35rpx;
  88. padding-top: 40rpx;
  89. }
  90. .img {
  91. width: 100rpx;
  92. height: 32rpx;
  93. margin-left: 20rpx;
  94. margin-top: 46rpx;
  95. object-fit: cover;
  96. }
  97. .center {
  98. display: flex;
  99. justify-content: start;
  100. }
  101. .sj {
  102. margin-left: 34rpx;
  103. margin-top: 25rpx;
  104. height: 22rpx;
  105. float: length($list: 231rpx);
  106. font-size: 28rpx;
  107. font-weight: 500;
  108. color: #999999;
  109. }
  110. .xq {
  111. margin-top: 25rpx;
  112. margin-left: 290rpx;
  113. height: 26rpx;
  114. font-size: 28rpx;
  115. font-weight: 500;
  116. color: #999999;
  117. float: length($list: 54rpx);
  118. }
  119. .ima {
  120. width: 13rpx;
  121. height: 19rpx;
  122. margin-top: 35rpx;
  123. margin-left: 20rpx;
  124. }
  125. .xian {
  126. width: 618rpx;
  127. height: 1rpx;
  128. background: #DDE1EB;
  129. opacity: 0.2;
  130. margin-left: 20rpx;
  131. margin-top: 30rpx;
  132. }
  133. .last {
  134. display: flex;
  135. //
  136. justify-content: start;
  137. }
  138. .left {
  139. font-size: 28rpx;
  140. font-weight: 500;
  141. color: #999999;
  142. margin-left: 36rpx;
  143. margin-top: 30rpx;
  144. }
  145. .leftT {
  146. font-size: 28rpx;
  147. font-weight: 500;
  148. color: #b98134;
  149. // margin-left: 10rpx;
  150. margin-top: 30rpx;
  151. }
  152. .right {
  153. font-size: 28rpx;
  154. font-weight: 500;
  155. color: #999999;
  156. margin-left: 220rpx;
  157. margin-top: 30rpx;
  158. }
  159. .rightT {
  160. font-size: 28rpx;
  161. font-weight: 500;
  162. color: #ffffff;
  163. margin-top: 30rpx;
  164. }
  165. </style>