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

311 lines
6.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
1 week 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="userInfo.headImage" mode="aspectFill"></image>
  14. </view>
  15. <view class="number-team">
  16. <view class="top-number">
  17. <text style="font-weight: 500;">{{ userInfo.nickName }}</text>
  18. <!-- <text style="font-weight: 500;">{{ userInfo.phone }}</text> -->
  19. <view class="salesman">{{ levelMap[info.role] }}</view>
  20. </view>
  21. <view class="bottom-number">
  22. <view class="performance">
  23. <view class="team-sum">
  24. 客户总订单
  25. </view>
  26. <view class="figure">
  27. <text style="margin-left: 30rpx; color: #DC2828; font-weight: 600;"></text><text
  28. class="money">{{ info.money }}</text>
  29. </view>
  30. </view>
  31. <view class="withdraw" @click="toPurse">
  32. <view class="withdraw-button">
  33. 去提现
  34. </view>
  35. </view>
  36. </view>
  37. </view>
  38. </view>
  39. </view>
  40. <view class="user">
  41. <uv-tabs :list="tabs" :activeStyle="{color : '#FD5100', fontWeight : 600}" lineColor="#FD5100"
  42. lineHeight="8rpx" lineWidth="50rpx" @click="clickTabs"></uv-tabs>
  43. </view>
  44. <view class="user-list">
  45. <view class="head"
  46. :key="index"
  47. v-for="(item, index) in list">
  48. <view class="headImage">
  49. <image :src="item.headImage" mode="aspectFill"></image>
  50. </view>
  51. <view class="info">
  52. <view class="name">
  53. {{ item.nickName }}{{ item.phone ? item.phone.replace(/(\d{3})\d{4}(\d{4})/, '$1****$2') : '' }}
  54. </view>
  55. <view class="headBtn">
  56. 下单量<text>{{item.orderNum}}</text> | 积分 <text style="color: darkorange;">{{item.commission}}</text>
  57. </view>
  58. <view class="tips">
  59. 加入<text>{{ $dayjs().diff($dayjs(item.createTime), 'day') }}</text>
  60. </view>
  61. </view>
  62. </view>
  63. </view>
  64. <quick-order-entry
  65. ref="quickOrderEntry"
  66. />
  67. </view>
  68. </template>
  69. <script>
  70. import mixinsList from '@/mixins/list.js'
  71. export default {
  72. mixins: [mixinsList],
  73. data() {
  74. return {
  75. state: -1,
  76. mixinsListApi: 'getTeamList',
  77. tabs: [
  78. {
  79. name: '友情分享'
  80. },
  81. {
  82. name: '立体分享'
  83. },
  84. ],
  85. levelMap : [
  86. '区域分享',
  87. '',
  88. ],
  89. info : {},
  90. };
  91. },
  92. onLoad() {
  93. this.queryParams.state = 0;
  94. this.$store.commit('getUserInfo');
  95. this.getTeamInfo();
  96. },
  97. methods: {
  98. //点击tab栏
  99. clickTabs({index}) {
  100. this.queryParams.state = index;
  101. this.getData()
  102. },
  103. // 跳转到钱包提现
  104. toPurse() {
  105. uni.navigateTo({
  106. url: '/pages_order/mine/purse'
  107. })
  108. },
  109. // 获取团队信息
  110. getTeamInfo() {
  111. this.$api('getTeamHeader', res => {
  112. if (res.code == 200) {
  113. this.info = res.result;
  114. }
  115. })
  116. },
  117. },
  118. }
  119. </script>
  120. <style scoped lang="scss">
  121. .page {
  122. .team {
  123. height: 250rpx;
  124. background-color: #DC2828;
  125. padding-top: 50rpx;
  126. .team-message {
  127. height: 200rpx;
  128. width: 90%;
  129. background-color: #fff;
  130. margin: 0 30rpx;
  131. position: relative;
  132. border-radius: 10rpx;
  133. .leftImage {
  134. width: 150rpx;
  135. height: 150rpx;
  136. background-image: url(/static/image/center/3.png);
  137. background-size: 100% 100%;
  138. overflow: hidden;
  139. border-radius: 50%;
  140. margin-right: 15rpx;
  141. display: inline-block;
  142. position: absolute;
  143. top: 25rpx;
  144. left: 26rpx;
  145. image{
  146. width: 100%;
  147. height: 100%;
  148. }
  149. }
  150. .number-team {
  151. width: 70%;
  152. display: inline-block;
  153. position: absolute;
  154. top: 0rpx;
  155. left: 202rpx;
  156. .top-number {
  157. height: 70rpx;
  158. position: relative;
  159. border-bottom: #DC2828 dotted 1rpx;
  160. display: flex;
  161. align-items: center;
  162. margin: 0 20rpx;
  163. .salesman {
  164. position: absolute;
  165. height: 40rpx;
  166. width: 160rpx;
  167. text-align: center;
  168. background-color: #FF6700;
  169. border-radius: 50rpx;
  170. display: inline;
  171. margin-left: 240rpx;
  172. color: #fff;
  173. font-size: 24rpx;
  174. }
  175. }
  176. .bottom-number {
  177. height: 120rpx;
  178. position: relative;
  179. .performance {
  180. width: 50%;
  181. height: 100%;
  182. display: inline-block;
  183. position: absolute;
  184. top: 0rpx;
  185. .team-sum {
  186. display: inline-block;
  187. width: 180rpx;
  188. background-color: #F99F9F;
  189. border-radius: 50rpx;
  190. text-align: center;
  191. margin: 0rpx 20rpx;
  192. margin-top: 8rpx;
  193. color: #DC2828;
  194. font-size: 26rpx;
  195. }
  196. .figure {
  197. height: 60rpx;
  198. line-height: 60rpx;
  199. display: flex;
  200. // align-items: center;
  201. padding-top: 10rpx;
  202. .money {
  203. font-size: 40rpx;
  204. color: #DC2828;
  205. display: inline-block;
  206. font-weight: 600;
  207. }
  208. }
  209. }
  210. .withdraw {
  211. width: 50%;
  212. height: 100%;
  213. display: inline-block;
  214. position: absolute;
  215. right: 0rpx;
  216. display: flex;
  217. justify-content: center; //横轴居中
  218. align-items: center; //竖轴居中
  219. .withdraw-button {
  220. background-color: #DC2828;
  221. color: #fff;
  222. border-radius: 50rpx;
  223. text-align: center;
  224. height: 62rpx;
  225. width: 200rpx;
  226. line-height: 62rpx;
  227. }
  228. }
  229. }
  230. }
  231. }
  232. }
  233. .user {
  234. height: 120rpx;
  235. background-color: #fff;
  236. display: flex;
  237. align-items: center;
  238. padding-left: 30rpx;
  239. }
  240. .user-list {
  241. margin: 0 20rpx;
  242. .head {
  243. z-index: -1;
  244. display: flex;
  245. background-color: #fff;
  246. padding: 0rpx 20rpx;
  247. align-items: center;
  248. position: relative;
  249. height: 100rpx;
  250. margin-top: 20rpx;
  251. border-radius: 20rpx;
  252. .headImage {
  253. width: 75rpx;
  254. height: 75rpx;
  255. background-image: url(/static/image/center/3.png);
  256. background-size: 100% 100%;
  257. overflow: hidden;
  258. border-radius: 50%;
  259. margin-right: 15rpx;
  260. image{
  261. width: 100%;
  262. height: 100%;
  263. }
  264. }
  265. .info {
  266. font-size: 22rpx;
  267. .name {
  268. font-size: 26rpx;
  269. color: #333;
  270. }
  271. .tips {
  272. font-size: 22rpx;
  273. color: #999999;
  274. margin-top: 10rpx;
  275. }
  276. }
  277. .headBtn {
  278. position: absolute;
  279. right: 60rpx;
  280. top: 38rpx;
  281. color: #333;
  282. font-size: 26rpx;
  283. }
  284. }
  285. }
  286. }
  287. </style>