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

170 lines
4.8 KiB

1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
  1. <template>
  2. <view class="page">
  3. <navbar :title="$t('pageTitle.personalCenter')"/>
  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. {{ $t('components.phoneNumber') }}13812345678
  19. </view>
  20. </view>
  21. <view class="headBtn" @click="headBtn">
  22. {{ $t('components.roleSwitching') }}
  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. {text: `${this.$t('pageTitle.myOrders')}`,englishText:'myOrders', value: ">", imgUrl: '/static/image/center/14.svg', toPathUrl: '/pages_order/order/pendingOrder'},
  58. {text: `${this.$t('components.contactCustomerService')}`, englishText:'contactCustomerService',value: ">", imgUrl: '/static/image/center/13.svg'},
  59. {text: `${this.$t('components.systemSettings')}`,englishText:'systemSettings', value: ">", imgUrl: '/static/image/center/12.svg', toPathUrl: '/pages_order/center/systemSet'},
  60. {text: `${this.$t('components.helpFeedback')}`,englishText:'systemSettings', value: ">", imgUrl: '/static/image/center/12.svg', toPathUrl: '/pages_order/center/helpFeedback'},
  61. {text: `${this.$t('components.aboutUs')}`, englishText:'aboutUs',value: ">", imgUrl: '/static/image/center/13.svg'},
  62. ],
  63. purchaserList: [
  64. // this.$t('pages.index.index.companyProfile')
  65. {text: `${this.$t('components.contactCustomerService')}`, englishText:'contactCustomerService',value: ">", imgUrl: '/static/image/center/13.svg'},
  66. {text: `${this.$t('components.contactCustomerService')}`,englishText:'systemSettings', value: ">", imgUrl: '/static/image/center/12.svg', toPathUrl: '/pages_order/center/systemSet'},
  67. {text: `${this.$t('components.helpFeedback')}`,englishText:'systemSettings', value: ">", imgUrl: '/static/image/center/12.svg', toPathUrl: '/pages_order/center/helpFeedback'},
  68. {text: `${this.$t('components.aboutUs')}`, englishText:'aboutUs',value: ">", imgUrl: '/static/image/center/13.svg'},
  69. ]
  70. }
  71. },
  72. methods: {
  73. openCustomerServicePopup() {
  74. console.log("打开客服弹框")
  75. this.$refs.customerServicePopup.open();
  76. }
  77. },
  78. }
  79. </script>
  80. <style scoped lang="scss">
  81. .page {
  82. background-color: #2e2e2e;
  83. height: calc(100vh - 120rpx);
  84. .frame {
  85. background-color: #2e2e2e;
  86. .head {
  87. display: flex;
  88. background-color: $uni-color;
  89. padding: 40rpx 20rpx;
  90. align-items: center;
  91. position: relative;
  92. color: #fff;
  93. box-shadow: 0 10rpx 20rpx rgba(89, 80, 80, 0.1);
  94. .headImage {
  95. width: 120rpx;
  96. height: 120rpx;
  97. background-image: url(/static/image/center/3.png);
  98. background-size: 100% 100%;
  99. overflow: hidden;
  100. border-radius: 50%;
  101. margin-right: 40rpx;
  102. }
  103. .info {
  104. font-size: 28rpx;
  105. .vip {
  106. background-color: #FCCC92;
  107. color: #FA6239;
  108. width: 100rpx;
  109. display: flex;
  110. justify-content: center;
  111. align-items: center;
  112. height: 40rpx;
  113. border-radius: 20rpx;
  114. margin-top: 20rpx;
  115. }
  116. .name {
  117. font-size: 32rpx;
  118. }
  119. .tips {
  120. font-size: 26rpx;
  121. color: #ABABAB;
  122. }
  123. }
  124. .headBtn {
  125. margin-left: auto;
  126. padding: 15rpx 20rpx;
  127. background-color: $uni-color;
  128. color: #fff;
  129. border-radius: 20rpx;
  130. margin-top: 50rpx;
  131. }
  132. .setting {
  133. position: absolute;
  134. right: 50rpx;
  135. top: 50rpx;
  136. }
  137. }
  138. .supplier {
  139. }
  140. .purchaser {
  141. }
  142. }
  143. }
  144. </style>