contribute.vue 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222
  1. <template>
  2. <view class="content">
  3. <view class="content-money">
  4. <view class="status_bar"><!-- 这里是状态栏 --></view>
  5. <view class="body-title">
  6. <view class="goback-box" @click="toBack">
  7. </view>
  8. <view class="header">贡献值</view>
  9. </view>
  10. <view class="content-bg">
  11. <image src="../../users/static/tc.png" mode=""></image>
  12. </view>
  13. <view class="money-box">
  14. <view class="money">{{ 34 || 0 }}</view>
  15. <view class="col">当前余额</view>
  16. </view>
  17. </view>
  18. <!-- 列表 -->
  19. <view class="list" v-for="item in 4">
  20. <view class="le">
  21. <view class="title">购买商品赠送</view>
  22. <view class="time">2023.12.01</view>
  23. </view>
  24. <view class="rig">
  25. <view class="sumb">+10</view>
  26. </view>
  27. </view>
  28. </view>
  29. </template>
  30. <script>
  31. import {speed} from '@/api/user.js'
  32. export default {
  33. data() {
  34. return {};
  35. },
  36. onLoad() {
  37. this.speed()
  38. },
  39. onShow() {},
  40. methods: {
  41. async speed() {
  42. const data = await speed()
  43. console.log('123', data);
  44. }
  45. }
  46. };
  47. </script>
  48. <style lang="scss">
  49. page {
  50. background: #f1f1f1;
  51. height: 100%;
  52. }
  53. .status_bar {
  54. height: var(--status-bar-height);
  55. width: 100%;
  56. }
  57. .content-money {
  58. position: relative;
  59. height: 480rpx;
  60. .content-bg {
  61. position: absolute;
  62. top: 0;
  63. left: 0;
  64. right: 0;
  65. width: 750rpx;
  66. height: 480rpx;
  67. image {
  68. width: 100%;
  69. height: 100%;
  70. }
  71. }
  72. .body-title {
  73. height: 80rpx;
  74. text-align: center;
  75. font-size: 35rpx;
  76. position: relative;
  77. .header {
  78. position: absolute;
  79. left: 0;
  80. top: 0;
  81. width: 100%;
  82. font-size: 36rpx;
  83. font-family: PingFang SC;
  84. font-weight: bold;
  85. color: #fff;
  86. height: 80rpx;
  87. font-size: 36rpx;
  88. font-weight: 700;
  89. z-index: 9;
  90. display: flex;
  91. justify-content: center;
  92. align-items: center;
  93. }
  94. .goback-box {
  95. position: absolute;
  96. left: 18rpx;
  97. top: 0;
  98. height: 80rpx;
  99. display: flex;
  100. align-items: center;
  101. }
  102. .goback {
  103. z-index: 100;
  104. width: 34rpx;
  105. height: 34rpx;
  106. }
  107. }
  108. }
  109. .info-box {
  110. width: 670rpx;
  111. height: 186rpx;
  112. background: #ffffff;
  113. box-shadow: 0px 0px 20rpx 0px rgba(50, 50, 52, 0.06);
  114. border-radius: 20rpx;
  115. margin: -100rpx auto 0;
  116. position: relative;
  117. z-index: 2;
  118. .info-item {
  119. padding-top: 50rpx;
  120. width: 50%;
  121. display: flex;
  122. flex-direction: column;
  123. align-items: center;
  124. line-height: 1;
  125. .info-font {
  126. font-size: 30rpx;
  127. font-weight: bold;
  128. color: #999999;
  129. }
  130. .info-num {
  131. margin-top: 30rpx;
  132. font-size: 30rpx;
  133. font-weight: bold;
  134. color: #181818;
  135. }
  136. }
  137. .shu {
  138. width: 2rpx;
  139. height: 74rpx;
  140. background: #dcdfe6;
  141. margin-top: 55rpx;
  142. }
  143. }
  144. .money-box {
  145. position: relative;
  146. z-index: 2;
  147. /* #ifdef H5 */
  148. padding-top: 90rpx;
  149. /* #endif */
  150. color: #fff;
  151. text-align: center;
  152. /* #ifdef APP-PLUS */
  153. height: 200rpx;
  154. display: flex;
  155. flex-direction: column;
  156. justify-content: center;
  157. /* #endif */
  158. /* #ifdef MP-WEIXIN */
  159. padding-top: 40rpx;
  160. /* #endif */
  161. .money {
  162. font-size: 72rpx;
  163. font-weight: bold;
  164. color: #fff;
  165. }
  166. .text {
  167. font-size: 30rpx;
  168. }
  169. }
  170. .list {
  171. display: flex;
  172. justify-content: space-between;
  173. width: 750rpx;
  174. height: 130rpx;
  175. background-color: #fff;
  176. .le {
  177. padding-left: 50rpx;
  178. .title {
  179. font-size: 30rpx;
  180. font-weight: 500;
  181. color: #666666;
  182. padding-top: 23rpx;
  183. }
  184. .time {
  185. font-size: 26rpx;
  186. font-weight: 500;
  187. color: #AEAEAE;
  188. padding-top: 13rpx;
  189. }
  190. }
  191. .rig {
  192. padding-right: 47rpx;
  193. padding-top: 43rpx;
  194. .sumb {
  195. font-size: 36rpx;
  196. font-weight: bold;
  197. color: #FD3B39;
  198. }
  199. }
  200. }
  201. </style>