home.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870
  1. <template>
  2. <view>
  3. <view style="z-index: 999;">
  4. <u-navbar title="中正云学堂" :is-back="false">
  5. <view class="slot-wrap"><image src="/static/search.png" class="search" @click="jumpSearch"></image></view>
  6. </u-navbar>
  7. </view>
  8. <scroll-view scroll-y="true" @scroll="scroll" :style="'height: ' + windowHeight + 'px;'" @scrolltolower="scrollTolower" refresher-enabled @refresherpulling="pulling" @refresherrefresh="refresher" @refresherrestore="restore" :refresher-triggered="triggered">
  9. <view class="box">
  10. <view class="my_swiper"><u-swiper :list="list" @click="swiperClick" height="330" border-radius="25" mode="none"></u-swiper></view>
  11. <!-- 日历-->
  12. <view class="calendar_card">
  13. <view class="card_box">
  14. <u-row gutter="16">
  15. <u-col span="11" v-if="false">
  16. <view>
  17. <text class="t1">距离</text>
  18. <text class="t2">二级建造师</text>
  19. <text class="t1">考试</text>
  20. <text class="t3">365</text>
  21. <text class="t1">天,继续加油哦!</text>
  22. </view>
  23. </u-col>
  24. <u-col offset="11" span="1">
  25. <view @click="jumpPlan"><image src="/static/more.png" class="img_more"></image></view>
  26. </u-col>
  27. </u-row>
  28. </view>
  29. <u-line color="#EEEEEE" />
  30. <view style="width: 100%;display: flex;justify-content:center;margin-top: 20rpx;">
  31. <view v-for="(item, index) in date" :key="index" class="card_date">{{ item }}</view>
  32. </view>
  33. <view style="width: 100%;display: flex;justify-content:center;margin-top: 40rpx;">
  34. <view v-for="(item, index) in date_num" :key="index" class="date_num">
  35. <view v-if="item.color == 0" class="date_num_color0" v-show="item.date > 0">
  36. {{ item.date }}
  37. <view v-if="item.note > 0" class="date_note">{{ item.note }}</view>
  38. <view v-if="item.dot" class="date_dot"></view>
  39. </view>
  40. <view v-if="item.color == 1" class="date_num_color1">
  41. {{ item.date }}
  42. <view v-if="item.note > 0" class="date_note">{{ item.note }}</view>
  43. <view v-if="item.dot" class="date_dot"></view>
  44. </view>
  45. <view v-if="item.color == 2" class="date_num_color2">
  46. {{ item.date }}
  47. <view v-if="item.note > 0" class="date_note">{{ item.note }}</view>
  48. <view v-if="item.dot" class="date_dot"></view>
  49. </view>
  50. <view v-if="item.color == 3" class="date_num_color3">
  51. {{ item.date }}
  52. <view v-if="item.note > 0" class="date_note">{{ item.note }}</view>
  53. <view v-if="item.dot" class="date_dot"></view>
  54. </view>
  55. </view>
  56. </view>
  57. <view style="width: 100%;margin-top: 20rpx;" v-if="workList.length > 0">
  58. <u-row gutter="16">
  59. <u-col span="2" text-align="center">
  60. <view><image src="/static/left.png" class="arr-icon" @click="preveItem"></image></view>
  61. </u-col>
  62. <u-col span="8" text-align="center">
  63. <view class="course_title" @click="jumpCourseDetail()">{{ courseItem.courseName }}</view>
  64. </u-col>
  65. <u-col span="2" text-align="center">
  66. <view><image src="/static/right.png" class="arr-icon" @click="nextItem"></image></view>
  67. </u-col>
  68. </u-row>
  69. </view>
  70. </view>
  71. <!-- 筛选-->
  72. <view style="margin-top: 20rpx;">
  73. <u-row gutter="16">
  74. <u-col span="1">
  75. <view style="padding: 5rpx;"><image src="/static/select.png" class="arr-icon" @click="show = true"></image></view>
  76. </u-col>
  77. <u-col span="11">
  78. <view>
  79. <u-subsection
  80. @change="sectionChange"
  81. height="54"
  82. button-color="rgba(47,67,121,0.6)"
  83. bg-color="#F8F9FF"
  84. active-color="#FFFFFF"
  85. inactive-color="#636A75"
  86. :list="tab_list"
  87. :current="current"
  88. ></u-subsection>
  89. </view>
  90. </u-col>
  91. </u-row>
  92. </view>
  93. <!-- 课程列表-->
  94. <view v-if="current == 0">
  95. <view v-if="list1.length === 0">
  96. <u-empty margin-top="150" text="暂无课程" mode="data"></u-empty>
  97. </view>
  98. <view v-else @click="jumpDetail(item)" class="list_box" v-for="(item, index) in list1" :key="index">
  99. <image :src="$method.splitImgHost(item.coverUrl,true)" class="list_img"></image>
  100. <view class="list_content">
  101. <view style="margin-left: 280rpx;margin-top: 10rpx;">
  102. <view class="list_title">{{ item.courseName }}</view>
  103. <view class="old_price">原价:¥{{ item.price }}</view>
  104. <view class="price">现价:¥{{ item.price }}</view>
  105. </view>
  106. </view>
  107. </view>
  108. <u-divider v-if="paramList[0].showStatus && list1.length !== 0" margin-top="42">到底了</u-divider>
  109. <!-- <view v-if="paramList[0].showStatus && list1.length !== 0" style="text-align: center;margin-top: 24rpx;">到底啦~</view> -->
  110. </view>
  111. <!-- 题库列表-->
  112. <view v-if="current == 1">
  113. <view v-if="list2.length === 0">
  114. <u-empty margin-top="150" text="暂无题库" mode="data"></u-empty>
  115. </view>
  116. <view v-else @click="jumpDetail(item)" class="list_box" v-for="(item, index) in list2" :key="index">
  117. <image :src="$method.splitImgHost(item.coverUrl,true)" class="list_img"></image>
  118. <view class="list_content">
  119. <view style="margin-left: 280rpx;margin-top: 10rpx;">
  120. <view class="list_title">{{ item.bankName }}</view>
  121. <view class="old_price">原价:¥{{ item.price }}</view>
  122. <view class="price">现价:¥{{ item.price }}</view>
  123. </view>
  124. </view>
  125. </view>
  126. <u-divider v-if="paramList[1].showStatus && list2.length !== 0" margin-top="42">到底了</u-divider>
  127. <!-- <view v-if="paramList[1].showStatus && list2.length !== 0" style="text-align: center;margin-top: 24rpx;">到底啦~</view> -->
  128. </view>
  129. <!-- 重点列表-->
  130. <view v-if="current == 2">
  131. <view v-if="list3.length === 0">
  132. <u-empty margin-top="150" text="暂无重点考点" mode="data"></u-empty>
  133. </view>
  134. <view v-else @click="jumpDetail(item)" class="list_box" v-for="(item, index) in list3" :key="index">
  135. <image :src="$method.splitImgHost(item.coverUrl,true)" class="list_img"></image>
  136. <view class="list_content">
  137. <view style="margin-left: 280rpx;margin-top: 10rpx;">
  138. <view class="list_title">{{ item.name }}</view>
  139. <view class="old_price">原价:¥{{ item.price }}</view>
  140. <view class="price">现价:¥{{ item.price }}</view>
  141. </view>
  142. </view>
  143. </view>
  144. <u-divider v-if="paramList[2].showStatus && list3.length !== 0" margin-top="42">到底了</u-divider>
  145. <!-- <view v-if="paramList[2].showStatus && list3.length !== 0" style="text-align: center;margin-top: 24rpx;">到底啦~</view> -->
  146. </view>
  147. </view>
  148. </scroll-view>
  149. <u-popup v-model="show" border-radius="14">
  150. <view class="flex-d" style="width: 600rpx">
  151. <view class="popup_t1">选择你需要的</view>
  152. <view class="contentZ">
  153. <view class="lzs">
  154. <view class="tylsz" v-for="(item, index) in cateChild1" :key="index" @click="item.categoryId === 0 ? activeAll(1) : active1(item)" :class="item.categoryId === cateActiveIndex1 ? 'activeStys':''">{{ item.categoryName }}</view>
  155. </view>
  156. <view class="lzs">
  157. <view class="tylsz" v-for="(item, index) in cateChild2" :key="index" @click="item.categoryId === 0 ? activeAll(2) : active2(item)" :class="item.categoryId === cateActiveIndex2 ? 'activeStys':''">{{ item.categoryName }}</view>
  158. </view>
  159. <view class="lzs">
  160. <view class="tylsz" v-for="(item, index) in cateChild3" :key="index" @click="item.categoryId === 0 ? activeAll(3) : active3(item)" :class="item.categoryId === cateActiveIndex3 ? 'activeStys':''">{{ item.categoryName }}</view>
  161. </view>
  162. </view>
  163. <view class="fots">
  164. <view class="leftBtns" @click="initLists">重置筛选</view>
  165. <view class="right_Btns" @click="searchPageInfos">确定筛选</view>
  166. </view>
  167. </view>
  168. </u-popup>
  169. </view>
  170. </template>
  171. <script>
  172. export default {
  173. name: 'home',
  174. data() {
  175. return {
  176. triggered: false,
  177. courseItem: {},
  178. cateList: [],
  179. cateChild1: [],
  180. cateChild2: [],
  181. cateChild3: [],
  182. cateActiveIndex1:0,
  183. cateActiveIndex2:null,
  184. cateActiveIndex3:null,
  185. courseIndex: 0,
  186. vertical: 'vertical',
  187. workList: [],
  188. workTextList: [],
  189. show: false,
  190. tab_list: [
  191. {
  192. name: '课程'
  193. },
  194. {
  195. name: '刷题'
  196. },
  197. {
  198. name: '重点考点'
  199. }
  200. ],
  201. current: 0,
  202. list: [],
  203. paramList: [
  204. {
  205. pageNum: 1,
  206. pageSize: 10,
  207. total: 0,
  208. showStatus: 0
  209. },
  210. {
  211. pageNum: 1,
  212. pageSize: 10,
  213. total: 0,
  214. showStatus: 0
  215. },
  216. {
  217. pageNum: 1,
  218. pageSize: 10,
  219. total: 0,
  220. showStatus: 0
  221. }
  222. ],
  223. date: ['日', '一', '二', '三', '四', '五', '六'],
  224. date_num: [],
  225. list1: [],
  226. list2: [],
  227. list3: [],
  228. windowHeight: 0
  229. };
  230. },
  231. onLoad() {},
  232. created() {
  233. this.windowHeight = uni.getSystemInfoSync().windowHeight - 100;
  234. },
  235. mounted() {
  236. this.initList();
  237. this.advertisingList();
  238. this.initCateList();
  239. },
  240. methods: {
  241. pulling(){
  242. this.triggered = true
  243. },
  244. refresher(){
  245. let that = this
  246. this.initList();
  247. this.advertisingList();
  248. this.initCateList();
  249. setTimeout(function(){
  250. that.triggered = false
  251. },500)
  252. },
  253. restore(){
  254. this.triggered = false
  255. },
  256. init() {
  257. if (!this.$method.isLogin()) {
  258. //未登录
  259. this.date_num = [];
  260. this.workList = [];
  261. this.initDay();
  262. } else {
  263. this.date_num = [];
  264. this.workList = [];
  265. this.userPlanSeven();
  266. }
  267. },
  268. initDay() {
  269. // d是当前星期一的日期对象
  270. var d = this.getMonDate();
  271. var arr = [];
  272. let date = new Date();
  273. let num = date.getDate();
  274. for (var i = 0; i < 7; i++) {
  275. let item = { date: d.getDate() };
  276. item.color = 0;
  277. if (d.getDate() == num) {
  278. item.color = 3;
  279. }
  280. this.date_num.push(item);
  281. d.setDate(d.getDate() + 1);
  282. }
  283. },
  284. preveItem() {
  285. if (this.courseIndex > 0) {
  286. this.courseIndex = this.courseIndex - 1;
  287. this.courseItem = this.workList[this.courseIndex];
  288. }
  289. },
  290. nextItem() {
  291. if (this.courseIndex < this.workList.length - 1) {
  292. this.courseIndex = this.courseIndex + 1;
  293. this.courseItem = this.workList[this.courseIndex];
  294. }
  295. },
  296. jumpCourseDetail() {
  297. this.$navTo.togo('/pages2/course/detail', {
  298. id: this.courseItem.courseId
  299. });
  300. },
  301. noticeBar(index) {
  302. let item = this.workList[index];
  303. this.$navTo.togo('/pages2/course/detail', {
  304. id: item.courseId
  305. });
  306. },
  307. userPlanSeven() {
  308. let self = this;
  309. this.$api.userPlanSeven().then(result => {
  310. console.log(result, 9889);
  311. if (result.data.data.coursePlanVo != null) {
  312. self.workList = result.data.data.coursePlanVo;
  313. if (self.workList != null && self.workList.length > 0) {
  314. self.courseItem = self.workList[self.courseIndex];
  315. }
  316. let date = new Date();
  317. let num = date.getDate();
  318. let month = date.getMonth() + 1;
  319. let list = [];
  320. for (let i = 0; i < result.data.data.calendarStudyVo.length; i++) {
  321. let item = result.data.data.calendarStudyVo[i];
  322. if (item.month == month) {
  323. list = item.dayStudyList;
  324. }
  325. }
  326. for (let i = 0; i < list.length; i++) {
  327. let item = list[i];
  328. item.color = 0;
  329. if (item.date == num) {
  330. item.color = 3;
  331. }
  332. if (item.perform == 1) {
  333. item.color = 1;
  334. }
  335. if (item.perform == 2) {
  336. item.color = 2;
  337. }
  338. item.note = item.studyCourseKnob;
  339. if (item.note > 0) {
  340. item.dot = true;
  341. }
  342. self.date_num.push(item);
  343. }
  344. } else {
  345. self.initDay();
  346. }
  347. });
  348. },
  349. getMonDate() {
  350. var d = new Date(),
  351. day = d.getDay(),
  352. date = d.getDate();
  353. if (day == 0) return d;
  354. else d.setDate(date - day);
  355. return d;
  356. },
  357. swiperClick(index) {
  358. let item = this.list[index];
  359. uni.navigateTo({
  360. url: item.jumpUrl
  361. });
  362. },
  363. advertisingList() {
  364. let self = this;
  365. this.$api.advertisingList().then(res => {
  366. let index;
  367. for (index in res.data.rows) {
  368. res.data.rows[index].image = self.$method.splitImgHost(res.data.rows[index].adverUrl,true,500);
  369. }
  370. self.list = res.data.rows.filter((item,index) => {
  371. return item.type === 1
  372. });
  373. });
  374. },
  375. initList() {
  376. this.paramList[0].pageNum = 1
  377. this.paramList[1].pageNum = 1
  378. this.paramList[2].pageNum = 1
  379. this.list1 = []
  380. this.list2 = []
  381. this.list3 = []
  382. this.courseList();
  383. this.bankList();
  384. this.noteList();
  385. },
  386. scroll(e) {},
  387. scrollTolower() {
  388. if (this.current == 0) {
  389. if (this.list1.length < this.paramList[0].total) {
  390. this.paramList[0].pageNum++;
  391. this.courseList();
  392. }
  393. }
  394. if (this.current == 1) {
  395. if (this.list1.length < this.paramList[1].total) {
  396. this.paramList[1].pageNum++;
  397. this.bankList();
  398. }
  399. }
  400. if (this.current == 2) {
  401. if (this.list1.length < this.paramList[2].total) {
  402. this.paramList[2].pageNum++;
  403. this.noteList();
  404. }
  405. }
  406. },
  407. sectionChange(index) {
  408. this.current = index;
  409. },
  410. //课程
  411. courseList() {
  412. var self = this;
  413. var param = this.paramList[0];
  414. this.$api.courselist(param).then(res => {
  415. self.paramList[0].total = res.data.total;
  416. self.list1.push.apply(self.list1, res.data.rows);
  417. if (self.list1.length === res.data.total) {
  418. self.paramList[0].showStatus = true;
  419. }
  420. });
  421. },
  422. //题库
  423. bankList() {
  424. var self = this;
  425. var param = this.paramList[1];
  426. this.$api.banklist(param).then(res => {
  427. self.paramList[1].total = res.data.total;
  428. self.list2.push.apply(self.list2, res.data.rows);
  429. if (self.list2.length === res.data.total) {
  430. self.paramList[1].showStatus = true;
  431. }
  432. });
  433. },
  434. //考试重点
  435. noteList() {
  436. var self = this;
  437. var param = this.paramList[2];
  438. this.$api.notelist(param).then(res => {
  439. self.paramList[2].total = res.data.total;
  440. self.list3.push.apply(self.list3, res.data.rows);
  441. if (self.list3.length === res.data.total) {
  442. self.paramList[2].showStatus = true;
  443. }
  444. });
  445. },
  446. jumpDetail(item) {
  447. if (this.current == 0) {
  448. this.$navTo.togo('/pages2/course/detail', {
  449. id: item.courseId
  450. });
  451. return;
  452. }
  453. if (this.current == 1) {
  454. this.$navTo.togo('/pages2/bank/detail', {
  455. id: item.bankId
  456. });
  457. return;
  458. }
  459. if (this.current == 2) {
  460. this.$navTo.togo('/pages2/course/keynote', {
  461. id: item.fileId
  462. });
  463. return;
  464. }
  465. },
  466. jumpPlan() {
  467. if (!this.$method.isLogin()) {
  468. this.$navTo.togo('/pages/login/login');
  469. } else {
  470. this.$navTo.togo('/pages2/plan/detail', {});
  471. }
  472. },
  473. jumpSearch() {
  474. this.$navTo.togo('/pages2/index/search', {});
  475. },
  476. initCateList() {
  477. this.$api.coursecategorylist().then(res => {
  478. if (res.data.code === 200) {
  479. this.cateList = res.data.rows;
  480. this.cateChild1 = res.data.rows.filter((item, index) => {
  481. return item.pid === 0;
  482. });
  483. if (this.cateChild1.length > 0) {
  484. this.cateChild1.unshift({
  485. categoryName: '全部',
  486. categoryId: 0
  487. });
  488. }
  489. }
  490. });
  491. },
  492. active1(options) {
  493. this.cateActiveIndex1 = options.categoryId
  494. this.cateActiveIndex2 = 0
  495. this.cateChild2 = this.cateList.filter((item, index) => {
  496. return item.pid === options.categoryId;
  497. });
  498. if (this.cateChild2.length > 0) {
  499. this.cateChild2.unshift({
  500. categoryName: '全部',
  501. categoryId: 0
  502. });
  503. }
  504. },
  505. active2(options) {
  506. this.cateActiveIndex2 = options.categoryId
  507. this.cateActiveIndex3 = 0
  508. this.cateChild3 = this.cateList.filter((item, index) => {
  509. return item.pid === options.categoryId;
  510. });
  511. if (this.cateChild3.length > 0) {
  512. this.cateChild3.unshift({
  513. categoryName: '全部',
  514. categoryId: 0
  515. });
  516. }
  517. },
  518. active3(options) {
  519. this.cateActiveIndex3 = options.categoryId
  520. // this.cateChild2 = this.cateList.filter((item,index) => {
  521. // return item.pid === options.categoryId
  522. // })
  523. },
  524. activeAll(int) {
  525. if (int === 1) {
  526. this.cateActiveIndex1 = 0
  527. this.cateChild2 = [];
  528. }
  529. if (int === 2) {
  530. this.cateActiveIndex2 = 0
  531. this.cateChild3 = [];
  532. }
  533. if (int === 3) {
  534. this.cateActiveIndex3 = 0
  535. // this.cateChild2 = []
  536. }
  537. },
  538. initLists(){
  539. this.paramList[0].categoryId = ''
  540. this.paramList[1].categoryId = ''
  541. this.paramList[2].categoryId = ''
  542. this.cateChild2 = []
  543. this.cateChild3 = []
  544. this.cateActiveIndex1 = 0
  545. this.cateActiveIndex2 = null
  546. this.cateActiveIndex3 = null
  547. this.alint()
  548. this.show = false
  549. },
  550. searchPageInfos(){
  551. if(this.cateActiveIndex1 === null || this.cateActiveIndex1 === 0){
  552. this.paramList[0].categoryId = ''
  553. this.show = false
  554. this.alint()
  555. }else{
  556. if(this.cateActiveIndex2 === 0 || this.cateActiveIndex2 === null){
  557. this.paramList[0].categoryId = this.cateActiveIndex1
  558. this.paramList[1].categoryId = this.cateActiveIndex1
  559. this.paramList[2].categoryId = this.cateActiveIndex1
  560. this.show = false
  561. this.alint()
  562. }else{
  563. if(this.cateActiveIndex3 === 0 || this.cateActiveIndex3 === null){
  564. this.paramList[0].categoryId = this.cateActiveIndex2
  565. this.paramList[1].categoryId = this.cateActiveIndex2
  566. this.paramList[2].categoryId = this.cateActiveIndex2
  567. this.show = false
  568. this.alint()
  569. }else{
  570. this.paramList[0].categoryId = this.cateActiveIndex3
  571. this.paramList[1].categoryId = this.cateActiveIndex3
  572. this.paramList[2].categoryId = this.cateActiveIndex3
  573. this.show = false
  574. this.alint()
  575. }
  576. }
  577. }
  578. },
  579. alint(){
  580. this.courseListint()
  581. this.bankListint()
  582. this.noteListint()
  583. },
  584. //课程
  585. courseListint() {
  586. var self = this;
  587. var param = this.paramList[0];
  588. this.$api.courselist(param).then(res => {
  589. self.paramList[0].total = res.data.total;
  590. self.list1 = res.data.rows
  591. if (self.list1.length === res.data.total) {
  592. self.paramList[0].showStatus = true;
  593. }
  594. });
  595. },
  596. //题库
  597. bankListint() {
  598. var self = this;
  599. var param = this.paramList[1];
  600. this.$api.banklist(param).then(res => {
  601. self.paramList[1].total = res.data.total;
  602. self.list2 = res.data.rows
  603. if (self.list2.length === res.data.total) {
  604. self.paramList[1].showStatus = true;
  605. }
  606. });
  607. },
  608. //考试重点
  609. noteListint() {
  610. var self = this;
  611. var param = this.paramList[2];
  612. this.$api.notelist(param).then(res => {
  613. self.paramList[2].total = res.data.total;
  614. self.list3 = res.data.rows
  615. if (self.list3.length === res.data.total) {
  616. self.paramList[2].showStatus = true;
  617. }
  618. });
  619. },
  620. }
  621. };
  622. </script>
  623. <style scoped>
  624. .search {
  625. width: 40rpx;
  626. height: 40rpx;
  627. margin-left: 30rpx;
  628. }
  629. .slot-wrap {
  630. display: flex;
  631. align-items: center;
  632. }
  633. .popup_t1 {
  634. padding-left: 35rpx;
  635. border-bottom: 1rpx solid #eee;
  636. height: 57rpx;
  637. margin-top: 86rpx;
  638. font-weight: bold;
  639. color: #131b31;
  640. font-size: 30rpx;
  641. }
  642. .price {
  643. font-size: 20rpx;
  644. font-family: PingFang SC;
  645. font-weight: bold;
  646. color: #ff0000;
  647. margin-top: 8rpx;
  648. }
  649. .old_price {
  650. font-size: 24rpx;
  651. font-family: PingFang SC;
  652. font-weight: bold;
  653. text-decoration: line-through;
  654. color: #999999;
  655. margin-top: 8rpx;
  656. }
  657. .list_title {
  658. font-size: 24rpx;
  659. font-family: PingFang SC;
  660. font-weight: bold;
  661. color: #2f4379;
  662. }
  663. .list_content {
  664. width: 656rpx;
  665. height: 134rpx;
  666. background: #ffffff;
  667. box-shadow: 0rpx 0rpx 16rpx 4rpx rgba(47, 67, 121, 0.1);
  668. border-radius: 24rpx;
  669. position: absolute;
  670. top: 20rpx;
  671. left: 20rpx;
  672. }
  673. .list_box {
  674. position: relative;
  675. width: 100%;
  676. margin-top: 30rpx;
  677. }
  678. .list_img {
  679. width: 278rpx;
  680. height: 134rpx;
  681. z-index: 100;
  682. position: relative;
  683. }
  684. .course_title {
  685. color: #2f4379;
  686. box-shadow: 0rpx 0rpx 9rpx 1rpx rgba(47, 67, 121, 0.1);
  687. border-radius: 28rpx;
  688. width: 100%;
  689. height: 48rpx;
  690. line-height: 48rpx;
  691. }
  692. .arr-icon {
  693. width: 40rpx;
  694. height: 40rpx;
  695. }
  696. .wrap {
  697. padding: 24rpx;
  698. }
  699. .u-row {
  700. margin: 40rpx 0;
  701. }
  702. .date_dot {
  703. width: 6rpx;
  704. height: 6rpx;
  705. background: #ffcc00;
  706. border-radius: 50%;
  707. margin: 0 auto;
  708. }
  709. .date_note {
  710. border-radius: 50%;
  711. width: 29rpx;
  712. height: 29rpx;
  713. border: 1px solid #ffcc00;
  714. font-size: 18rpx;
  715. color: #ffcc00;
  716. text-align: center;
  717. display: inline-block;
  718. position: absolute;
  719. top: -19rpx;
  720. right: 9rpx;
  721. }
  722. .circle_num {
  723. border-radius: 50%;
  724. width: 29rpx;
  725. height: 29rpx;
  726. border: 1px solid #ffcc00;
  727. font-size: 18rpx;
  728. color: #ffcc00;
  729. text-align: center;
  730. display: inline-block;
  731. margin: 5rpx;
  732. }
  733. .date_num {
  734. width: 14%;
  735. text-align: center;
  736. position: relative;
  737. display: inline-block;
  738. margin-top: 20rpx;
  739. }
  740. .date_num_color0 {
  741. color: #32467b;
  742. }
  743. .date_num_color1 {
  744. color: #34c759;
  745. }
  746. .date_num_color2 {
  747. color: #ff3b30;
  748. }
  749. .date_num_color3 {
  750. color: #ffffff;
  751. background-color: #ffcc00;
  752. border-radius: 50%;
  753. width: 40rpx;
  754. height: 40rpx;
  755. display: inline-block;
  756. }
  757. .card_date {
  758. width: 14%;
  759. text-align: center;
  760. color: #7f8caf;
  761. }
  762. page {
  763. background: #ffffff;
  764. font-size: 28rpx;
  765. }
  766. .calendar_card {
  767. width: 100%;
  768. background: #ffffff;
  769. box-shadow: 0rpx 0rpx 16rpx 4rpx rgba(47, 67, 121, 0.1);
  770. border-radius: 22rpx;
  771. margin-top: 25rpx;
  772. padding-bottom: 15rpx;
  773. }
  774. .box {
  775. margin: 30rpx;
  776. }
  777. .my_swiper {
  778. box-shadow: 0rpx 20rpx 16rpx 4rpx rgba(47, 67, 121, 0.08);
  779. border-radius: 25rpx;
  780. }
  781. .calendar_card .card_box {
  782. height: 60rpx;
  783. line-height: 60rpx;
  784. margin-left: 40rpx;
  785. }
  786. .calendar_card .t1 {
  787. color: #7f8caf;
  788. font-size: 24rpx;
  789. }
  790. .calendar_card .t2 {
  791. font-size: 24rpx;
  792. font-family: PingFang SC;
  793. font-weight: bold;
  794. color: #32467b;
  795. margin: 0 10rpx;
  796. }
  797. .calendar_card .t3 {
  798. font-size: 30rpx;
  799. font-weight: bold;
  800. color: #32467b;
  801. text-shadow: 0rpx 3rpx 3rpx rgba(0, 0, 0, 0.2);
  802. margin: 0 10rpx;
  803. }
  804. .img_more {
  805. width: 26rpx;
  806. height: 26rpx;
  807. }
  808. .flex-d {
  809. display: flex;
  810. flex-direction: column;
  811. justify-content: space-between;
  812. height: 100%;
  813. }
  814. .contentZ {
  815. flex: 1;
  816. overflow-y: auto;
  817. padding-left: 35rpx;
  818. display: flex;
  819. justify-content: space-around;
  820. }
  821. .contentZ::-webkit-scrollbar {
  822. display: none;
  823. }
  824. .fots {
  825. height: 100rpx;
  826. display: flex;
  827. align-items: center;
  828. justify-content: space-around;
  829. border-top: 1rpx solid #eee;
  830. }
  831. .leftBtns {
  832. font-size: 30rpx;
  833. color: #32467b;
  834. font-weight: 500;
  835. }
  836. .right_Btns {
  837. font-size: 30rpx;
  838. color: #fff;
  839. background-color: #32467b;
  840. border-radius: 24rpx;
  841. height: 60rpx;
  842. line-height: 60rpx;
  843. text-align: center;
  844. padding: 0rpx 23rpx;
  845. box-shadow: 0rpx 0rpx 16rpx 4rpx rgba(145, 156, 178, 0.1);
  846. }
  847. .lzs {
  848. width: 31%;
  849. margin: 0rpx 1%;
  850. max-width: 31%;
  851. }
  852. .tylsz{
  853. margin-top: 23rpx;
  854. color: #666;
  855. font-weight: 400;
  856. font-size: 24rpx;
  857. }
  858. .tylsz:first-child{
  859. text-align: center;
  860. }
  861. .activeStys{
  862. font-weight: bold;
  863. color: #32467B;
  864. }
  865. </style>