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

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