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

175 lines
5.1 KiB

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