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

166 lines
4.8 KiB

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