home.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867
  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. this.initList();
  246. this.advertisingList();
  247. this.initCateList();
  248. this.triggered = false
  249. },
  250. restore(){
  251. this.triggered = false
  252. },
  253. init() {
  254. if (!this.$method.isLogin()) {
  255. //未登录
  256. this.date_num = [];
  257. this.workList = [];
  258. this.initDay();
  259. } else {
  260. this.date_num = [];
  261. this.workList = [];
  262. this.userPlanSeven();
  263. }
  264. },
  265. initDay() {
  266. // d是当前星期一的日期对象
  267. var d = this.getMonDate();
  268. var arr = [];
  269. let date = new Date();
  270. let num = date.getDate();
  271. for (var i = 0; i < 7; i++) {
  272. let item = { date: d.getDate() };
  273. item.color = 0;
  274. if (d.getDate() == num) {
  275. item.color = 3;
  276. }
  277. this.date_num.push(item);
  278. d.setDate(d.getDate() + 1);
  279. }
  280. },
  281. preveItem() {
  282. if (this.courseIndex > 0) {
  283. this.courseIndex = this.courseIndex - 1;
  284. this.courseItem = this.workList[this.courseIndex];
  285. }
  286. },
  287. nextItem() {
  288. if (this.courseIndex < this.workList.length - 1) {
  289. this.courseIndex = this.courseIndex + 1;
  290. this.courseItem = this.workList[this.courseIndex];
  291. }
  292. },
  293. jumpCourseDetail() {
  294. this.$navTo.togo('/pages2/course/detail', {
  295. id: this.courseItem.courseId
  296. });
  297. },
  298. noticeBar(index) {
  299. let item = this.workList[index];
  300. this.$navTo.togo('/pages2/course/detail', {
  301. id: item.courseId
  302. });
  303. },
  304. userPlanSeven() {
  305. let self = this;
  306. this.$api.userPlanSeven().then(result => {
  307. console.log(result, 9889);
  308. if (result.data.data.coursePlanVo != null) {
  309. self.workList = result.data.data.coursePlanVo;
  310. if (self.workList != null && self.workList.length > 0) {
  311. self.courseItem = self.workList[self.courseIndex];
  312. }
  313. let date = new Date();
  314. let num = date.getDate();
  315. let month = date.getMonth() + 1;
  316. let list = [];
  317. for (let i = 0; i < result.data.data.calendarStudyVo.length; i++) {
  318. let item = result.data.data.calendarStudyVo[i];
  319. if (item.month == month) {
  320. list = item.dayStudyList;
  321. }
  322. }
  323. for (let i = 0; i < list.length; i++) {
  324. let item = list[i];
  325. item.color = 0;
  326. if (item.date == num) {
  327. item.color = 3;
  328. }
  329. if (item.perform == 1) {
  330. item.color = 1;
  331. }
  332. if (item.perform == 2) {
  333. item.color = 2;
  334. }
  335. item.note = item.studyCourseKnob;
  336. if (item.note > 0) {
  337. item.dot = true;
  338. }
  339. self.date_num.push(item);
  340. }
  341. } else {
  342. self.initDay();
  343. }
  344. });
  345. },
  346. getMonDate() {
  347. var d = new Date(),
  348. day = d.getDay(),
  349. date = d.getDate();
  350. if (day == 0) return d;
  351. else d.setDate(date - day);
  352. return d;
  353. },
  354. swiperClick(index) {
  355. let item = this.list[index];
  356. uni.navigateTo({
  357. url: item.jumpUrl
  358. });
  359. },
  360. advertisingList() {
  361. let self = this;
  362. this.$api.advertisingList().then(res => {
  363. let index;
  364. for (index in res.data.rows) {
  365. res.data.rows[index].image = self.$method.splitImgHost(res.data.rows[index].adverUrl,true,500);
  366. }
  367. self.list = res.data.rows.filter((item,index) => {
  368. return item.type === 1
  369. });
  370. });
  371. },
  372. initList() {
  373. this.paramList[0].pageNum = 1
  374. this.paramList[1].pageNum = 1
  375. this.paramList[2].pageNum = 1
  376. this.list1 = []
  377. this.list2 = []
  378. this.list3 = []
  379. this.courseList();
  380. this.bankList();
  381. this.noteList();
  382. },
  383. scroll(e) {},
  384. scrollTolower() {
  385. if (this.current == 0) {
  386. if (this.list1.length < this.paramList[0].total) {
  387. this.paramList[0].pageNum++;
  388. this.courseList();
  389. }
  390. }
  391. if (this.current == 1) {
  392. if (this.list1.length < this.paramList[1].total) {
  393. this.paramList[1].pageNum++;
  394. this.bankList();
  395. }
  396. }
  397. if (this.current == 2) {
  398. if (this.list1.length < this.paramList[2].total) {
  399. this.paramList[2].pageNum++;
  400. this.noteList();
  401. }
  402. }
  403. },
  404. sectionChange(index) {
  405. this.current = index;
  406. },
  407. //课程
  408. courseList() {
  409. var self = this;
  410. var param = this.paramList[0];
  411. this.$api.courselist(param).then(res => {
  412. self.paramList[0].total = res.data.total;
  413. self.list1.push.apply(self.list1, res.data.rows);
  414. if (self.list1.length === res.data.total) {
  415. self.paramList[0].showStatus = true;
  416. }
  417. });
  418. },
  419. //题库
  420. bankList() {
  421. var self = this;
  422. var param = this.paramList[1];
  423. this.$api.banklist(param).then(res => {
  424. self.paramList[1].total = res.data.total;
  425. self.list2.push.apply(self.list2, res.data.rows);
  426. if (self.list2.length === res.data.total) {
  427. self.paramList[1].showStatus = true;
  428. }
  429. });
  430. },
  431. //考试重点
  432. noteList() {
  433. var self = this;
  434. var param = this.paramList[2];
  435. this.$api.notelist(param).then(res => {
  436. self.paramList[2].total = res.data.total;
  437. self.list3.push.apply(self.list3, res.data.rows);
  438. if (self.list3.length === res.data.total) {
  439. self.paramList[2].showStatus = true;
  440. }
  441. });
  442. },
  443. jumpDetail(item) {
  444. if (this.current == 0) {
  445. this.$navTo.togo('/pages2/course/detail', {
  446. id: item.courseId
  447. });
  448. return;
  449. }
  450. if (this.current == 1) {
  451. this.$navTo.togo('/pages2/bank/detail', {
  452. id: item.bankId
  453. });
  454. return;
  455. }
  456. if (this.current == 2) {
  457. this.$navTo.togo('/pages2/course/keynote', {
  458. id: item.fileId
  459. });
  460. return;
  461. }
  462. },
  463. jumpPlan() {
  464. if (!this.$method.isLogin()) {
  465. this.$navTo.togo('/pages/login/login');
  466. } else {
  467. this.$navTo.togo('/pages2/plan/detail', {});
  468. }
  469. },
  470. jumpSearch() {
  471. this.$navTo.togo('/pages2/index/search', {});
  472. },
  473. initCateList() {
  474. this.$api.coursecategorylist().then(res => {
  475. if (res.data.code === 200) {
  476. this.cateList = res.data.rows;
  477. this.cateChild1 = res.data.rows.filter((item, index) => {
  478. return item.pid === 0;
  479. });
  480. if (this.cateChild1.length > 0) {
  481. this.cateChild1.unshift({
  482. categoryName: '全部',
  483. categoryId: 0
  484. });
  485. }
  486. }
  487. });
  488. },
  489. active1(options) {
  490. this.cateActiveIndex1 = options.categoryId
  491. this.cateActiveIndex2 = 0
  492. this.cateChild2 = this.cateList.filter((item, index) => {
  493. return item.pid === options.categoryId;
  494. });
  495. if (this.cateChild2.length > 0) {
  496. this.cateChild2.unshift({
  497. categoryName: '全部',
  498. categoryId: 0
  499. });
  500. }
  501. },
  502. active2(options) {
  503. this.cateActiveIndex2 = options.categoryId
  504. this.cateActiveIndex3 = 0
  505. this.cateChild3 = this.cateList.filter((item, index) => {
  506. return item.pid === options.categoryId;
  507. });
  508. if (this.cateChild3.length > 0) {
  509. this.cateChild3.unshift({
  510. categoryName: '全部',
  511. categoryId: 0
  512. });
  513. }
  514. },
  515. active3(options) {
  516. this.cateActiveIndex3 = options.categoryId
  517. // this.cateChild2 = this.cateList.filter((item,index) => {
  518. // return item.pid === options.categoryId
  519. // })
  520. },
  521. activeAll(int) {
  522. if (int === 1) {
  523. this.cateActiveIndex1 = 0
  524. this.cateChild2 = [];
  525. }
  526. if (int === 2) {
  527. this.cateActiveIndex2 = 0
  528. this.cateChild3 = [];
  529. }
  530. if (int === 3) {
  531. this.cateActiveIndex3 = 0
  532. // this.cateChild2 = []
  533. }
  534. },
  535. initLists(){
  536. this.paramList[0].categoryId = ''
  537. this.paramList[1].categoryId = ''
  538. this.paramList[2].categoryId = ''
  539. this.cateChild2 = []
  540. this.cateChild3 = []
  541. this.cateActiveIndex1 = 0
  542. this.cateActiveIndex2 = null
  543. this.cateActiveIndex3 = null
  544. this.alint()
  545. this.show = false
  546. },
  547. searchPageInfos(){
  548. if(this.cateActiveIndex1 === null || this.cateActiveIndex1 === 0){
  549. this.paramList[0].categoryId = ''
  550. this.show = false
  551. this.alint()
  552. }else{
  553. if(this.cateActiveIndex2 === 0 || this.cateActiveIndex2 === null){
  554. this.paramList[0].categoryId = this.cateActiveIndex1
  555. this.paramList[1].categoryId = this.cateActiveIndex1
  556. this.paramList[2].categoryId = this.cateActiveIndex1
  557. this.show = false
  558. this.alint()
  559. }else{
  560. if(this.cateActiveIndex3 === 0 || this.cateActiveIndex3 === null){
  561. this.paramList[0].categoryId = this.cateActiveIndex2
  562. this.paramList[1].categoryId = this.cateActiveIndex2
  563. this.paramList[2].categoryId = this.cateActiveIndex2
  564. this.show = false
  565. this.alint()
  566. }else{
  567. this.paramList[0].categoryId = this.cateActiveIndex3
  568. this.paramList[1].categoryId = this.cateActiveIndex3
  569. this.paramList[2].categoryId = this.cateActiveIndex3
  570. this.show = false
  571. this.alint()
  572. }
  573. }
  574. }
  575. },
  576. alint(){
  577. this.courseListint()
  578. this.bankListint()
  579. this.noteListint()
  580. },
  581. //课程
  582. courseListint() {
  583. var self = this;
  584. var param = this.paramList[0];
  585. this.$api.courselist(param).then(res => {
  586. self.paramList[0].total = res.data.total;
  587. self.list1 = res.data.rows
  588. if (self.list1.length === res.data.total) {
  589. self.paramList[0].showStatus = true;
  590. }
  591. });
  592. },
  593. //题库
  594. bankListint() {
  595. var self = this;
  596. var param = this.paramList[1];
  597. this.$api.banklist(param).then(res => {
  598. self.paramList[1].total = res.data.total;
  599. self.list2 = res.data.rows
  600. if (self.list2.length === res.data.total) {
  601. self.paramList[1].showStatus = true;
  602. }
  603. });
  604. },
  605. //考试重点
  606. noteListint() {
  607. var self = this;
  608. var param = this.paramList[2];
  609. this.$api.notelist(param).then(res => {
  610. self.paramList[2].total = res.data.total;
  611. self.list3 = res.data.rows
  612. if (self.list3.length === res.data.total) {
  613. self.paramList[2].showStatus = true;
  614. }
  615. });
  616. },
  617. }
  618. };
  619. </script>
  620. <style scoped>
  621. .search {
  622. width: 40rpx;
  623. height: 40rpx;
  624. margin-left: 30rpx;
  625. }
  626. .slot-wrap {
  627. display: flex;
  628. align-items: center;
  629. }
  630. .popup_t1 {
  631. padding-left: 35rpx;
  632. border-bottom: 1rpx solid #eee;
  633. height: 57rpx;
  634. margin-top: 86rpx;
  635. font-weight: bold;
  636. color: #131b31;
  637. font-size: 30rpx;
  638. }
  639. .price {
  640. font-size: 20rpx;
  641. font-family: PingFang SC;
  642. font-weight: bold;
  643. color: #ff0000;
  644. margin-top: 8rpx;
  645. }
  646. .old_price {
  647. font-size: 24rpx;
  648. font-family: PingFang SC;
  649. font-weight: bold;
  650. text-decoration: line-through;
  651. color: #999999;
  652. margin-top: 8rpx;
  653. }
  654. .list_title {
  655. font-size: 24rpx;
  656. font-family: PingFang SC;
  657. font-weight: bold;
  658. color: #2f4379;
  659. }
  660. .list_content {
  661. width: 656rpx;
  662. height: 134rpx;
  663. background: #ffffff;
  664. box-shadow: 0rpx 0rpx 16rpx 4rpx rgba(47, 67, 121, 0.1);
  665. border-radius: 24rpx;
  666. position: absolute;
  667. top: 20rpx;
  668. left: 20rpx;
  669. }
  670. .list_box {
  671. position: relative;
  672. width: 100%;
  673. margin-top: 30rpx;
  674. }
  675. .list_img {
  676. width: 278rpx;
  677. height: 134rpx;
  678. z-index: 100;
  679. position: relative;
  680. }
  681. .course_title {
  682. color: #2f4379;
  683. box-shadow: 0rpx 0rpx 9rpx 1rpx rgba(47, 67, 121, 0.1);
  684. border-radius: 28rpx;
  685. width: 100%;
  686. height: 48rpx;
  687. line-height: 48rpx;
  688. }
  689. .arr-icon {
  690. width: 40rpx;
  691. height: 40rpx;
  692. }
  693. .wrap {
  694. padding: 24rpx;
  695. }
  696. .u-row {
  697. margin: 40rpx 0;
  698. }
  699. .date_dot {
  700. width: 6rpx;
  701. height: 6rpx;
  702. background: #ffcc00;
  703. border-radius: 50%;
  704. margin: 0 auto;
  705. }
  706. .date_note {
  707. border-radius: 50%;
  708. width: 29rpx;
  709. height: 29rpx;
  710. border: 1px solid #ffcc00;
  711. font-size: 18rpx;
  712. color: #ffcc00;
  713. text-align: center;
  714. display: inline-block;
  715. position: absolute;
  716. top: -19rpx;
  717. right: 9rpx;
  718. }
  719. .circle_num {
  720. border-radius: 50%;
  721. width: 29rpx;
  722. height: 29rpx;
  723. border: 1px solid #ffcc00;
  724. font-size: 18rpx;
  725. color: #ffcc00;
  726. text-align: center;
  727. display: inline-block;
  728. margin: 5rpx;
  729. }
  730. .date_num {
  731. width: 14%;
  732. text-align: center;
  733. position: relative;
  734. display: inline-block;
  735. margin-top: 20rpx;
  736. }
  737. .date_num_color0 {
  738. color: #32467b;
  739. }
  740. .date_num_color1 {
  741. color: #34c759;
  742. }
  743. .date_num_color2 {
  744. color: #ff3b30;
  745. }
  746. .date_num_color3 {
  747. color: #ffffff;
  748. background-color: #ffcc00;
  749. border-radius: 50%;
  750. width: 40rpx;
  751. height: 40rpx;
  752. display: inline-block;
  753. }
  754. .card_date {
  755. width: 14%;
  756. text-align: center;
  757. color: #7f8caf;
  758. }
  759. page {
  760. background: #ffffff;
  761. font-size: 28rpx;
  762. }
  763. .calendar_card {
  764. width: 100%;
  765. background: #ffffff;
  766. box-shadow: 0rpx 0rpx 16rpx 4rpx rgba(47, 67, 121, 0.1);
  767. border-radius: 22rpx;
  768. margin-top: 25rpx;
  769. padding-bottom: 15rpx;
  770. }
  771. .box {
  772. margin: 30rpx;
  773. }
  774. .my_swiper {
  775. box-shadow: 0rpx 20rpx 16rpx 4rpx rgba(47, 67, 121, 0.08);
  776. border-radius: 25rpx;
  777. }
  778. .calendar_card .card_box {
  779. height: 60rpx;
  780. line-height: 60rpx;
  781. margin-left: 40rpx;
  782. }
  783. .calendar_card .t1 {
  784. color: #7f8caf;
  785. font-size: 24rpx;
  786. }
  787. .calendar_card .t2 {
  788. font-size: 24rpx;
  789. font-family: PingFang SC;
  790. font-weight: bold;
  791. color: #32467b;
  792. margin: 0 10rpx;
  793. }
  794. .calendar_card .t3 {
  795. font-size: 30rpx;
  796. font-weight: bold;
  797. color: #32467b;
  798. text-shadow: 0rpx 3rpx 3rpx rgba(0, 0, 0, 0.2);
  799. margin: 0 10rpx;
  800. }
  801. .img_more {
  802. width: 26rpx;
  803. height: 26rpx;
  804. }
  805. .flex-d {
  806. display: flex;
  807. flex-direction: column;
  808. justify-content: space-between;
  809. height: 100%;
  810. }
  811. .contentZ {
  812. flex: 1;
  813. overflow-y: auto;
  814. padding-left: 35rpx;
  815. display: flex;
  816. justify-content: space-around;
  817. }
  818. .contentZ::-webkit-scrollbar {
  819. display: none;
  820. }
  821. .fots {
  822. height: 100rpx;
  823. display: flex;
  824. align-items: center;
  825. justify-content: space-around;
  826. border-top: 1rpx solid #eee;
  827. }
  828. .leftBtns {
  829. font-size: 30rpx;
  830. color: #32467b;
  831. font-weight: 500;
  832. }
  833. .right_Btns {
  834. font-size: 30rpx;
  835. color: #fff;
  836. background-color: #32467b;
  837. border-radius: 24rpx;
  838. height: 60rpx;
  839. line-height: 60rpx;
  840. text-align: center;
  841. padding: 0rpx 23rpx;
  842. box-shadow: 0rpx 0rpx 16rpx 4rpx rgba(145, 156, 178, 0.1);
  843. }
  844. .lzs {
  845. width: 31%;
  846. margin: 0rpx 1%;
  847. max-width: 31%;
  848. }
  849. .tylsz{
  850. margin-top: 23rpx;
  851. color: #666;
  852. font-weight: 400;
  853. font-size: 24rpx;
  854. }
  855. .tylsz:first-child{
  856. text-align: center;
  857. }
  858. .activeStys{
  859. font-weight: bold;
  860. color: #32467B;
  861. }
  862. </style>