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

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