homePage.vue 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581
  1. <template>
  2. <view>
  3. <view class="navigation">
  4. <view class="title">
  5. 启航教培管家·家长端
  6. </view>
  7. <view class="identity">
  8. <view class="picture">
  9. <img src="../../../assets/img/photo@1x.png" alt="">
  10. </view>
  11. <view class="name">
  12. 周梓轩
  13. </view>
  14. <view class="icon">
  15. <img src="../../../assets/img/riLine-exchange-line@1x.png" alt="">
  16. </view>
  17. </view>
  18. </view>
  19. <view class="head">
  20. <view class="wrap">
  21. <u-swiper :list="list"></u-swiper>
  22. </view>
  23. </view>
  24. <view class="my-app">
  25. <view class="app-items">
  26. <view class="item" @click="gotoUrl('pages/parents/classSchedule/classSchedule')">
  27. <view class="icon-box"
  28. style="background: linear-gradient(180deg, rgba(89,222,232,1) 1%,rgba(13,186,199,1) 100%)">
  29. <img src="../../../assets/img/riFill-calendar-2-fill@1x.png" alt="">
  30. </view>
  31. <view class="text">
  32. 课程表
  33. </view>
  34. </view>
  35. <view class="item">
  36. <view class="icon-box"
  37. style="background: linear-gradient(180deg, rgba(169,147,255,1) 1%,rgba(129,97,255,1) 100%);">
  38. <img src="../../../assets/img/riFill-quill-pen-fill@1x.png" alt="">
  39. </view>
  40. <view class="text">
  41. 请假
  42. </view>
  43. </view>
  44. <view class="item">
  45. <view class="icon-box"
  46. style="background: linear-gradient(180deg, rgba(91,160,242,1) 1%,rgba(26,118,226,1) 100%);">
  47. <img src="../../../assets/img/riFill-calendar-2-fill@1x.png" alt="">
  48. </view>
  49. <view class="text">
  50. 机构报名
  51. </view>
  52. </view>
  53. <view class="item">
  54. <view class="icon-box"
  55. style="background: linear-gradient(180deg, rgba(255,189,96,1) 1%,rgba(255,150,0,1) 100%);">
  56. <img src="../../../assets/img/riFill-folder-user-fill@1x(1).png" alt="">
  57. </view>
  58. <view class="text">
  59. 学员文件
  60. </view>
  61. </view>
  62. <view class="item">
  63. <view class="icon-box"
  64. style="background: linear-gradient(180deg, rgba(169,147,255,1) 1%,rgba(129,97,255,1) 100%);">
  65. <img src="../../../assets/img/riFill-bank-card-fill@1x.png" alt="">
  66. </view>
  67. <view class="text">
  68. 缴费记录
  69. </view>
  70. </view>
  71. <view class="item">
  72. <view class="icon-box"
  73. style="background: linear-gradient(180deg, rgba(255,189,96,1) 1%,rgba(255,150,0,1) 100%);">
  74. <img src="../../../assets/img/riFill-file-edit-fill@1x.png" alt="">
  75. </view>
  76. <view class="text">
  77. 签到记录
  78. </view>
  79. </view>
  80. <view class="item">
  81. <view class="icon-box"
  82. style="background: linear-gradient(180deg, rgba(89,222,232,1) 1%,rgba(13,186,199,1) 100%);">
  83. <img src="../../../assets/img/riFill-file-edit-fill@1x.png" alt="">
  84. </view>
  85. <view class="text">
  86. 测温记录
  87. </view>
  88. </view>
  89. <view class="item">
  90. <view class="icon-box"
  91. style="background: linear-gradient(180deg, rgba(91,160,242,1) 1%,rgba(26,118,226,1) 100%);">
  92. <img src="../../../assets/img/riFill-file-edit-fill@1x.png" alt="">
  93. </view>
  94. <view class="text">
  95. 校长信箱
  96. </view>
  97. </view>
  98. </view>
  99. </view>
  100. <!-- 最近课程 -->
  101. <view class="course">
  102. <view class="title">
  103. <img src="../../../assets/img/riFill-calendar-todo-fill@1x.png" alt="">最近课程
  104. </view>
  105. <view class="course-infos">
  106. <view class="info-box" @click="gotoUrl('pages/teacher/callNames/classCall')">
  107. <view class="position today">
  108. </view>
  109. <view class="class-name">
  110. 周开琴书法班1
  111. </view>
  112. <view class="location-time">
  113. <view class="location">
  114. 4楼6教室
  115. </view>
  116. <view class="time">
  117. 09:30-10:45
  118. </view>
  119. </view>
  120. <view class="date">
  121. 2023.1.3
  122. </view>
  123. </view>
  124. <view class="info-box info-box2">
  125. <view class="position tomorrow">
  126. </view>
  127. <view class="class-name">
  128. 周开琴书法班2
  129. </view>
  130. <view class="location-time">
  131. <view class="location">
  132. 4楼6教室
  133. </view>
  134. <view class="time">
  135. 09:30-10:45
  136. </view>
  137. </view>
  138. <view class="date">
  139. 2023.1.4
  140. </view>
  141. </view>
  142. </view>
  143. </view>
  144. <!-- 课程推荐 -->
  145. <view class="recommend">
  146. <view class="title">
  147. <view class="title">
  148. <img src="../../../assets/img/riFill-award-fill@1x.png" alt="">最近课程
  149. </view>
  150. </view>
  151. <view class="classify">
  152. <view class="item chosen">
  153. 全部
  154. </view>
  155. <view class="item">
  156. 精品试听
  157. </view>
  158. <view class="item">
  159. 为您优选
  160. </view>
  161. <view class="item">
  162. 机构推荐
  163. </view>
  164. </view>
  165. <view class="infos-box">
  166. <view class="picture">
  167. <img src="../../../assets/img/classify1.png" alt="">
  168. </view>
  169. <view class="infos">
  170. <view class="name">
  171. 魔方记忆力
  172. </view>
  173. <view class="tips">
  174. <view class="item">
  175. 基础入门
  176. </view>
  177. <view class="item">
  178. 思维训练
  179. </view>
  180. </view>
  181. <view class="teacher-price">
  182. <view class="teacher">
  183. <view class="photo">
  184. <img src="../../../assets/img/teacher.png" alt="">
  185. </view>
  186. <view class="name">
  187. 鲁老师
  188. </view>
  189. </view>
  190. <view class="price">
  191. 低至30元/课
  192. </view>
  193. </view>
  194. </view>
  195. </view>
  196. <view class="infos-box">
  197. <view class="picture">
  198. <img src="../../../assets/img/classify1.png" alt="">
  199. </view>
  200. <view class="infos">
  201. <view class="name">
  202. 跆拳道
  203. </view>
  204. <view class="tips">
  205. <view class="item">
  206. 强身健体
  207. </view>
  208. <view class="item">
  209. 磨练意志
  210. </view>
  211. </view>
  212. <view class="teacher-price">
  213. <view class="teacher">
  214. <view class="photo">
  215. <img src="../../../assets/img/teacher.png" alt="">
  216. </view>
  217. <view class="name">
  218. 鲁老师
  219. </view>
  220. </view>
  221. <view class="price">
  222. 低至30元/课
  223. </view>
  224. </view>
  225. </view>
  226. </view>
  227. <view class="infos-box">
  228. <view class="picture">
  229. <img src="../../../assets/img/classify1.png" alt="">
  230. </view>
  231. <view class="infos">
  232. <view class="name">
  233. 中国舞十级班
  234. </view>
  235. <view class="tips">
  236. <view class="item">
  237. 专业考证
  238. </view>
  239. <view class="item">
  240. 限时报名
  241. </view>
  242. </view>
  243. <view class="teacher-price">
  244. <view class="teacher">
  245. <view class="photo">
  246. <img src="../../../assets/img/teacher.png" alt="">
  247. </view>
  248. <view class="name">
  249. 鲁老师
  250. </view>
  251. </view>
  252. <view class="price">
  253. 低至30元/课
  254. </view>
  255. </view>
  256. </view>
  257. </view>
  258. <u-divider>没有更多了</u-divider>
  259. </view>
  260. <ParentsTabbar :current="0" ref="tabbarMain"></ParentsTabbar>
  261. </view>
  262. </template>
  263. <script>
  264. import ParentsTabbar from '@/components/ParentsTabbar.vue'
  265. export default {
  266. components: {
  267. ParentsTabbar
  268. },
  269. data() {
  270. return {
  271. list: [{
  272. image: 'https://cdn.uviewui.com/uview/swiper/1.jpg',
  273. }, ],
  274. }
  275. },
  276. methods: {
  277. }
  278. }
  279. </script>
  280. <style lang="scss" scoped>
  281. page{
  282. padding-bottom: 100px;
  283. }
  284. .navigation {
  285. display: flex;
  286. justify-content: space-between;
  287. height: 44px;
  288. background-color: rgba(13, 186, 199, 1);
  289. padding: 0 16px;
  290. .title{
  291. line-height: 44px;
  292. color: #ffffff;
  293. font-size: 20px
  294. }
  295. .identity{
  296. display: flex;
  297. align-items:center;
  298. .picture{
  299. width: 24px;
  300. height: 24px;
  301. border-radius: 50px;
  302. overflow: hidden;
  303. margin-right: 4px;
  304. img{
  305. width: 100%;
  306. height: 100%;
  307. vertical-align: middle;
  308. }
  309. }
  310. .name{
  311. margin-right: 4px;
  312. color: rgba(255, 255, 255, 1);
  313. }
  314. .icon{
  315. img{
  316. vertical-align: middle;
  317. }
  318. }
  319. }
  320. }
  321. .head {
  322. background: linear-gradient(179.89deg, rgba(13, 186, 199, 1) 61.7%, rgba(244, 246, 246, 1) 97.7%);
  323. padding-bottom: 100px;
  324. .wrap {
  325. padding: 16px;
  326. }
  327. }
  328. .my-app {
  329. margin: -100px 16px 16px 16px;
  330. border-radius: 12px 12px 0px 0px;
  331. padding: 16px;
  332. background-color: #fff;
  333. .app-items {
  334. display: flex;
  335. flex-wrap: wrap;
  336. .item {
  337. width: 25%;
  338. display: flex;
  339. flex-direction: column;
  340. align-items: center;
  341. margin-bottom: 40rpx;
  342. .icon-box {
  343. width: 40px;
  344. height: 40px;
  345. text-align: center;
  346. border-radius: 8px;
  347. position: relative;
  348. .count {
  349. width: 28px;
  350. height: 16px;
  351. line-height: 16px;
  352. border-radius: 50px;
  353. background-color: rgba(238, 49, 56, 1);
  354. color: rgba(255, 255, 255, 1);
  355. font-size: 10px;
  356. text-align: center;
  357. position: absolute;
  358. top: -16rpx;
  359. right: -28rpx;
  360. }
  361. img {
  362. margin: 8px 0;
  363. }
  364. }
  365. .text {
  366. margin-top: 16rpx;
  367. }
  368. }
  369. }
  370. }
  371. // 最近课程
  372. .course {
  373. margin: auto;
  374. margin-top: 16px;
  375. width: 91.4%;
  376. .title {
  377. height: 20px;
  378. line-height: 20px;
  379. margin-bottom: 14px;
  380. color: #333333;
  381. font-weight: bold;
  382. img {
  383. vertical-align: middle;
  384. margin-right: 8px;
  385. }
  386. }
  387. .course-infos {
  388. display: flex;
  389. justify-content: space-between;
  390. .info-box {
  391. border-top: 2px solid #0DBAC7;
  392. background: linear-gradient(to right, #E4F8E3, #dcf5f6);
  393. width: 47.8%;
  394. padding: 24rpx 0 14rpx 24rpx;
  395. box-shadow: 2px 2px 2px 2px #e7e9e9;
  396. border-radius: 8px;
  397. position: relative;
  398. .position {
  399. width: 48rpx;
  400. height: 40rpx;
  401. line-height: 40rpx;
  402. position: absolute;
  403. top: 0;
  404. right: 16rpx;
  405. text-align: center;
  406. border-radius: 0px 0px 4px 4px;
  407. font-size: 12px;
  408. color: #fff;
  409. }
  410. .today {
  411. background-color: #0DBAC7;
  412. }
  413. .tomorrow {
  414. background-color: #0086FF;
  415. }
  416. .class-name {
  417. height: 20px;
  418. color: rgba(51, 51, 51, 1);
  419. font-size: 14px;
  420. }
  421. .location-time {
  422. margin-top: 8rpx;
  423. display: flex;
  424. justify-content: start;
  425. color: rgba(119, 119, 119, 1);
  426. font-size: 12px;
  427. .time {
  428. margin-left: 8rpx;
  429. }
  430. }
  431. .date {
  432. color: rgba(119, 119, 119, 1);
  433. font-size: 12px;
  434. margin-top: 8rpx;
  435. }
  436. }
  437. .info-box2 {
  438. border-top: 2px solid #0086FF;
  439. }
  440. }
  441. }
  442. .recommend{
  443. margin:32px 16px ;
  444. .title {
  445. height: 20px;
  446. line-height: 20px;
  447. margin-bottom: 14px;
  448. color: #333333;
  449. font-weight: bold;
  450. img {
  451. vertical-align: middle;
  452. margin-right: 8px;
  453. }
  454. }
  455. .classify{
  456. display: flex;
  457. margin-bottom: 24px;
  458. .item{
  459. border-radius: 12px;
  460. line-height: 32px;
  461. background-color: rgba(255, 255, 255, 1);
  462. color: rgba(119, 119, 119, 1);
  463. text-align: center;
  464. border: 1px solid rgba(204, 204, 204, 1);
  465. padding: 0 8px;
  466. margin-left: 12px;
  467. }
  468. .chosen{
  469. border: 1px solid rgba(13, 186, 199, 1);
  470. color: rgba(13, 186, 199, 1);
  471. }
  472. }
  473. .infos-box{
  474. border-radius: 12px;
  475. background-color: rgba(255, 255, 255, 1);
  476. padding: 12px;
  477. margin-bottom: 12px;
  478. display: flex;
  479. .picture{
  480. width: 200rpx;
  481. height: 200rpx;
  482. border-radius: 4px;
  483. overflow: hidden;
  484. img{
  485. width: 100%;
  486. height: 100%;
  487. }
  488. }
  489. .infos{
  490. flex: 1;
  491. margin-left: 12px;
  492. .name{
  493. color: rgba(51, 51, 51, 1);
  494. font-size: 16px;
  495. }
  496. .tips{
  497. display: flex;
  498. margin-top: 8px;
  499. .item{
  500. padding: 0 8px;
  501. line-height: 20px;
  502. border-radius: 4px;
  503. background-color: rgba(241, 243, 244, 1);
  504. color: rgba(16, 16, 16, 1);
  505. font-size: 12px;
  506. margin-right: 8px;
  507. }
  508. }
  509. .teacher-price{
  510. margin-top: 44rpx;
  511. display: flex;
  512. justify-content: space-between;
  513. align-items: center;
  514. .teacher{
  515. display: flex;
  516. align-items: center;
  517. .photo{
  518. width: 32px;
  519. height: 32px;
  520. border-radius: 50px;
  521. overflow: hidden;
  522. margin-right: 8px;
  523. img{
  524. width: 100%;
  525. height: 100%;
  526. }
  527. }
  528. }
  529. .price{
  530. color: rgba(255, 61, 0, 1);
  531. }
  532. }
  533. }
  534. }
  535. }
  536. </style>