index.vue 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. <template>
  2. <app-layout class="app-my">
  3. <view class="container">
  4. <view class="customer">
  5. <view class="bg"></view>
  6. <view class="info dir-top-wrap cross-center main-center">
  7. <view class="head-img">
  8. <u-image
  9. width="140"
  10. height="140"
  11. :src="userData.head_img"
  12. shape="circle"></u-image>
  13. </view>
  14. <view class="nickname">{{userData.nickname}}</view>
  15. <view class="mobile">
  16. {{userData.phone_num}}
  17. <!--#ifdef MP-WEIXIN-->
  18. <u-button size="mini"
  19. v-if="!userData.phone_num"
  20. :custom-style="{backgroundColor: '#097268'}"
  21. type="success" open-type="getPhoneNumber" @getphonenumber="getPhoneNumber">获取手机号</u-button>
  22. <!--#endif-->
  23. </view>
  24. </view>
  25. </view>
  26. <u-cell-group :border="false" class="tab-list">
  27. <u-cell-item title="桥架会员" :border-bottom="false" bg-color="#f9f9f9" @click="$jump({url:'/pages/my/member',type:'to'})">
  28. <view slot="icon" class="icon bridge"></view>
  29. </u-cell-item>
  30. <u-cell-item title="会员购买记录" :border-bottom="false" bg-color="#f9f9f9" @click="$jump({url:'/pages/my/member-record',type:'to'})">
  31. <view slot="icon" class="icon member"></view>
  32. </u-cell-item>
  33. <u-cell-item title="分销中心" :border-bottom="false" bg-color="#f9f9f9" @click="$jump({url:'/pages/share/index',type:'to'})">
  34. <view slot="icon" class="icon share"></view>
  35. </u-cell-item>
  36. <u-cell-item title="微信号" :border-bottom="false" bg-color="#f9f9f9">
  37. <view slot="icon" class="icon wechat"></view>
  38. </u-cell-item>
  39. <u-cell-item title="在线客服" :border-bottom="false" bg-color="#f9f9f9">
  40. <view slot="icon" class="icon kefu"></view>
  41. </u-cell-item>
  42. </u-cell-group>
  43. <view class="qrcode dir-top-wrap cross-center">
  44. <view class="img">
  45. <u-image
  46. width="260"
  47. height="260"
  48. src="https://xiansin.oss-cn-shenzhen.aliyuncs.com/sange-bridge/images/sample.jpg"
  49. ></u-image>
  50. </view>
  51. <text class="title">扫描二维码联系客服</text>
  52. </view>
  53. </view>
  54. </app-layout>
  55. </template>
  56. <script>
  57. import appLayout from "@/components/app-layout"
  58. export default {
  59. components:{
  60. appLayout,
  61. },
  62. data() {
  63. return {
  64. userData: this.vuex_user_data
  65. }
  66. },
  67. methods: {
  68. getPhoneNumber(phoneNumber){
  69. console.log('-->data',phoneNumber)
  70. },
  71. getUser(){
  72. this.$u.api.userGet().then(data => {
  73. console.log('-->data',data)
  74. })
  75. },
  76. getSetting(){
  77. this.$u.api.settingGet().then(data => {
  78. console.log('-->data',data)
  79. })
  80. }
  81. },
  82. onLoad(){
  83. this.userData = this.vuex_user_data
  84. //this.getUser();
  85. this.getSetting();
  86. }
  87. }
  88. </script>
  89. <style lang="scss" scoped>
  90. /deep/.u-cell{
  91. padding: 22rpx 32rpx !important;
  92. }
  93. .container{
  94. padding: 0;
  95. height: 100vh;
  96. .customer{
  97. position: relative;
  98. .bg{
  99. position: absolute;
  100. background: url("@/static/images/bg.png") no-repeat center;
  101. background-size: 100% 100%;
  102. height: 300rpx;
  103. left: 0;
  104. top: 0;
  105. width: 750rpx;
  106. z-index: 0;
  107. }
  108. .info{
  109. height: 300rpx;
  110. position: relative;
  111. color: #ffffff;
  112. z-index: 1;
  113. .nickname{
  114. margin: 8rpx 0;
  115. font-weight: 600;
  116. }
  117. }
  118. }
  119. .tab-list{
  120. margin-top: 32rpx;
  121. .icon{
  122. width: 32rpx;
  123. height: 32rpx;
  124. background-size: cover;
  125. background-repeat: no-repeat;
  126. background-position: center;
  127. margin-right: 8rpx;
  128. &.bridge{
  129. background-image: url("@/static/images/icons/bridge.png");
  130. }
  131. &.kefu{
  132. background-image: url("@/static/images/icons/kefu.png");
  133. }
  134. &.member{
  135. background-image: url("@/static/images/icons/member.png");
  136. }
  137. &.share{
  138. background-image: url("@/static/images/icons/share.png");
  139. }
  140. &.wechat{
  141. background-image: url("@/static/images/icons/wechat.png");
  142. }
  143. }
  144. }
  145. .qrcode{
  146. margin-top: 32rpx;
  147. >.title{
  148. padding: 8rpx 0;
  149. color: #6e6e6e;
  150. }
  151. }
  152. }
  153. </style>