index.vue 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240
  1. <template>
  2. <div class="mine">
  3. <div class="mine-bg">
  4. <div class="user_icon">
  5. <van-image
  6. lazy-load
  7. src="https://img01.yzcdn.cn/vant/cat.jpeg"
  8. />
  9. <div class="user_name">赵铭</div>
  10. </div>
  11. </div>
  12. <order-type-list :obj-cell="ObjCell">
  13. <template #content>
  14. <div class="cell_content">
  15. <van-badge
  16. :content="item.content"
  17. max="99"
  18. v-for="item,index in orderLinks"
  19. :key="index"
  20. @click="$ApiRouter(`${item.link}`)"
  21. >
  22. <div class="child">
  23. <img src="" alt="" />
  24. <div>{{ item.name }}</div>
  25. </div>
  26. </van-badge>
  27. </div>
  28. </template>
  29. </order-type-list>
  30. <order-type-list :obj-cell="ObjCellLink" />
  31. <div class="logo-bottom">
  32. <img src="" alt="">
  33. <div>由采美365网提供技术支持</div>
  34. </div>
  35. </div>
  36. </template>
  37. <script>
  38. export default {
  39. data () {
  40. return {
  41. ObjCell: {
  42. list: [
  43. {
  44. isLink: true,
  45. title: '我的订单',
  46. value: '全部订单',
  47. to: '/order-list'
  48. }
  49. ],
  50. isInset: true,
  51. top: '24.3vw'
  52. },
  53. ObjCellLink: {
  54. list: [
  55. {
  56. isLink: true,
  57. title: '机构意向订单报备',
  58. value: '',
  59. to: '/ins-intention-report',
  60. icon: 'location-o'
  61. },
  62. {
  63. isLink: true,
  64. title: '我的团队',
  65. value: '',
  66. to: '/my-team',
  67. icon: 'location-o'
  68. },
  69. {
  70. isLink: true,
  71. title: '订单报备佣金',
  72. value: '',
  73. to: '/order-report',
  74. icon: 'location-o'
  75. },
  76. {
  77. isLink: true,
  78. title: '订单销售佣金',
  79. value: '',
  80. to: '/order-sales',
  81. icon: 'location-o'
  82. },
  83. {
  84. isLink: true,
  85. title: '我的名片',
  86. value: '',
  87. to: '/mine-card',
  88. icon: 'location-o'
  89. },
  90. {
  91. isLink: true,
  92. title: '商品资料',
  93. value: '',
  94. to: '/goods-information',
  95. icon: 'location-o'
  96. },
  97. {
  98. isLink: true,
  99. title: '账户设置',
  100. value: '',
  101. to: '/account-settings',
  102. icon: 'location-o'
  103. }
  104. ],
  105. isInset: true,
  106. top: '62.7vw'
  107. },
  108. orderLinks: [
  109. {
  110. icon: '',
  111. link: '',
  112. content: 200,
  113. name: '待确认'
  114. },
  115. {
  116. icon: '',
  117. link: '',
  118. content: 200,
  119. name: '待付款'
  120. },
  121. {
  122. icon: '',
  123. link: '',
  124. content: 200,
  125. name: '待发货'
  126. },
  127. {
  128. icon: '',
  129. link: '',
  130. content: 200,
  131. name: '已发货'
  132. },
  133. {
  134. icon: '',
  135. link: '',
  136. content: 200,
  137. name: '退货/款'
  138. }
  139. ]
  140. }
  141. }
  142. }
  143. </script>
  144. <style lang="scss" scoped>
  145. .mine {
  146. width: 100%;
  147. height: 100vh;
  148. background: #f5f5f5;
  149. position: relative;
  150. .mine-bg {
  151. height: 29.3vw;
  152. background: #ff5b00;
  153. padding: 5.3vw 4.3vw;
  154. .user_icon {
  155. height: 15.7vw;
  156. display: flex;
  157. align-items: center;
  158. ::v-deep .van-image__img {
  159. width: 15.7vw;
  160. height: 15.7vw;
  161. margin-right: 5.3vw;
  162. border-radius: 50%;
  163. }
  164. .user_name {
  165. font-size: 4.3vw;
  166. color: #fff;
  167. }
  168. }
  169. }
  170. .cell_content {
  171. display: flex;
  172. align-items: center;
  173. justify-content: space-around;
  174. height: 23.1vw;
  175. .child {
  176. width: 12vw;
  177. height: 15vw;
  178. display: flex;
  179. flex-direction: column;
  180. justify-content: space-between;
  181. align-items: center;
  182. white-space: nowrap;
  183. img {
  184. width: 8.5vw;
  185. height: 8.5vw;
  186. object-fit: contain;
  187. }
  188. div {
  189. color: #666666;
  190. font-size: 3.5vw;
  191. }
  192. }
  193. }
  194. .logo-bottom {
  195. display: flex;
  196. justify-content: center;
  197. align-items: center;
  198. flex-direction: column;
  199. width: 37.7vw;
  200. margin: 0 auto;
  201. position: absolute;
  202. bottom: 15vw;
  203. left: 50%;
  204. height: 14vw;
  205. transform: translateX(-50%);
  206. white-space: nowrap;
  207. img {
  208. width: 9.3vw;
  209. height: 9.1vw;
  210. position: relative;
  211. &::before {
  212. content: '';
  213. position: absolute;
  214. top: 50%;
  215. width: 12.8vw;
  216. transform: translateY(-50%);
  217. height: 2px;
  218. background: #666666;
  219. left: -14.8vw;
  220. }
  221. &::after {
  222. content: '';
  223. position: absolute;
  224. top: 50%;
  225. width: 12.8vw;
  226. transform: translateY(-50%);
  227. right: -14.8vw;
  228. height: 2px;
  229. background: #666666;
  230. }
  231. }
  232. div {
  233. color: #999999;
  234. font-size: 3.2vw;
  235. }
  236. }
  237. }
  238. </style>