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

194 lines
4.2 KiB

  1. <template>
  2. <view class="page">
  3. <navbar title="个人中心"/>
  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. 手机号13812345678
  19. </view>
  20. </view>
  21. <view class="headBtn" @click="headBtn">
  22. 角色切换
  23. </view>
  24. <view class="setting">
  25. <uv-icon name="setting" size="40rpx"></uv-icon>
  26. </view>
  27. </view>
  28. <!--内容-->
  29. <view class="content">
  30. <view class="item" v-for="(item, index) in list" :key="index" @click="tapItem(item, index)">
  31. <view class="key">
  32. <view class="img">
  33. <img :src="item.imgUrl" style="width: 100%; height: 100%;"/>
  34. </view>
  35. <view class="text">
  36. {{item.text}}
  37. </view>
  38. </view>
  39. <view class="value">
  40. {{item.value}}
  41. </view>
  42. </view>
  43. </view>
  44. </view>
  45. <!-- 联系客服弹框 -->
  46. <customerServicePopup ref="customerServicePopup" />
  47. <tabber select="3"/>
  48. </view>
  49. </template>
  50. <script>
  51. import topbar from "@/components/base/topbar.vue";
  52. import tabber from "@/components/base/tabbar.vue";
  53. import customerServicePopup from "@/components/config/customerServicePopup.vue";
  54. export default {
  55. name: "center2",
  56. components: {customerServicePopup, tabber, topbar},
  57. data() {
  58. return {
  59. list:[
  60. // this.$t('pages.index.index.companyProfile')
  61. { text: '联系客服', value: ">" , imgUrl: '/static/image/center/13.svg'},
  62. {text: '系统设置', value: ">" , imgUrl: '/static/image/center/12.svg'},
  63. {text: '关于我们', value: ">" , imgUrl: '/static/image/center/13.svg'}
  64. ]
  65. }
  66. },
  67. methods: {
  68. tapItem(item, index){
  69. console.log(item, index,"item,index==========")
  70. if (index === 0){
  71. this.$refs.customerServicePopup.open()
  72. }else if (index === 1){
  73. console.log("系统设置")
  74. }else if (index === 2){
  75. console.log("关于我们")
  76. }
  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. .content {
  140. background-color: #2e2e2e;
  141. .item {
  142. display: flex;
  143. justify-content: space-between;
  144. align-items: center;
  145. padding: 20rpx 40rpx;
  146. .key {
  147. display: flex;
  148. justify-content: center;
  149. align-items: center;
  150. color: #FFF;
  151. font-size: 32rpx;
  152. .img {
  153. width: 40rpx;
  154. height: 40rpx;
  155. }
  156. .text {
  157. margin-left: 20rpx;
  158. }
  159. }
  160. .value {
  161. color: #FFF;
  162. font-size: 36rpx;
  163. }
  164. }
  165. }
  166. }
  167. }
  168. </style>