洛阳学员端
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.

109 lines
4.1 KiB

10 months ago
7 months ago
10 months ago
9 months ago
10 months ago
8 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
7 months ago
10 months ago
8 months ago
10 months ago
7 months ago
9 months ago
10 months ago
9 months ago
8 months ago
9 months ago
10 months ago
9 months ago
7 months ago
9 months ago
8 months ago
8 months ago
8 months ago
10 months ago
  1. <template>
  2. <view class="pageBgImg">
  3. <view class="status_bar"></view>
  4. <!-- 用户信息 -->
  5. <view class="userInfo">
  6. <view class="avatar">
  7. <image :src="vuex_userInfo.photoPath" mode="aspectFill" v-if="vuex_userInfo.photoPath" @click="show=true"></image>
  8. </view>
  9. <view class="rightInfo" @click="topClick">
  10. <view class="name-row">
  11. <view class="leftTxt">
  12. <view class="name">{{ vuex_userInfo.name?vuex_userInfo.name:vuex_userInfo.phone?vuex_userInfo.phone:'请登录' }}</view>
  13. <view class="arrowIcon">
  14. <image src="@/static/images/icon/arrowRightfff.png" mode=""></image>
  15. </view>
  16. </view>
  17. <view class="scanCode" @click.stop="scanCodeClick">
  18. <image src="@/static/images/mineIcon/sanCode.png" mode=""></image>
  19. </view>
  20. </view>
  21. <view class="phone" v-if="vuex_userInfo.name">{{ vuex_userInfo.phone }}</view>
  22. </view>
  23. </view>
  24. <view class="pad">
  25. <view class="ul">
  26. <view class="li" v-for="(item,index) in ulData" :key="index" @click="goPage(item)">
  27. <view class="icon">
  28. <image :src="item.icon" mode=""></image>
  29. </view>
  30. <view class="text">{{ item.name }}</view>
  31. </view>
  32. </view>
  33. <view class="ul2">
  34. <view class="li2" v-for="(item,index) in ulData2" :key="index" @click="goPage(item)">
  35. <view class="icon">
  36. <image :src="item.icon" mode=""></image>
  37. </view>
  38. <view class="text">{{ item.name }}</view>
  39. <view class="arrowRight">
  40. <u-icon name="arrow-right" color="#ccc" size="16"></u-icon>
  41. </view>
  42. </view>
  43. </view>
  44. </view>
  45. <u-popup :show="show" mode="center" @close="show=false" :closeable="true">
  46. <view style="width: 90vw;">
  47. <image :src="vuex_userInfo.photoPath" mode="widthFix" ></image>
  48. </view>
  49. </u-popup>
  50. </view>
  51. </template>
  52. <script>
  53. import { scanCodeFn } from '@/config/utils.js'
  54. export default {
  55. data() {
  56. return {
  57. show: false,
  58. ulData: [
  59. {name: '学车进度', icon: require('@/static/images/mineIcon/emtryIcon (4).png'),url: '/pages/mineEntry/carLearProgress/carLearProgress'},
  60. {name: '我的预约', icon: require('@/static/images/mineIcon/emtryIcon (1).png'),url: '/pages/mineEntry/myAppointment/myAppointment'},
  61. {name: '我的订单', icon: require('@/static/images/mineIcon/emtryIcon (2).png'),url: '/pages/mineEntry/myOrder/myOrder'},
  62. {name: '我的合同', icon: require('@/static/images/mineIcon/emtryIcon (3).png'),url: '/pages/mineEntry/myContract/myContract'},
  63. ],
  64. ulData2: [
  65. {name: '学时查询', icon: require('@/static/images/mineIcon/minIcon (4).png'),url: '/pages/mineEntry/carLearnHours/carLearnHours'},
  66. {name: '我的评价', icon: require('@/static/images/mineIcon/minIcon (1).png'),url: '/pages/mineEntry/myEvaluate/myEvaluate'},
  67. // {name: '退款申请', icon: require('@/static/images/mineIcon/minIcon (3).png'),url: '/pages/mineEntry/refund/refund'},
  68. {name: '变更车型', icon: require('@/static/images/mineIcon/minIcon (7).png'),url: '/pages/mineEntry/modelChange/modelChange'},
  69. {name: '同城转校', icon: require('@/static/images/mineIcon/minIcon (5).png'),url: '/pages/mineEntry/schoolTransfer/schoolTransfer'},
  70. // {name: '退款申请记录', icon: require('@/static/images/mineIcon/minIcon (6).png'),url: ''},
  71. {name: '关于我们', icon: require('@/static/images/mineIcon/minIcon (2).png'),url: '/pages/mineEntry/aboutUs/aboutUs'},
  72. ]
  73. }
  74. },
  75. onHide() {
  76. if(this.show) this.show = false
  77. },
  78. methods: {
  79. topClick() {
  80. if(!this.vuex_userInfo.phone) {
  81. this.$goPage('/pages/userCenter/login/login')
  82. }else {
  83. this.$goPage('/pages/mineEntry/personaInfo/personaInfo')
  84. }
  85. },
  86. goPage(item) {
  87. if(item.name!='关于我们') {
  88. if(item.name=='我的订单'&&this.vuex_userInfo.applyStep>2&&this.vuex_userInfo.applyStep<6) {
  89. return this.$goPage('/pages/mineEntry/myForecastName/myForecastName')
  90. }
  91. if(this.vuex_userInfo.applyStep!=6) {
  92. return this.$u.toast('您还未报名驾校')
  93. }
  94. }
  95. this.$goPage(item.url)
  96. },
  97. scanCodeClick() {
  98. scanCodeFn(this)
  99. }
  100. }
  101. }
  102. </script>
  103. <style lang="scss" scoped>
  104. @import './index.scss';
  105. </style>