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

352 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. <template>
  2. <view class="content pageBg">
  3. <!-- 学员名字 -->
  4. <view class="top_row flex-b" @click="$goPage('/pages/mineEntry/personaInfo/personaInfo')">
  5. <view class="flex">
  6. <view class="userName">Hi大乔</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. },
  75. {
  76. text: '我的订单',
  77. icon: require('../../../static/images/userCenter/ic_dingdan.png'),
  78. },
  79. {
  80. text: '学车数据',
  81. icon: require('../../../static/images/userCenter/ic_shuju.png'),
  82. url: '/pages/mineEntry/carData/carData'
  83. },
  84. {
  85. text: '我的合同',
  86. icon: require('../../../static/images/userCenter/ic_hetong.png'),
  87. url: '/pages/mineEntry/myContract/myContract'
  88. },
  89. {
  90. text: '我的评价',
  91. icon: require('../../../static/images/userCenter/ic_pingjia.png'),
  92. url: '/pages/mineEntry/myEvaluate/myEvaluate'
  93. },
  94. {
  95. text: '我的收藏',
  96. icon: require('../../../static/images/userCenter/ic_shoucang.png'),
  97. url: '/pages/mineEntry/myCollect/myCollect'
  98. },
  99. {
  100. text: '本地生活',
  101. icon: require('../../../static/images/userCenter/ic_shenghuo.png'),
  102. },
  103. ],
  104. businessEntry: [
  105. {
  106. text: '学时查询',
  107. icon: require('../../../static/images/userCenter/ic_chaxun.png'),
  108. url: '/pages/mineEntry/carLearnHours/carLearnHours'
  109. },
  110. {
  111. text: '同城转校',
  112. icon: require('../../../static/images/userCenter/tgzhuanxiao.png'),
  113. },
  114. {
  115. text: '车型变更',
  116. icon: require('../../../static/images/userCenter/biangen.png'),
  117. },
  118. {
  119. text: '申请退学',
  120. icon: require('../../../static/images/userCenter/shenqingtuixue.png'),
  121. },
  122. ]
  123. }
  124. },
  125. onLoad() {
  126. console.log('我的页面')
  127. },
  128. onShow() {
  129. // uni.hideTabBar();
  130. },
  131. methods: {
  132. goPage() {}
  133. }
  134. }
  135. </script>
  136. <style lang="scss" scoped>
  137. .content {
  138. }
  139. .content {
  140. width: 100%;
  141. width: 100vw;
  142. min-height: 100vh;
  143. background: url('../../../static/images/bigImg/topbg.png') #F6F6F6 no-repeat;
  144. background-size: 100% 362rpx;
  145. .top_row {
  146. width: 100%;
  147. padding: 180rpx 62rpx 0 32rpx;
  148. .flex {
  149. .userName {
  150. font-size: 48rpx;
  151. font-weight: 600;
  152. color: #FFFFFF;
  153. }
  154. .arrowIcon {
  155. margin-left: 24rpx;
  156. width: 40rpx;
  157. height: 40rpx;
  158. }
  159. }
  160. .scanCode {
  161. width: 40rpx;
  162. height: 40rpx;
  163. }
  164. }
  165. .userProgress {
  166. background: rgba(255,255,255,0.65);
  167. box-shadow: 2px 2px 8px 0px #C3D6E9, inset 0px 2px 4px 0px rgba(255,255,255,0.5);
  168. border-radius: 16rpx;
  169. padding: 22rpx 22rpx 22rpx 32rpx;
  170. margin-top: 32rpx;
  171. .progItme {
  172. position: relative;
  173. .dianBox {
  174. width: 32rpx;
  175. display: flex;
  176. align-items: center;
  177. justify-content: center;
  178. position: absolute;
  179. left: 0rpx;
  180. bottom: 14rpx;
  181. z-index: 4;
  182. .dian {
  183. width: 12rpx;
  184. height: 12rpx;
  185. background: #1989FA;
  186. border-radius: 50%;
  187. &.active {
  188. width: 32rpx;
  189. height: 32rpx;
  190. background: rgba(25,137,250,0.11);
  191. position: relative;
  192. &::before {
  193. content: '' ;
  194. width: 18rpx;
  195. height: 18rpx;
  196. position: absolute;
  197. border-radius: 50%;
  198. top: 50%;
  199. left: 50%;
  200. background: #1989FA;
  201. transform: translate(-50%, -50%);
  202. }
  203. }
  204. }
  205. }
  206. .line {
  207. position: absolute;
  208. left: 14rpx;
  209. bottom: 30rpx;
  210. width: 0rpx;
  211. height: 90rpx;
  212. border: 1rpx dashed rgba(25,137,250,0.7);
  213. z-index: 1;
  214. }
  215. .rightCon {
  216. flex: 1;
  217. padding: 0 0 0 54rpx;
  218. .day {
  219. font-size: 20rpx;
  220. color: $themC;
  221. margin: 12rpx 0 0rpx 0;
  222. }
  223. .flex-b {
  224. .flex {
  225. .text {
  226. font-size: 28rpx;
  227. color: #333;
  228. font-weight: 600;
  229. }
  230. .tag {
  231. margin-left: 10rpx;
  232. width: 110rpx;
  233. height: 44rpx;
  234. background: #FAF0E4;
  235. border-radius: 8rpx;
  236. font-size: 20rpx;
  237. color: #FA7919;
  238. line-height: 44rpx;
  239. text-align: center;
  240. }
  241. }
  242. .progBtn {
  243. width: 130rpx;
  244. height: 60rpx;
  245. background: rgba(25,137,250,0.1);
  246. border-radius: 8rpx;
  247. border: 2rpx solid #1989FA;
  248. font-size: 28rpx;
  249. color: $themC;
  250. line-height: 60rpx;
  251. text-align: center;
  252. }
  253. }
  254. }
  255. }
  256. }
  257. .ul {
  258. padding: 38rpx 0;
  259. display: flex;
  260. flex-wrap: wrap;
  261. width: 100%;
  262. .li {
  263. width: 25%;
  264. display: flex;
  265. flex-direction: column;
  266. align-items: center;
  267. margin: 24rpx 0;
  268. .icon {
  269. width: 68rpx;
  270. height: 68rpx;
  271. }
  272. .text {
  273. font-size: 28rpx;
  274. margin-top: 16rpx;
  275. color: #333;
  276. }
  277. }
  278. }
  279. .business {
  280. padding: 32rpx 0;
  281. .h1 {
  282. font-size: 32rpx;
  283. color: #333;
  284. font-weight: 500;
  285. position: relative;
  286. padding: 0 0 0 32rpx;
  287. margin-bottom: 24rpx;
  288. &::before {
  289. position: absolute;
  290. content: '';
  291. width: 8rpx;
  292. height: 32rpx;
  293. background: #1F6EFA;
  294. border-radius: 4rpx;
  295. top: 8rpx;
  296. left: 0;
  297. }
  298. }
  299. .card {
  300. width: 100%;
  301. height: 390rpx;
  302. background: #FFFFFF;
  303. border-radius: 16rpx;
  304. display: flex;
  305. flex-wrap: wrap;
  306. padding: 38rpx 0 0 0;
  307. .item {
  308. width: 33.33%;
  309. display: flex;
  310. flex-direction: column;
  311. align-items: center;
  312. height: 162rpx;
  313. .icon {
  314. width: 72rpx;
  315. height: 72rpx;
  316. background: #F6F7F8;
  317. border-radius: 50%;
  318. display: flex;
  319. align-items: center;
  320. justify-content: center;
  321. image {
  322. width: 48rpx;
  323. height: 48rpx;
  324. }
  325. }
  326. .text {
  327. margin-top: 16rpx;
  328. font-size: 28rpx;
  329. color: #333;
  330. }
  331. }
  332. }
  333. }
  334. }
  335. </style>