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

232 lines
5.2 KiB

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