invite.vue 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  1. <template>
  2. <view class="box">
  3. <view class="header">
  4. <image src="../../static/img/btn_act@2x.png" mode="" class="guizeBtn"></image>
  5. </view>
  6. <!-- 统计 -->
  7. <view class="sumBg">
  8. <view class="viewBg" @click="gonavigateTo('extract')">
  9. <view class="money" style="color: #FF4F00;">¥0</view>
  10. <view class="moneyTitle">累计佣金
  11. <image src="../../static/img/icon_arrow@2x.png" mode="" style="width: 18rpx; height: 18rpx;">
  12. </image>
  13. </view>
  14. </view>
  15. <view class="line"></view>
  16. <view class="viewBg" @click="gonavigateTo('extractHistory')">
  17. <view class="money">¥0</view>
  18. <view class="moneyTitle">累计提现
  19. <image src="../../static/img/icon_arrow@2x.png" mode="" style="width: 18rpx; height: 18rpx;">
  20. </image>
  21. </view>
  22. </view>
  23. <view class="line"></view>
  24. <view class="viewBg" @click="gonavigateTo('')">
  25. <view class="money">¥0</view>
  26. <view class="moneyTitle">邀请人数
  27. <image src="../../static/img/icon_arrow@2x.png" mode="" style="width: 18rpx; height: 18rpx;">
  28. </image>
  29. </view>
  30. </view>
  31. </view>
  32. <!-- 明细 -->
  33. <view class="mingxiBg" v-if="arr.length > 0">
  34. <view class="mingxi">
  35. <view v-for="(item,index) in arr" :key="index" v-if="index<10">
  36. <view class="itemBg">
  37. <image src="../../static/img/homeBtn1.png" mode="" style="width: 72rpx; height: 72rpx;"></image>
  38. <view class="nickName">昵称{{index}}</view>
  39. <view class="time">2022.02.12</view>
  40. <view class="jine">+18.09</view>
  41. </view>
  42. </view>
  43. </view>
  44. <!-- 查看更多 -->
  45. <view class="moreView" v-if="arr.length > 10">
  46. <view style="color: #3F90F7; font-size: 30rpx;">查看更多</view>
  47. <image src="../../static/img/icon_arrow_blue.png" mode="" style="width: 24rpx; height: 24rpx;"></image>
  48. </view>
  49. </view>
  50. <view class="mingxiBg" v-else>
  51. <image src="../../static/img/bg_empty@2x.png" mode="" style="width: 100%;"></image>
  52. </view>
  53. <view style="height: 180rpx;"></view>
  54. <view class="bottomView">
  55. <image src="../../static/img/miandui.png" mode="" class="bottomImg"></image>
  56. <image src="../../static/img/yaoqing.png" mode="" class="bottomImg"></image>
  57. </view>
  58. </view>
  59. </template>
  60. <script>
  61. export default {
  62. data() {
  63. return {
  64. arr: [1,2,3,4,5],
  65. }
  66. },
  67. methods: {
  68. gonavigateTo(url) {
  69. uni.navigateTo({
  70. url: url
  71. })
  72. }
  73. }
  74. }
  75. </script>
  76. <style scoped>
  77. .box {
  78. min-height: 100vh;
  79. background: #F4F5F7;
  80. }
  81. .header {
  82. width: 100vw;
  83. height: 750rpx;
  84. background-color: #DDDDDD;
  85. /* background-image: url(''); */
  86. background-size: 100% 100%;
  87. }
  88. .guizeBtn {
  89. float: right;
  90. margin-top: 48rpx;
  91. width: 169rpx;
  92. height: 56rpx;
  93. }
  94. .sumBg {
  95. display: flex;
  96. justify-content: space-between;
  97. align-items: center;
  98. margin: 20rpx 24rpx;
  99. padding: 36rpx 50rpx;
  100. background-color: #FFFFFF;
  101. border-radius: 10rpx;
  102. }
  103. .viewBg {
  104. display: flex;
  105. flex-direction: column;
  106. align-items: center;
  107. background-color: #FFFFFF;
  108. }
  109. .money {
  110. font-size: 38rpx;
  111. color: #000000;
  112. font-weight: bold;
  113. }
  114. .moneyTitle {
  115. font-size: 28rpx;
  116. color: #666666;
  117. }
  118. .line {
  119. width: 1rpx;
  120. height: 73rpx;
  121. background-color: #EEEEEE;
  122. }
  123. .mingxiBg{
  124. margin: 0rpx 24rpx;
  125. background-color: #FFFFFF;
  126. border-radius: 10rpx;
  127. }
  128. .mingxi {
  129. background-image: url(../../static/img/bg_jianban@2x.png);
  130. background-size: 100%;
  131. background-repeat: no-repeat;
  132. padding-top: 89rpx;
  133. }
  134. .itemBg {
  135. height: 98rpx;
  136. margin: 0 20rpx;
  137. display: flex;
  138. justify-content: space-between;
  139. align-items: center;
  140. }
  141. .nickName {
  142. font-size: 30rpx;
  143. color: #3C3C3C;
  144. flex-grow: 1;
  145. margin: 0 15rpx;
  146. }
  147. .time {
  148. font-size: 30rpx;
  149. color: #999999;
  150. margin: 0 15rpx;
  151. }
  152. .jine {
  153. font-size: 32rpx;
  154. color: #FF4F00;
  155. font-weight: bold;
  156. margin: 0 15rpx;
  157. }
  158. .moreView{
  159. height: 92rpx;
  160. display: flex;
  161. justify-content: center;
  162. align-items: center;
  163. }
  164. .bottomView{
  165. width: 100%;
  166. height: 136rpx;
  167. position: fixed;
  168. left: 0;
  169. bottom: 0;
  170. display: flex;
  171. justify-content: space-around;
  172. }
  173. .bottomImg{
  174. height: 136rpx;
  175. }
  176. </style>