建材商城系统20241014
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.

283 lines
5.6 KiB

8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
  1. <template>
  2. <view class="page">
  3. <navbar
  4. title="我的团队"
  5. leftClick
  6. @leftClick="$utils.navigateBack"
  7. bgColor="#DC2828"
  8. color="#fff"
  9. />
  10. <view class="team">
  11. <view class="team-message">
  12. <view class="leftImage">
  13. <image src="" mode=""></image>
  14. </view>
  15. <view class="number-team">
  16. <view class="top-number">
  17. <text style="font-weight: 500;">13845131854</text>
  18. <view class="salesman">一级业务员</view>
  19. </view>
  20. <view class="bottom-number">
  21. <view class="performance">
  22. <view class="team-sum">
  23. 团队总业绩
  24. </view>
  25. <view class="figure">
  26. <text style="margin-left: 30rpx; color: #DC2828; font-weight: 600;"></text><text
  27. class="money">66666</text>
  28. </view>
  29. </view>
  30. <view class="withdraw" @click="toPurse">
  31. <view class="withdraw-button">
  32. 去提现
  33. </view>
  34. </view>
  35. </view>
  36. </view>
  37. </view>
  38. </view>
  39. <view class="user">
  40. <uv-tabs :list="tabs" :activeStyle="{color : '#FD5100', fontWeight : 600}" lineColor="#FD5100"
  41. lineHeight="8rpx" lineWidth="50rpx" @click="clickTabs"></uv-tabs>
  42. </view>
  43. <view class="user-list">
  44. <view class="head" v-for="(item,index) in 20">
  45. <view class="headImage">
  46. <image src="" mode=""></image>
  47. </view>
  48. <view class="info">
  49. <view class="name">
  50. 用户138xxxxxxxx
  51. </view>
  52. <view class="headBtn">
  53. 下单量<text>12</text> | 佣金 <text style="color: darkorange;">120</text>
  54. </view>
  55. <view class="tips">
  56. 已加入平台<text>120</text>
  57. </view>
  58. </view>
  59. </view>
  60. </view>
  61. </view>
  62. </template>
  63. <script>
  64. import mixinsList from '@/mixins/list.js'
  65. export default {
  66. mixins: [mixinsList],
  67. data() {
  68. return {
  69. state: -1,
  70. mixinsListApi: 'getTeamList',
  71. tabs: [
  72. {
  73. name: '直销用户'
  74. },
  75. {
  76. name: '间推用户'
  77. },
  78. ],
  79. };
  80. },
  81. methods: {
  82. //点击tab栏
  83. clickTabs(index) {
  84. if (index == 0) {
  85. this.state = -1;
  86. } else {
  87. this.state = index - 1;
  88. }
  89. // this.queryParams.pageSize = 10
  90. // this.orderPage()
  91. },
  92. // 跳转到钱包提现
  93. toPurse() {
  94. uni.navigateTo({
  95. url: '/pages_order/mine/purse'
  96. })
  97. },
  98. },
  99. }
  100. </script>
  101. <style scoped lang="scss">
  102. .page {
  103. .team {
  104. height: 250rpx;
  105. background-color: #DC2828;
  106. padding-top: 50rpx;
  107. .team-message {
  108. height: 200rpx;
  109. width: 90%;
  110. background-color: #fff;
  111. margin: 0 30rpx;
  112. position: relative;
  113. border-radius: 10rpx;
  114. .leftImage {
  115. width: 150rpx;
  116. height: 150rpx;
  117. background-image: url(/static/image/center/3.png);
  118. background-size: 100% 100%;
  119. overflow: hidden;
  120. border-radius: 50%;
  121. margin-right: 15rpx;
  122. display: inline-block;
  123. position: absolute;
  124. top: 25rpx;
  125. left: 26rpx;
  126. }
  127. .number-team {
  128. width: 70%;
  129. display: inline-block;
  130. position: absolute;
  131. top: 0rpx;
  132. left: 202rpx;
  133. .top-number {
  134. height: 70rpx;
  135. position: relative;
  136. border-bottom: #DC2828 dotted 1rpx;
  137. display: flex;
  138. align-items: center;
  139. margin: 0 20rpx;
  140. .salesman {
  141. position: absolute;
  142. height: 40rpx;
  143. width: 160rpx;
  144. text-align: center;
  145. background-color: #FF6700;
  146. border-radius: 50rpx;
  147. display: inline;
  148. margin-left: 240rpx;
  149. color: #fff;
  150. font-size: 24rpx;
  151. }
  152. }
  153. .bottom-number {
  154. height: 120rpx;
  155. position: relative;
  156. .performance {
  157. width: 50%;
  158. height: 100%;
  159. display: inline-block;
  160. position: absolute;
  161. top: 0rpx;
  162. .team-sum {
  163. display: inline-block;
  164. width: 180rpx;
  165. background-color: #F99F9F;
  166. border-radius: 50rpx;
  167. text-align: center;
  168. margin: 0rpx 20rpx;
  169. margin-top: 8rpx;
  170. color: #DC2828;
  171. font-size: 26rpx;
  172. }
  173. .figure {
  174. height: 60rpx;
  175. line-height: 60rpx;
  176. display: flex;
  177. // align-items: center;
  178. padding-top: 10rpx;
  179. .money {
  180. font-size: 40rpx;
  181. color: #DC2828;
  182. display: inline-block;
  183. font-weight: 600;
  184. }
  185. }
  186. }
  187. .withdraw {
  188. width: 50%;
  189. height: 100%;
  190. display: inline-block;
  191. position: absolute;
  192. right: 0rpx;
  193. display: flex;
  194. justify-content: center; //横轴居中
  195. align-items: center; //竖轴居中
  196. .withdraw-button {
  197. background-color: #DC2828;
  198. color: #fff;
  199. border-radius: 50rpx;
  200. text-align: center;
  201. height: 62rpx;
  202. width: 200rpx;
  203. line-height: 62rpx;
  204. }
  205. }
  206. }
  207. }
  208. }
  209. }
  210. .user {
  211. height: 120rpx;
  212. background-color: #fff;
  213. display: flex;
  214. align-items: center;
  215. padding-left: 30rpx;
  216. }
  217. .user-list {
  218. margin: 0 20rpx;
  219. .head {
  220. z-index: -1;
  221. display: flex;
  222. background-color: #fff;
  223. padding: 0rpx 20rpx;
  224. align-items: center;
  225. position: relative;
  226. height: 100rpx;
  227. margin-top: 20rpx;
  228. border-radius: 20rpx;
  229. .headImage {
  230. width: 75rpx;
  231. height: 75rpx;
  232. background-image: url(/static/image/center/3.png);
  233. background-size: 100% 100%;
  234. overflow: hidden;
  235. border-radius: 50%;
  236. margin-right: 15rpx;
  237. }
  238. .info {
  239. font-size: 22rpx;
  240. .name {
  241. font-size: 26rpx;
  242. color: #333;
  243. }
  244. .tips {
  245. font-size: 22rpx;
  246. color: #999999;
  247. margin-top: 10rpx;
  248. }
  249. }
  250. .headBtn {
  251. position: absolute;
  252. right: 60rpx;
  253. top: 38rpx;
  254. color: #333;
  255. font-size: 26rpx;
  256. }
  257. }
  258. }
  259. }
  260. </style>