敢为人鲜小程序前端代码仓库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

269 lines
5.1 KiB

4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
  1. <!-- 合伙人页面 -->
  2. <template>
  3. <view class="partner">
  4. <!-- 导航栏 -->
  5. <navbar title="合伙人" leftClick @leftClick="$utils.navigateBack" bgColor="#E3441A" color="#fff" />
  6. <!-- 合伙人信息 -->
  7. <view class="partner-info-bg">
  8. <view class="partner-info">
  9. <view class="profile-photo">
  10. <image src="@/pages_order/static/card/profilePhoto.png" mode="widthFix" class="pro-img"></image>
  11. </view>
  12. <view class="performance-information">
  13. <view class="user-info-base">
  14. <view class="username">18200000000</view>
  15. <view class="user-tag">合伙人</view>
  16. </view>
  17. <view class="live-performance">
  18. <view class="live-performance-money">
  19. <view class="live-tag">
  20. 直推及间推业绩
  21. </view>
  22. <view class="money">
  23. <text class="unit"></text>666
  24. </view>
  25. </view>
  26. <view class="withdraw">
  27. <view class="btn">
  28. 去提现
  29. </view>
  30. </view>
  31. </view>
  32. </view>
  33. </view>
  34. </view>
  35. <view class="tabs">
  36. <uv-tabs :activeStyle="{ color : '#DC2828' }" lineColor="#DC2828" :list="tabList" @click="click"></uv-tabs>
  37. </view>
  38. <!-- 佣金列表 -->
  39. <view class="brokerage-list">
  40. <view v-for="item in 10" :key="item" class="brokerage-item">
  41. <view class="brokerage-user">
  42. <image src="@/pages_order/static/card/profilePhoto.png" mode="widthFix" class="pro-img"></image>
  43. <view class="name-time">
  44. <view class="name">
  45. 用户138xxxxxxxx
  46. </view>
  47. <view class="time">
  48. 已加入平台120天
  49. </view>
  50. </view>
  51. </view>
  52. <view class="brokerage-money">
  53. <view class="order-money">
  54. 下单量: <text>666</text>
  55. </view>
  56. <text>|</text>
  57. <view class="money">
  58. 佣金:<text>666</text>
  59. </view>
  60. </view>
  61. </view>
  62. </view>
  63. </view>
  64. </template>
  65. <script>
  66. export default {
  67. name: "Partner",
  68. data() {
  69. return {
  70. tabList: [{
  71. name: '直推用户'
  72. },
  73. {
  74. name: '间推用户'
  75. }
  76. ]
  77. }
  78. }
  79. }
  80. </script>
  81. <style lang="scss" scoped>
  82. .partner {
  83. // 合伙人信息
  84. .partner-info-bg {
  85. background: $uni-color;
  86. padding: 60rpx 0rpx;
  87. .partner-info {
  88. display: flex;
  89. align-items: center;
  90. background: white;
  91. border-radius: 20rpx;
  92. box-sizing: border-box;
  93. padding: 20rpx;
  94. width: calc(100% - 40rpx);
  95. margin: 0rpx auto;
  96. .profile-photo {
  97. width: 25%;
  98. .pro-img {
  99. width: 100%;
  100. aspect-ratio: 1, 1;
  101. }
  102. }
  103. .performance-information {
  104. width: 75%;
  105. padding: 0rpx 20rpx;
  106. box-sizing: border-box;
  107. .user-info-base {
  108. display: flex;
  109. flex-wrap: wrap;
  110. align-items: center;
  111. border-bottom: 2px dashed $uni-color;
  112. padding: 20rpx 0rpx;
  113. .username {
  114. font-size: 36rpx;
  115. }
  116. .user-tag {
  117. background: black;
  118. color: white;
  119. margin-left: 20rpx;
  120. border-radius: 20rpx;
  121. padding: 3rpx 10rpx;
  122. font-size: 28rpx;
  123. }
  124. }
  125. .live-performance {
  126. display: flex;
  127. flex-wrap: wrap;
  128. padding: 20rpx 0rpx;
  129. box-sizing: border-box;
  130. .live-performance-money {
  131. width: 50%;
  132. .live-tag {
  133. display: flex;
  134. align-items: center;
  135. justify-content: center;
  136. background: #F99F9F;
  137. color: #DC2828;
  138. border-radius: 40rpx;
  139. font-weight: bold;
  140. font-size: 28rpx;
  141. padding: 10rpx 0rpx;
  142. }
  143. .money {
  144. font-size: 45rpx;
  145. color: $uni-color;
  146. font-weight: bold;
  147. .unit {
  148. font-size: 32rpx;
  149. }
  150. }
  151. }
  152. .withdraw {
  153. display: flex;
  154. flex-direction: column;
  155. justify-content: center;
  156. align-items: flex-end;
  157. width: 50%;
  158. .btn {
  159. width: 90%;
  160. display: flex;
  161. align-items: center;
  162. justify-content: center;
  163. background: #DC2828;
  164. color: white;
  165. border-radius: 40rpx;
  166. padding: 20rpx 0rpx;
  167. font-weight: bold;
  168. font-size: 32rpx;
  169. }
  170. }
  171. }
  172. }
  173. }
  174. }
  175. .tabs {
  176. background: white;
  177. }
  178. // 佣金列表
  179. .brokerage-list {
  180. padding: 0rpx 20rpx;
  181. .brokerage-item {
  182. display: flex;
  183. align-items: center;
  184. flex-wrap: wrap;
  185. background: white;
  186. margin: 20rpx 0rpx;
  187. border-radius: 20rpx;
  188. padding: 20rpx;
  189. box-sizing: border-box;
  190. .brokerage-user {
  191. width: 50%;
  192. display: flex;
  193. align-items: center;
  194. flex-wrap: wrap;
  195. .pro-img {
  196. width: 100rpx;
  197. height: 100rpx;
  198. }
  199. .name-time {
  200. width: calc(100% - 100rpx);
  201. padding: 0rpx 20rpx;
  202. box-sizing: border-box;
  203. .name {
  204. font-size: 32rpx;
  205. white-space: nowrap;
  206. overflow: hidden;
  207. text-overflow: ellipsis;
  208. }
  209. .time {
  210. color: #999999;
  211. font-size: 26rpx;
  212. }
  213. }
  214. }
  215. .brokerage-money {
  216. width: 50%;
  217. display: flex;
  218. flex-wrap: wrap;
  219. justify-content: space-between;
  220. .order-money {
  221. text {
  222. margin-left: 10rpx;
  223. }
  224. }
  225. .money {
  226. text {
  227. color: #FEB814;
  228. margin-left: 10rpx;
  229. }
  230. }
  231. }
  232. }
  233. }
  234. }
  235. </style>