extension.vue 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. <template>
  2. <view class="extension-wrapper">
  3. <view class="top-wrapper">{{allNum||0.00}}<text> 人</text></view>
  4. <view class="middle">
  5. <view class="middle-left" @click="changeAction">
  6. <view class="middle-num">9</view>
  7. <view class="middle-title" :class="{'action': isAction}">一级推广</view>
  8. </view>
  9. <view class="middle-center">
  10. </view>
  11. <view class="middle-right" @click="changeAction">
  12. <view class="middle-num">55</view>
  13. <view class="middle-title" :class="{'action': !isAction}">二级推广</view>
  14. </view>
  15. </view>
  16. <scroll-view scroll-y="true" @scrolltolower="loadData" class="list-scroll-content">
  17. <view class="list">
  18. <view class="list-item">
  19. <view class="item-left"><image src="../../static/error/missing-face.png" mode=""></image></view>
  20. <view class="item-right">
  21. <view class="item-name">假猪套天下第一</view>
  22. <view class="item-time">2020-12-3 12:30:00</view>
  23. </view>
  24. </view>
  25. </view>
  26. </scroll-view>
  27. </view>
  28. </template>
  29. <script>
  30. import {getExtensionData} from '@/api/user.js'
  31. export default {
  32. data() {
  33. return {
  34. allNum: 0,//总推广人数
  35. isAction: true
  36. }
  37. },
  38. onShow() {
  39. this.getInfo()
  40. },
  41. methods: {
  42. getInfo() {
  43. console.log('hello world')
  44. },
  45. changeAction() {
  46. this.isAction = !this.isAction
  47. },
  48. loadData() {
  49. console.log('ddddd')
  50. }
  51. }
  52. }
  53. </script>
  54. <style lang="scss" scoped>
  55. page {
  56. background-color: #f8f8f8;
  57. height: 100%;
  58. }
  59. .extension-wrapper {
  60. // position: relative;
  61. background-color: #f8f8f8;
  62. height: 100%;
  63. .top-wrapper {
  64. width: 750rpx;
  65. height: 265rpx;
  66. background-image: url(../../static/img/wallertbg.png);
  67. background-size: 100%;
  68. background-position: bottom;
  69. // font-size: ;
  70. color: #FFFFFF;
  71. font-size: 72rpx;
  72. font-family: PingFang SC;
  73. font-weight: bold;
  74. color: #FFFFFF;
  75. line-height: 265rpx;
  76. text-align: center;
  77. text {
  78. font-size: 40rpx;
  79. }
  80. }
  81. .middle {
  82. width: 702rpx;
  83. height: 120rpx;
  84. background: #FFFFFF;
  85. box-shadow: 0px 0px 20px 0px rgba(50, 50, 52, 0.06);
  86. border-radius: 10rpx;
  87. background-color: #fff;
  88. display: flex;
  89. position: relative;
  90. left: 24rpx;
  91. top: -60rpx;
  92. margin-bottom: -40rpx;
  93. .middle-center {
  94. width: 2px;
  95. height: 54rpx;
  96. background: #EEEEEE;
  97. position: absolute;
  98. right: 0;
  99. left: 0;
  100. top: 0;
  101. bottom: 0;
  102. margin: auto;
  103. }
  104. .middle-left, .middle-right {
  105. padding-top: 24rpx;
  106. width: 50%;
  107. height: 120rpx;
  108. text-align: center;
  109. line-height: 1;
  110. // display: flex;
  111. .middle-num {
  112. font-size: 32rpx;
  113. font-family: PingFang SC;
  114. font-weight: bold;
  115. color: #901B21;
  116. padding-bottom: 17rpx;
  117. }
  118. .middle-title {
  119. font-size: 28rpx;
  120. font-family: PingFang SC;
  121. font-weight: 500;
  122. color: #666666;
  123. display: inline-block;
  124. padding-bottom: 15rpx;
  125. }
  126. .action {
  127. border-bottom: 5rpx #901B21 solid;
  128. }
  129. }
  130. }
  131. .list-scroll-content {
  132. height: 100%;
  133. background-color: #fff;
  134. .list {
  135. width: 100%;
  136. // height: 20rpx;
  137. background-color: #fff;
  138. .list-item {
  139. padding: 30rpx 0 19rpx 23rpx;
  140. height: 129rpx;
  141. display: flex;
  142. .item-left {
  143. width: 80rpx;
  144. height: 80rpx;
  145. border-radius: 50%;
  146. background-color: #bfa;
  147. image {
  148. width: 100%;
  149. height: 100%;
  150. }
  151. }
  152. .item-right {
  153. padding-left: 20rpx;
  154. padding-top: 9rpx;
  155. .item-name {
  156. font-size: 30rpx;
  157. line-height: 1;
  158. font-family: PingFangSC;
  159. font-weight: 500;
  160. color: #3F454B;
  161. padding-bottom: 10rpx;
  162. }
  163. .item-time {
  164. font-size: 22rpx;
  165. line-height: 1;
  166. font-family: PingFang SC;
  167. font-weight: 400;
  168. color: #999999;
  169. }
  170. }
  171. }
  172. }
  173. }
  174. }
  175. </style>