学员端小程序
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.

340 lines
7.7 KiB

1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
  1. <template>
  2. <view class="pageBgImg">
  3. <!-- 学员名字 -->
  4. <view class="top_row flex-b" @click="topClick">
  5. <view class="flex">
  6. <view class="userName">Hi{{ vuex_userInfo.name?vuex_userInfo.name:vuex_userInfo.phone?vuex_userInfo.phone:'请登录'}}</view>
  7. <view class="arrowIcon">
  8. <image src="../../../static/images/userCenter/ic_gengduo.png" mode=""></image>
  9. </view>
  10. </view>
  11. <view class="scanCode">
  12. <image src="../../../static/images/userCenter/ic_erweima.png" mode=""></image>
  13. </view>
  14. </view>
  15. <view class="pad">
  16. <!-- 学车进度 -->
  17. <view class="userProgress">
  18. <view class="progItme first flex">
  19. <view class="dianBox">
  20. <view class="dian"></view>
  21. </view>
  22. <view class="rightCon">报名成功</view>
  23. </view>
  24. <view class="progItme flex">
  25. <view class="dianBox">
  26. <view class="dian active"></view>
  27. </view>
  28. <view class="line"></view>
  29. <view class="rightCon">
  30. <view class="day">22</view>
  31. <view class="flex-b">
  32. <view class="flex">
  33. <view class="text">科目一考试通过</view>
  34. <view class="tag">当前进度</view>
  35. </view>
  36. <view class="progBtn" @click="$goPage('/pages/mineEntry/carLearProgress/carLearProgress')">进度查询</view>
  37. </view>
  38. </view>
  39. </view>
  40. </view>
  41. <!-- 我的相关入口 -->
  42. <view class="ul">
  43. <view class="li" v-for="(item,index) in myPageEntry" :key="index" @click="$goPage(item.url)">
  44. <view class="icon">
  45. <image :src="item.icon" mode=""></image>
  46. </view>
  47. <view class="text">{{ item.text }}</view>
  48. </view>
  49. </view>
  50. <!-- 业务办理 -->
  51. <view class="business ">
  52. <view class="h1">业务办理</view>
  53. <view class="card">
  54. <view class="item" v-for="(item,index) in businessEntry" :key="index" @click="$goPage(item.url)">
  55. <view class="icon">
  56. <image :src="item.icon" mode=""></image>
  57. </view>
  58. <view class="text">{{ item.text }}</view>
  59. </view>
  60. </view>
  61. </view>
  62. </view>
  63. <!-- <UserTab selectedIndex ='2'></UserTab> -->
  64. </view>
  65. </template>
  66. <script>
  67. export default {
  68. data() {
  69. return {
  70. myPageEntry: [
  71. {
  72. text: '我的预约',
  73. icon: require('../../../static/images/userCenter/ic_yuyue.png'),
  74. url: '/pages/mineEntry/myAppointment/myAppointment'
  75. },
  76. {
  77. text: '我的订单',
  78. icon: require('../../../static/images/userCenter/ic_dingdan.png'),
  79. url: '/pages/mineEntry/myOrder/myOrder'
  80. },
  81. {
  82. text: '学车数据',
  83. icon: require('../../../static/images/userCenter/ic_shuju.png'),
  84. url: '/pages/mineEntry/carData/carData'
  85. },
  86. {
  87. text: '我的合同',
  88. icon: require('../../../static/images/userCenter/ic_hetong.png'),
  89. url: '/pages/mineEntry/myContract/myContract'
  90. },
  91. {
  92. text: '我的评价',
  93. icon: require('../../../static/images/userCenter/ic_pingjia.png'),
  94. url: '/pages/mineEntry/myEvaluate/myEvaluate'
  95. },
  96. {
  97. text: '我的收藏',
  98. icon: require('../../../static/images/userCenter/ic_shoucang.png'),
  99. url: '/pages/mineEntry/myCollect/myCollect'
  100. },
  101. {
  102. text: '本地生活',
  103. icon: require('../../../static/images/userCenter/ic_shenghuo.png'),
  104. },
  105. ],
  106. businessEntry: [
  107. {
  108. text: '学时查询',
  109. icon: require('../../../static/images/userCenter/ic_chaxun.png'),
  110. url: '/pages/mineEntry/carLearnHours/carLearnHours'
  111. },
  112. {
  113. text: '同城转校',
  114. icon: require('../../../static/images/userCenter/tgzhuanxiao.png'),
  115. url: '/pages/mineEntry/schoolTransfer/schoolTransfer'
  116. },
  117. {
  118. text: '车型变更',
  119. icon: require('../../../static/images/userCenter/biangen.png'),
  120. url: '/pages/mineEntry/modelChange/modelChange'
  121. },
  122. {
  123. text: '申请退学',
  124. icon: require('../../../static/images/userCenter/shenqingtuixue.png'),
  125. url: '/pages/mineEntry/refund/refund'
  126. },
  127. ]
  128. }
  129. },
  130. onLoad() {
  131. console.log('我的页面')
  132. },
  133. onShow() {
  134. // uni.hideTabBar();
  135. },
  136. methods: {
  137. topClick() {
  138. if(!this.vuex_userInfo.phone) {
  139. this.$goPage('/pages/userCenter/login/login')
  140. }else {
  141. this.$goPage('/pages/mineEntry/personaInfo/personaInfo')
  142. }
  143. }
  144. }
  145. }
  146. </script>
  147. <style lang="scss" scoped>
  148. .pageBgImg {
  149. .top_row {
  150. width: 100%;
  151. padding: 180rpx 62rpx 0 32rpx;
  152. .flex {
  153. .userName {
  154. font-size: 48rpx;
  155. font-weight: 600;
  156. color: #FFFFFF;
  157. }
  158. .arrowIcon {
  159. margin-left: 24rpx;
  160. width: 40rpx;
  161. height: 40rpx;
  162. }
  163. }
  164. .scanCode {
  165. width: 40rpx;
  166. height: 40rpx;
  167. }
  168. }
  169. .userProgress {
  170. background: rgba(255,255,255,0.65);
  171. box-shadow: 2px 2px 8px 0px #C3D6E9, inset 0px 2px 4px 0px rgba(255,255,255,0.5);
  172. border-radius: 16rpx;
  173. padding: 22rpx 22rpx 22rpx 32rpx;
  174. margin-top: 32rpx;
  175. .progItme {
  176. position: relative;
  177. .dianBox {
  178. width: 32rpx;
  179. display: flex;
  180. align-items: center;
  181. justify-content: center;
  182. position: absolute;
  183. left: 0rpx;
  184. bottom: 14rpx;
  185. z-index: 4;
  186. .dian {
  187. width: 12rpx;
  188. height: 12rpx;
  189. background: #1989FA;
  190. border-radius: 50%;
  191. &.active {
  192. width: 32rpx;
  193. height: 32rpx;
  194. background: rgba(25,137,250,0.11);
  195. position: relative;
  196. &::before {
  197. content: '' ;
  198. width: 18rpx;
  199. height: 18rpx;
  200. position: absolute;
  201. border-radius: 50%;
  202. top: 50%;
  203. left: 50%;
  204. background: #1989FA;
  205. transform: translate(-50%, -50%);
  206. }
  207. }
  208. }
  209. }
  210. .line {
  211. position: absolute;
  212. left: 14rpx;
  213. bottom: 30rpx;
  214. width: 0rpx;
  215. height: 90rpx;
  216. border: 1rpx dashed rgba(25,137,250,0.7);
  217. z-index: 1;
  218. }
  219. .rightCon {
  220. flex: 1;
  221. padding: 0 0 0 54rpx;
  222. .day {
  223. font-size: 20rpx;
  224. color: $themC;
  225. margin: 12rpx 0 0rpx 0;
  226. }
  227. .flex-b {
  228. .flex {
  229. .text {
  230. font-size: 28rpx;
  231. color: #333;
  232. font-weight: 600;
  233. }
  234. .tag {
  235. margin-left: 10rpx;
  236. width: 110rpx;
  237. height: 44rpx;
  238. background: #FAF0E4;
  239. border-radius: 8rpx;
  240. font-size: 20rpx;
  241. color: #FA7919;
  242. line-height: 44rpx;
  243. text-align: center;
  244. }
  245. }
  246. .progBtn {
  247. width: 130rpx;
  248. height: 60rpx;
  249. background: rgba(25,137,250,0.1);
  250. border-radius: 8rpx;
  251. border: 2rpx solid #1989FA;
  252. font-size: 28rpx;
  253. color: $themC;
  254. line-height: 60rpx;
  255. text-align: center;
  256. }
  257. }
  258. }
  259. }
  260. }
  261. .ul {
  262. padding: 38rpx 0;
  263. display: flex;
  264. flex-wrap: wrap;
  265. width: 100%;
  266. .li {
  267. width: 25%;
  268. display: flex;
  269. flex-direction: column;
  270. align-items: center;
  271. margin: 24rpx 0;
  272. .icon {
  273. width: 68rpx;
  274. height: 68rpx;
  275. }
  276. .text {
  277. font-size: 28rpx;
  278. margin-top: 16rpx;
  279. color: #333;
  280. }
  281. }
  282. }
  283. .business {
  284. padding: 32rpx 0;
  285. .h1 {
  286. margin-bottom: 24rpx;
  287. }
  288. .card {
  289. width: 100%;
  290. height: 390rpx;
  291. background: #FFFFFF;
  292. border-radius: 16rpx;
  293. display: flex;
  294. flex-wrap: wrap;
  295. padding: 38rpx 0 0 0;
  296. .item {
  297. width: 33.33%;
  298. display: flex;
  299. flex-direction: column;
  300. align-items: center;
  301. height: 162rpx;
  302. .icon {
  303. width: 72rpx;
  304. height: 72rpx;
  305. background: #F6F7F8;
  306. border-radius: 50%;
  307. display: flex;
  308. align-items: center;
  309. justify-content: center;
  310. image {
  311. width: 48rpx;
  312. height: 48rpx;
  313. }
  314. }
  315. .text {
  316. margin-top: 16rpx;
  317. font-size: 28rpx;
  318. color: #333;
  319. }
  320. }
  321. }
  322. }
  323. }
  324. </style>