star.vue 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228
  1. <template>
  2. <view>
  3. <scroll-view scroll-y="true" class="scroll-content" :enhanced="true" :bounces="false" :show-scrollbar="false" @scroll="pageScroll">
  4. <cu-custom bgColor="bg-bluev-other" :isBack="true">
  5. <block slot="backText" v-if="scrollHeight>20">达人之家</block>
  6. </cu-custom>
  7. <view class="star-header">
  8. <view class="star-slogan">
  9. <view class="slogan-info">
  10. <view class="name">达人之家</view>
  11. <view class="en-name">welcome to join us</view>
  12. <view class="sub-name">入驻达人真实数据</view>
  13. </view>
  14. <view class="slogan-img"><image src="/static/other/star.png" mode="widthFix"></image></view>
  15. </view>
  16. <view class="star-total">
  17. <view class="total-item">
  18. <view class="name">入驻达人</view>
  19. <view class="num">20w+</view>
  20. <view class="desc">本月新增4人</view>
  21. </view>
  22. <view class="total-item">
  23. <view class="name">达人总收益</view>
  24. <view class="num">20w+</view>
  25. <view class="desc">环比增长24.5%</view>
  26. </view>
  27. <view class="total-item">
  28. <view class="name">认证达人</view>
  29. <view class="num">20w+</view>
  30. <view class="desc">官方认证</view>
  31. </view>
  32. </view>
  33. </view>
  34. <view class="star-body">
  35. <view class="star-search">
  36. <view class="icon"><image src="https://blue-data.oss-cn-guangzhou.aliyuncs.com/star/search-icon.png" mode="widthFix"></image></view>
  37. <view class="search-input">
  38. <input type="text" class="input" placeholder="搜一搜达人" />
  39. </view>
  40. <view class="search-btn"><button class="u-button">找人</button></view>
  41. </view>
  42. <view class="task-status">
  43. <view class="platform">
  44. <view class="platform-item active">
  45. <view class="name">全部</view>
  46. <image src="https://blue-data.oss-cn-guangzhou.aliyuncs.com/star/tab-active-badge.png"></image>
  47. </view>
  48. <view class="platform-item">
  49. <view class="name">抖音</view>
  50. <image src="https://blue-data.oss-cn-guangzhou.aliyuncs.com/star/tab-active-badge.png"></image>
  51. </view>
  52. <view class="platform-item">
  53. <view class="name">快手</view>
  54. <image src="https://blue-data.oss-cn-guangzhou.aliyuncs.com/star/tab-active-badge.png"></image>
  55. </view>
  56. <view class="platform-item">
  57. <view class="name">小红书</view>
  58. <image src="https://blue-data.oss-cn-guangzhou.aliyuncs.com/star/tab-active-badge.png"></image>
  59. </view>
  60. <view class="platform-item">
  61. <view class="name">视频号</view>
  62. <image src="https://blue-data.oss-cn-guangzhou.aliyuncs.com/star/tab-active-badge.png"></image>
  63. </view>
  64. </view>
  65. </view>
  66. <view class="star-list">
  67. <view class="star-item" v-for="(item,index) in 10" :key="index">
  68. <view class="avatar"><image src="/static/rank/avatar.jpeg" mode="widthFix"></image></view>
  69. <view class="star-info">
  70. <view class="name">我是庄小周</view>
  71. <view class="level-tag">
  72. <view class="tag-level level-bg-3">
  73. <image src="/static/level/lv3.png"></image>
  74. Lv.3 黄金达人
  75. </view>
  76. <view class="tag-item">美食博主</view>
  77. <view class="tag-item">杭州</view>
  78. </view>
  79. <view class="other">
  80. <view class="other-item"><text>粉丝</text>89w</view>
  81. <view class="other-item"><text>总收益</text>89w</view>
  82. <view class="other-item"><text>任务数</text>22</view>
  83. </view>
  84. </view>
  85. <view class="more">
  86. <text class="cuIcon-right"></text>
  87. </view>
  88. </view>
  89. </view>
  90. </view>
  91. </scroll-view>
  92. </view>
  93. </template>
  94. <script>
  95. var app;
  96. export default {
  97. data() {
  98. return {
  99. scrollHeight:0
  100. }
  101. },
  102. onLoad() {
  103. app = this;
  104. },
  105. methods: {
  106. pageScroll(event) {
  107. var scrollHeight = event.detail.scrollTop;
  108. app.scrollHeight = scrollHeight;
  109. },
  110. }
  111. }
  112. </script>
  113. <style>
  114. page{
  115. background-color: rgba(245, 245, 245, 1);
  116. }
  117. .star-list .star-item .tag-level{display: flex;align-items: center;font-size: 22rpx;border-radius: 20rpx;padding: 5rpx 10rpx;gap: 5rpx;}
  118. .star-list .star-item .tag-level image{width: 30rpx;height: 30rpx;}
  119. .star-list .star-item .level-tag{
  120. display: flex;
  121. align-items: center;
  122. gap: 20rpx;
  123. margin: 20rpx 0;
  124. }
  125. .star-list .star-item .level-tag .tag-item{
  126. border: 2rpx solid rgba(223, 223, 223, 1);
  127. padding: 5rpx 20rpx;
  128. font-size: 24rpx;
  129. color: rgba(89, 91, 98, 1);
  130. border-radius: 40rpx;
  131. }
  132. .star-list .star-item .star-info .name {
  133. font-size: 32rpx;
  134. color: #000;
  135. font-weight: 800;
  136. }
  137. .star-list .star-item .other{
  138. display: flex;
  139. align-items: center;
  140. gap: 20rpx;
  141. }
  142. .star-list .star-item .other .other-item {
  143. color: rgba(89, 91, 98, 1);
  144. }
  145. .star-list .star-item .other .other-item text {
  146. color: rgba(0, 0, 0, 0.2);
  147. margin-right: 10rpx;
  148. }
  149. .star-list .star-item .more{
  150. margin-left: auto;
  151. margin-right: 0;
  152. }
  153. .star-list .star-item .more text{
  154. font-size: 32rpx;
  155. color: rgba(0, 0, 0, 0.4);
  156. }
  157. .star-list .star-item .avatar image{
  158. width: 128rpx;
  159. height: 128rpx;
  160. border-radius: 100%;
  161. }
  162. .star-list .star-item{
  163. background-color: #fff;
  164. padding: 20rpx;
  165. border-radius: 10rpx;
  166. display: flex;
  167. align-items: center;
  168. gap: 20rpx;
  169. margin-bottom: 20rpx;
  170. }
  171. .star-body{
  172. margin: -40rpx 20rpx 0 20rpx;
  173. position: relative;
  174. z-index: 999;
  175. }
  176. .star-body .star-search .search-btn{margin-left: auto;margin-right: 0;}
  177. .star-body .star-search .u-button{font-size: 24rpx;height: 50rpx;border-radius: 10rpx;line-height: 50rpx;background-color: rgba(33, 34, 38, 1);color: #fff;width: 100%;font-weight: 800;}
  178. .star-body .star-search .u-button::after{border: 0;}
  179. .star-body .star-search .u-button.full{}
  180. .star-body .star-search .icon image{
  181. width: 50rpx;
  182. height: 50rpx;
  183. }
  184. .star-body .star-search .input{font-size: 24rpx;width: 100%;border: 0;height: 100%;box-sizing: none;box-shadow: none;}
  185. .star-body .star-search{
  186. border-radius: 10rpx;
  187. border: 6rpx solid rgba(33, 34, 38, 1);
  188. height: 80rpx;
  189. background-color: #fff;
  190. display: flex;
  191. align-items: center;
  192. padding: 0 10rpx;
  193. gap: 20rpx;
  194. }
  195. .star-header{
  196. background: linear-gradient(0deg, #D5F4FF -10.47%, #87E0FF 100%);
  197. padding: 0 20rpx 60rpx 20rpx;
  198. border-radius: 0 0 20rpx 20rpx;
  199. position: relative;
  200. }
  201. .star-header .star-slogan{
  202. display: flex;
  203. align-items: center;
  204. justify-content: space-between;
  205. height: 280rpx;
  206. }
  207. .star-header .star-total{display: flex;align-items: center;gap: 20rpx;}
  208. .star-header .total-item{flex: 1;background-color: #fff;border-radius: 10rpx;padding: 20rpx;}
  209. .star-header .total-item .name{font-size: 28rpx;color: rgba(89, 91, 98, 1);}
  210. .star-header .total-item .num{font-size: 36rpx;color: #000;font-weight: 800;margin: 20rpx 0;}
  211. .star-header .total-item .desc{font-size: 24rpx;color: rgba(0, 0, 0, .2);}
  212. .star-header .star-slogan .name{font-size: 52rpx;color: #000;font-weight: 800;font-family: "bluevBold";}
  213. .star-header .star-slogan .en-name{text-transform: uppercase;background-color: #212226;color: #fff;font-size: 24rpx;padding: 10rpx 20rpx;margin: 20rpx 0;border-radius: 10rpx;}
  214. .star-header .star-slogan .sub-name{color: rgba(140, 140, 140, 1);font-size: 28rpx;}
  215. .star-header .star-slogan .slogan-img {position: absolute;top: -20rpx;right: 5%;}
  216. .star-header .star-slogan .slogan-img image{width: 320rpx;}
  217. .task-status .platform{display: flex;align-items: center;font-size: 32rpx;color: #666;justify-content: space-around;margin: 20rpx 0;}
  218. .task-status .platform .platform-item{display: flex;align-items: center;position: relative;}
  219. .task-status .platform .platform-item .name{position: relative;z-index: 999;}
  220. .task-status .platform .platform-item image{width: 82rpx;height: 52rpx;position: absolute;right: -20rpx;bottom: 0;z-index: 99;display: none;}
  221. .task-status .platform .platform-item.active image{display: block;}
  222. .task-status .platform .platform-item.active{color: #000;font-weight: 800;font-family: "bluevBold";}
  223. </style>