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

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