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

168 lines
4.8 KiB

8 months ago
7 months ago
7 months ago
8 months ago
7 months ago
7 months ago
8 months ago
7 months ago
8 months ago
8 months ago
8 months ago
8 months ago
7 months ago
8 months ago
7 months ago
8 months ago
8 months ago
8 months ago
7 months ago
8 months ago
8 months ago
7 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="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. {text: `${this.$t('components.contactCustomerService')}`, englishText:'contactCustomerService',value: ">", imgUrl: '/static/image/center/13.svg'},
  65. {text: `${this.$t('components.systemSettings')}`,englishText:'systemSettings', value: ">", imgUrl: '/static/image/center/12.svg', toPathUrl: '/pages_order/center/systemSet'},
  66. {text: `${this.$t('components.helpFeedback')}`,englishText:'systemSettings', value: ">", imgUrl: '/static/image/center/12.svg', toPathUrl: '/pages_order/center/helpFeedback'},
  67. {text: `${this.$t('components.aboutUs')}`, englishText:'aboutUs',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>