铝交易,微信公众号
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.

169 lines
4.0 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
  1. <template>
  2. <view class="page">
  3. <navbar title="个人中心"/>
  4. <view class="frame">
  5. <!-- 头部 -->
  6. <view class="head">
  7. <view class="headImage">
  8. <image src="" mode=""></image>
  9. </view>
  10. <view class="info">
  11. <view class="name">
  12. 倾心.
  13. </view>
  14. <!-- <view class="vip">
  15. VIP1
  16. </view> -->
  17. <view class="tips">
  18. 手机号13812345678
  19. </view>
  20. </view>
  21. <view class="headBtn" @click="headBtn">
  22. 角色切换
  23. </view>
  24. <view class="setting">
  25. <uv-icon name="setting" size="40rpx"></uv-icon>
  26. </view>
  27. </view>
  28. <!-- 供应商 -->
  29. <view class="supplier" v-if="userShop">
  30. <centerList :list="supplierList" @open="openCustomerServicePopup"></centerList>
  31. </view>
  32. <!-- 采购商 -->
  33. <view class="purchaser" v-else>
  34. <centerList :list="supplierList" @open="openCustomerServicePopup"></centerList>
  35. </view>
  36. </view>
  37. <!-- 联系客服弹框 -->
  38. <customerServicePopup ref="customerServicePopup" />
  39. <tabber select="3"/>
  40. </view>
  41. </template>
  42. <script>
  43. import topbar from "@/components/base/topbar.vue";
  44. import tabber from "@/components/base/tabbar.vue";
  45. import centerList from "@/components/base/centerList.vue";
  46. import customerServicePopup from "@/components/config/customerServicePopup.vue";
  47. import {mapGetters} from 'vuex'
  48. export default {
  49. name: "center2",
  50. components: {customerServicePopup, tabber, topbar,centerList},
  51. computed: {
  52. ...mapGetters(['userShop']),
  53. },
  54. data() {
  55. return {
  56. supplierList: [
  57. // this.$t('pages.index.index.companyProfile')
  58. {text: '我的挂单', value: ">", imgUrl: '/static/image/center/14.svg', toPathUrl: '/pages_order/order/pendingOrder'},
  59. {text: '联系客服', value: ">", imgUrl: '/static/image/center/13.svg'},
  60. {text: '系统设置', value: ">", imgUrl: '/static/image/center/12.svg'},
  61. {text: '关于我们', value: ">", imgUrl: '/static/image/center/13.svg'},
  62. ],
  63. purchaserList: [
  64. // this.$t('pages.index.index.companyProfile')
  65. {text: '联系客服', value: ">", imgUrl: '/static/image/center/13.svg'},
  66. {text: '系统设置', value: ">", imgUrl: '/static/image/center/12.svg'},
  67. {text: '关于我们', value: ">", imgUrl: '/static/image/center/13.svg'}
  68. ]
  69. }
  70. },
  71. methods: {
  72. openCustomerServicePopup() {
  73. console.log("打开客服弹框")
  74. this.$refs.customerServicePopup.open();
  75. }
  76. },
  77. }
  78. </script>
  79. <style scoped lang="scss">
  80. .page {
  81. background-color: #2e2e2e;
  82. height: calc(100vh - 120rpx);
  83. .frame {
  84. background-color: #2e2e2e;
  85. .head {
  86. display: flex;
  87. background-color: $uni-color;
  88. padding: 40rpx 20rpx;
  89. align-items: center;
  90. position: relative;
  91. color: #fff;
  92. box-shadow: 0 10rpx 20rpx rgba(89, 80, 80, 0.1);
  93. .headImage {
  94. width: 120rpx;
  95. height: 120rpx;
  96. background-image: url(/static/image/center/3.png);
  97. background-size: 100% 100%;
  98. overflow: hidden;
  99. border-radius: 50%;
  100. margin-right: 40rpx;
  101. }
  102. .info {
  103. font-size: 28rpx;
  104. .vip {
  105. background-color: #FCCC92;
  106. color: #FA6239;
  107. width: 100rpx;
  108. display: flex;
  109. justify-content: center;
  110. align-items: center;
  111. height: 40rpx;
  112. border-radius: 20rpx;
  113. margin-top: 20rpx;
  114. }
  115. .name {
  116. font-size: 32rpx;
  117. }
  118. .tips {
  119. font-size: 26rpx;
  120. color: #ABABAB;
  121. }
  122. }
  123. .headBtn {
  124. margin-left: auto;
  125. padding: 15rpx 20rpx;
  126. background-color: $uni-color;
  127. color: #fff;
  128. border-radius: 20rpx;
  129. margin-top: 50rpx;
  130. }
  131. .setting {
  132. position: absolute;
  133. right: 50rpx;
  134. top: 50rpx;
  135. }
  136. }
  137. .supplier {
  138. }
  139. .purchaser {
  140. }
  141. }
  142. }
  143. </style>