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

139 lines
5.6 KiB

10 months ago
10 months ago
10 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
3 weeks ago
8 months ago
10 months ago
8 months ago
3 weeks ago
10 months ago
8 months ago
10 months ago
10 months ago
10 months ago
8 months ago
6 months ago
10 months ago
10 months ago
8 months ago
10 months ago
3 weeks ago
10 months ago
6 months ago
9 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. <!-- <image src="https://lyjp-bucket-main.oss-cn-beijing.aliyuncs.com/985114ca01ff35554333927a5d1d52883d3ad21301caac4b637df56169b2c916.png" mode="aspectFill" v-if="vuex_userInfo.photoPath" ></image> -->
  9. </view>
  10. <view class="rightInfo" @click="topClick">
  11. <view class="name-row">
  12. <view class="leftTxt">
  13. <view class="name">{{ vuex_userInfo.name?vuex_userInfo.name:vuex_userInfo.phone?vuex_userInfo.phone:'请登录' }}</view>
  14. <view class="arrowIcon">
  15. <image src="@/static/images/icon/arrowRightfff.png" mode=""></image>
  16. </view>
  17. </view>
  18. <view class="scanCode" @click.stop="scanCodeClick">
  19. <image src="@/static/images/mineIcon/sanCode.png" mode=""></image>
  20. </view>
  21. </view>
  22. <view class="phone" v-if="vuex_userInfo.name">{{ vuex_userInfo.phone }}</view>
  23. </view>
  24. </view>
  25. <view class="pad">
  26. <view class="ul">
  27. <view class="li" v-for="(item,index) in ulData" :key="index" @click="goPage(item)">
  28. <view class="icon">
  29. <image :src="item.icon" mode=""></image>
  30. </view>
  31. <view class="text">{{ item.name }}</view>
  32. </view>
  33. </view>
  34. <view class="ul2">
  35. <view class="li2" v-for="(item,index) in ulData2" :key="index" @click="goPage(item)">
  36. <view class="icon">
  37. <image :src="item.icon" mode=""></image>
  38. </view>
  39. <view class="text">{{ item.name }}</view>
  40. <view class="arrowRight">
  41. <u-icon name="arrow-right" color="#ccc" size="16"></u-icon>
  42. </view>
  43. </view>
  44. </view>
  45. </view>
  46. <!-- <view class="logout" @click="deleteTestClick" style="margin-top: 40rpx;">删除测试账号开发用的</view> -->
  47. <!-- <view @click="gotk" text="去题库">去题库</view> -->
  48. <u-popup :show="show" mode="center" @close="show=false" :closeable="true">
  49. <view style="width: 90vw;">
  50. <image :src="vuex_userInfo.photoPath" mode="widthFix" ></image>
  51. </view>
  52. </u-popup>
  53. </view>
  54. </template>
  55. <script>
  56. import { scanCodeFn } from '@/config/utils.js'
  57. import { deleteTest } from '@/config/api.js'
  58. export default {
  59. data() {
  60. return {
  61. show: false,
  62. ulData: [
  63. {name: '学车进度', icon: require('@/static/images/mineIcon/emtryIcon (4).png'),url: '/pages/mineEntry/carLearProgress/carLearProgress'},
  64. {name: '我的预约', icon: require('@/static/images/mineIcon/emtryIcon (1).png'),url: '/pages/mineEntry/myAppointment/myAppointment'},
  65. {name: '我的订单', icon: require('@/static/images/mineIcon/emtryIcon (2).png'),url: '/pages/mineEntry/myOrder/myOrder'},
  66. {name: '我的合同', icon: require('@/static/images/mineIcon/emtryIcon (3).png'),url: '/pages/mineEntry/myContract/myContract'},
  67. ],
  68. ulData2: [
  69. {name: '学时查询', icon: require('@/static/images/mineIcon/minIcon (4).png'),url: '/pages/mineEntry/carLearnHours/carLearnHours'},
  70. {name: '我的评价', icon: require('@/static/images/mineIcon/minIcon (1).png'),url: '/pages/mineEntry/myEvaluate/myEvaluate'},
  71. // {name: '退款申请', icon: require('@/static/images/mineIcon/minIcon (3).png'),url: '/pages/mineEntry/refund/refund'},
  72. // {name: '变更车型', icon: require('@/static/images/mineIcon/minIcon (7).png'),url: '/pages/mineEntry/modelChange/modelChange'},
  73. // {name: '同城转校', icon: require('@/static/images/mineIcon/minIcon (5).png'),url: '/pages/mineEntry/schoolTransfer/schoolTransfer'},
  74. {name: '关于我们', icon: require('@/static/images/mineIcon/minIcon (2).png'),url: '/pages/mineEntry/aboutUs/aboutUs'},
  75. {name: '用户协议', icon: require('@/static/images/mineIcon/minIcon (4).png'),url: '/pages/userCenter/login/privacyAgreement/privacyAgreement?type=2'},
  76. {name: '隐私政策', icon: require('@/static/images/mineIcon/minIcon (6).png'),url: '/pages/userCenter/login/privacyAgreement/privacyAgreement?type=1'},
  77. ]
  78. }
  79. },
  80. onHide() {
  81. if(this.show) this.show = false
  82. },
  83. methods: {
  84. async deleteTestClick() {
  85. const res = await deleteTest({phone: 18267103167})
  86. this.$store.commit('goLogin')
  87. console.log(res)
  88. },
  89. gotk() {
  90. this.$store.commit('updateWebVeiwUrl', 'http://192.168.1.94:1314/h5#/pages/exercises/brushQuestions/brushQuestions')
  91. uni.navigateTo({
  92. url: '/pages/indexEntry/webView/webView'
  93. })
  94. },
  95. topClick() {
  96. if(!this.vuex_userInfo.phone) {
  97. this.$goPage('/pages/userCenter/login/login')
  98. }else {
  99. this.$goPage('/pages/mineEntry/personaInfo/personaInfo')
  100. }
  101. },
  102. goPage(item) {
  103. let whileUrl = ['关于我们', '用户协议', '隐私政策']
  104. if(!whileUrl.includes(item.name)) {
  105. // return this.$goPage('/pages/mineEntry/myForecastName/myForecastName')
  106. // console.log(this.vuex_userInfo.applyStep)
  107. console.log(this.vuex_userInfo.applyStep)
  108. if(item.name=='我的订单'&&this.vuex_userInfo.applyStep>2&&this.vuex_userInfo.applyStep<6) {
  109. return this.$goPage('/pages/mineEntry/myForecastName/myForecastName')
  110. }
  111. if(this.vuex_userInfo.applyStep!=6) {
  112. return this.$u.toast('您还未报名驾校')
  113. }
  114. if(item.name=='同城转校') {
  115. uni.showModal({
  116. content: '请在原驾校退学后至新驾校报名!',
  117. success:(res)=> {
  118. if(res.confirm) this.$goPage(item.url)
  119. }
  120. })
  121. return false
  122. }
  123. }
  124. this.$goPage(item.url)
  125. },
  126. scanCodeClick() {
  127. scanCodeFn(this)
  128. }
  129. }
  130. }
  131. </script>
  132. <style lang="scss" scoped>
  133. @import './index.scss';
  134. </style>