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

351 lines
7.5 KiB

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