jiedian.vue 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379
  1. <template>
  2. <view class="content">
  3. <!-- 头部 -->
  4. <view class="container">
  5. <view class="jiedianbackground">
  6. <image src="../../static/image/jiedian.png" mode=""></image>
  7. </view>
  8. <view class="number-box">
  9. <view class="number">
  10. <text>{{userInfo.A_count + userInfo.B_count + userInfo.C_count}}</text>人
  11. </view>
  12. <view class="renshu">
  13. 我的接点人数
  14. </view>
  15. </view>
  16. </view>
  17. <view class="message">
  18. <view class="yeji">
  19. <view class="yeji-a">
  20. <view class="yeji-top">
  21. A区业绩
  22. </view>
  23. <view class="yeji-buttom">¥{{userInfo.A_achievement}}</view>
  24. </view>
  25. <view class="border"></view>
  26. <view class="yeji-a">
  27. <view class="yeji-top">
  28. B区业绩
  29. </view>
  30. <view class="yeji-buttom">¥{{userInfo.B_achievement}}</view>
  31. </view>
  32. <view class="border"></view>
  33. <view class="yeji-a">
  34. <view class="yeji-top">
  35. C区业绩
  36. </view>
  37. <view class="yeji-buttom">¥{{userInfo.C_achievement}}</view>
  38. </view>
  39. </view>
  40. <view class="relation-box">
  41. <view class="relation">
  42. <view class="headbox">
  43. <view class="head">
  44. <view class="photo">
  45. <image :src=" avatar || '../../static/error/missing-face.png' "></image>
  46. </view>
  47. </view>
  48. <view class="head-title">
  49. <image src="../../static/image/jiedian1.png" mode=""></image>
  50. </view>
  51. </view>
  52. <view class="information">
  53. <view class="name clamp">
  54. {{name}}
  55. </view>
  56. <view class="cell clamp">
  57. {{phone}}
  58. </view>
  59. </view>
  60. </view>
  61. <view class="sanchaji">
  62. <image src="../../static/image/sanchaji.png" mode=""></image>
  63. </view>
  64. <view class="subordinate">
  65. <view class="headbox" >
  66. <view class="head">
  67. <view class="photo">
  68. <image src="../../static/image/photo.jpg" mode=""></image>
  69. </view>
  70. </view>
  71. <view class="head-title">
  72. <image src="../../static/image/jiedian1.png" mode=""></image>
  73. </view>
  74. </view>
  75. <view class="headbox" >
  76. <view class="head">
  77. <view class="photo">
  78. <image src="../../static/image/photo.jpg" mode=""></image>
  79. </view>
  80. </view>
  81. <view class="head-title">
  82. <image src="../../static/image/jiedian1.png" mode=""></image>
  83. </view>
  84. </view>
  85. <view class="headbox" >
  86. <view class="head">
  87. <view class="photo">
  88. <image src="../../static/image/photo.jpg" mode=""></image>
  89. </view>
  90. </view>
  91. <view class="head-title">
  92. <image src="../../static/image/jiedian1.png" mode=""></image>
  93. </view>
  94. </view>
  95. </view>
  96. </view>
  97. </view>
  98. </view>
  99. </template>
  100. <script>
  101. import { getjiedian } from '@/api/user.js'
  102. import { mapState, mapMutations } from 'vuex';
  103. export default {
  104. data() {
  105. return {
  106. a: 1,
  107. b: 2,
  108. c: 3,
  109. people: 255,
  110. listA:'',
  111. listB:'',
  112. listC:'',
  113. name:'',
  114. phone:'',
  115. avatar:'',
  116. id:''
  117. }
  118. },
  119. computed: {
  120. ...mapState('user', ['userInfo', 'orderInfo', 'hasLogin'])
  121. },
  122. onLoad() {
  123. this.name = this.userInfo.nickname;
  124. this.phone = this.userInfo.phone;
  125. this.avatar = this.userInfo.avatar
  126. this.id = this.userInfo.uid
  127. this.loadData()
  128. },
  129. methods: {
  130. loadData(){
  131. const obj = this
  132. getjiedian({},this.id).then(({data}) => {
  133. console.log(data)
  134. })
  135. }
  136. }
  137. }
  138. </script>
  139. <style lang="scss">
  140. page {
  141. padding: 0;
  142. margin: 0;
  143. height: 100%;
  144. background-color: #FFFFFF;
  145. }
  146. .container {
  147. width: 750rpx;
  148. height: 400rpx;
  149. position: relative;
  150. .jiedianbackground {
  151. position: absolute;
  152. width: 750rpx;
  153. height: 400rpx;
  154. image {
  155. width: 100%;
  156. height: 100%;
  157. }
  158. }
  159. .number-box {
  160. width: 750rpx;
  161. height: 400rpx;
  162. position: absolute;
  163. display: flex;
  164. justify-content: center;
  165. flex-direction: column;
  166. align-items: center;
  167. .number {
  168. font-size: 30rpx;
  169. font-family: PingFang SC;
  170. font-weight: 500;
  171. color: #3F7C1F;
  172. text {
  173. font-size: 72rpx;
  174. font-family: PingFang SC;
  175. font-weight: bold;
  176. color: #3F7C1F;
  177. line-height: 86rpx;
  178. }
  179. }
  180. .renshu {
  181. font-size: 30rpx;
  182. font-family: PingFang SC;
  183. font-weight: 500;
  184. color: #3F7C1F;
  185. }
  186. }
  187. }
  188. .message {
  189. padding: 0 30rpx;
  190. .relation-box {
  191. margin-top: 100rpx;
  192. display: flex;
  193. flex-direction: column;
  194. align-items: center;
  195. .relation {
  196. position: relative;
  197. display: flex;
  198. align-items: center;
  199. .headbox {
  200. position: absolute;
  201. width: 154rpx;
  202. height: 154rpx;
  203. .head {
  204. width: 154rpx;
  205. height: 154rpx;
  206. background: #EF9E20;
  207. box-shadow: 5rpx 0rpx 5rpx 0rpx rgba(110, 171, 78, 0.26);
  208. border-radius: 50%;
  209. overflow: hidden;
  210. .photo {
  211. width: 154rpx;
  212. height: 154rpx;
  213. image {
  214. width: 100%;
  215. height: 100%;
  216. }
  217. }
  218. }
  219. .head-title {
  220. margin: -30rpx 30rpx 0 30rpx;
  221. width: 94rpx;
  222. height: 32rpx;
  223. image {
  224. width: 100%;
  225. height: 100%;
  226. }
  227. }
  228. }
  229. .information {
  230. margin-left: 77rpx;
  231. display: flex;
  232. padding: 20rpx 10rpx;
  233. flex-direction: column;
  234. width: 297rpx;
  235. height: 137rpx;
  236. background: #FFFFFF;
  237. border: 4rpx solid #6EAB4E;
  238. border-radius: 10rpx;
  239. .name {
  240. text-align: left;
  241. margin-left: 70rpx;
  242. font-size: 32rpx;
  243. font-family: PingFang SC;
  244. font-weight: bold;
  245. color: #3F7C1F;
  246. }
  247. .cell {
  248. text-align: left;
  249. margin-left: 70rpx;
  250. font-size: 26rpx;
  251. font-family: PingFang SC;
  252. font-weight: 500;
  253. color: #ABD56F;
  254. }
  255. }
  256. }
  257. .sanchaji {
  258. margin: 30rpx 0;
  259. width: 530rpx;
  260. height: 91rpx;
  261. image {
  262. width: 100%;
  263. height: 100%;
  264. }
  265. }
  266. .subordinate {
  267. width: 750rpx;
  268. display: flex;
  269. justify-content: space-around;
  270. .headbox {
  271. width: 154rpx;
  272. height: 154rpx;
  273. .head {
  274. width: 154rpx;
  275. height: 154rpx;
  276. background: #EF9E20;
  277. box-shadow: 5rpx 0rpx 5rpx 0rpx rgba(110, 171, 78, 0.26);
  278. border-radius: 50%;
  279. overflow: hidden;
  280. .photo {
  281. width: 154rpx;
  282. height: 154rpx;
  283. image {
  284. width: 100%;
  285. height: 100%;
  286. }
  287. }
  288. }
  289. .head-title {
  290. margin: -30rpx 30rpx 0 30rpx;
  291. width: 94rpx;
  292. height: 32rpx;
  293. image {
  294. width: 100%;
  295. height: 100%;
  296. }
  297. }
  298. }
  299. }
  300. }
  301. .yeji {
  302. position: relative;
  303. margin-top: -72rpx;
  304. width: 690rpx;
  305. height: 143rpx;
  306. background: #FFFFFF;
  307. box-shadow: 0rpx 0rpx 20rpx 0rpx rgba(50, 50, 52, 0.06);
  308. border-radius: 10rpx;
  309. display: flex;
  310. justify-content: space-around;
  311. align-items: center;
  312. .yeji-a {
  313. display: flex;
  314. flex-direction: column;
  315. justify-content: space-around;
  316. align-items: center;
  317. .yeji-top {
  318. font-size: 24rpx;
  319. font-family: PingFang SC;
  320. font-weight: bold;
  321. color: #333333;
  322. line-height: 35px;
  323. }
  324. .yeji-buttom {
  325. font-size: 34rpx;
  326. font-family: PingFang SC;
  327. font-weight: bold;
  328. color: #333333;
  329. line-height: 35px;
  330. }
  331. }
  332. .border {
  333. width: 1rpx;
  334. height: 51rpx;
  335. background: #DDDDDD;
  336. }
  337. }
  338. }
  339. </style>