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

334 lines
7.5 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. <template>
  2. <view class="pageBgImg">
  3. <!-- 学员名字 -->
  4. <view class="top_row flex-b" @click="$goPage('/pages/mineEntry/personaInfo/personaInfo')">
  5. <view class="flex">
  6. <view class="userName">Hi{{ vuex_userInfo.nickname?vuex_userInfo.nickname:vuex_userInfo.mobile}}</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. goPage() {}
  138. }
  139. }
  140. </script>
  141. <style lang="scss" scoped>
  142. .pageBgImg {
  143. .top_row {
  144. width: 100%;
  145. padding: 180rpx 62rpx 0 32rpx;
  146. .flex {
  147. .userName {
  148. font-size: 48rpx;
  149. font-weight: 600;
  150. color: #FFFFFF;
  151. }
  152. .arrowIcon {
  153. margin-left: 24rpx;
  154. width: 40rpx;
  155. height: 40rpx;
  156. }
  157. }
  158. .scanCode {
  159. width: 40rpx;
  160. height: 40rpx;
  161. }
  162. }
  163. .userProgress {
  164. background: rgba(255,255,255,0.65);
  165. box-shadow: 2px 2px 8px 0px #C3D6E9, inset 0px 2px 4px 0px rgba(255,255,255,0.5);
  166. border-radius: 16rpx;
  167. padding: 22rpx 22rpx 22rpx 32rpx;
  168. margin-top: 32rpx;
  169. .progItme {
  170. position: relative;
  171. .dianBox {
  172. width: 32rpx;
  173. display: flex;
  174. align-items: center;
  175. justify-content: center;
  176. position: absolute;
  177. left: 0rpx;
  178. bottom: 14rpx;
  179. z-index: 4;
  180. .dian {
  181. width: 12rpx;
  182. height: 12rpx;
  183. background: #1989FA;
  184. border-radius: 50%;
  185. &.active {
  186. width: 32rpx;
  187. height: 32rpx;
  188. background: rgba(25,137,250,0.11);
  189. position: relative;
  190. &::before {
  191. content: '' ;
  192. width: 18rpx;
  193. height: 18rpx;
  194. position: absolute;
  195. border-radius: 50%;
  196. top: 50%;
  197. left: 50%;
  198. background: #1989FA;
  199. transform: translate(-50%, -50%);
  200. }
  201. }
  202. }
  203. }
  204. .line {
  205. position: absolute;
  206. left: 14rpx;
  207. bottom: 30rpx;
  208. width: 0rpx;
  209. height: 90rpx;
  210. border: 1rpx dashed rgba(25,137,250,0.7);
  211. z-index: 1;
  212. }
  213. .rightCon {
  214. flex: 1;
  215. padding: 0 0 0 54rpx;
  216. .day {
  217. font-size: 20rpx;
  218. color: $themC;
  219. margin: 12rpx 0 0rpx 0;
  220. }
  221. .flex-b {
  222. .flex {
  223. .text {
  224. font-size: 28rpx;
  225. color: #333;
  226. font-weight: 600;
  227. }
  228. .tag {
  229. margin-left: 10rpx;
  230. width: 110rpx;
  231. height: 44rpx;
  232. background: #FAF0E4;
  233. border-radius: 8rpx;
  234. font-size: 20rpx;
  235. color: #FA7919;
  236. line-height: 44rpx;
  237. text-align: center;
  238. }
  239. }
  240. .progBtn {
  241. width: 130rpx;
  242. height: 60rpx;
  243. background: rgba(25,137,250,0.1);
  244. border-radius: 8rpx;
  245. border: 2rpx solid #1989FA;
  246. font-size: 28rpx;
  247. color: $themC;
  248. line-height: 60rpx;
  249. text-align: center;
  250. }
  251. }
  252. }
  253. }
  254. }
  255. .ul {
  256. padding: 38rpx 0;
  257. display: flex;
  258. flex-wrap: wrap;
  259. width: 100%;
  260. .li {
  261. width: 25%;
  262. display: flex;
  263. flex-direction: column;
  264. align-items: center;
  265. margin: 24rpx 0;
  266. .icon {
  267. width: 68rpx;
  268. height: 68rpx;
  269. }
  270. .text {
  271. font-size: 28rpx;
  272. margin-top: 16rpx;
  273. color: #333;
  274. }
  275. }
  276. }
  277. .business {
  278. padding: 32rpx 0;
  279. .h1 {
  280. margin-bottom: 24rpx;
  281. }
  282. .card {
  283. width: 100%;
  284. height: 390rpx;
  285. background: #FFFFFF;
  286. border-radius: 16rpx;
  287. display: flex;
  288. flex-wrap: wrap;
  289. padding: 38rpx 0 0 0;
  290. .item {
  291. width: 33.33%;
  292. display: flex;
  293. flex-direction: column;
  294. align-items: center;
  295. height: 162rpx;
  296. .icon {
  297. width: 72rpx;
  298. height: 72rpx;
  299. background: #F6F7F8;
  300. border-radius: 50%;
  301. display: flex;
  302. align-items: center;
  303. justify-content: center;
  304. image {
  305. width: 48rpx;
  306. height: 48rpx;
  307. }
  308. }
  309. .text {
  310. margin-top: 16rpx;
  311. font-size: 28rpx;
  312. color: #333;
  313. }
  314. }
  315. }
  316. }
  317. }
  318. </style>