index.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898
  1. <template>
  2. <view class="index">
  3. <u-navbar :is-back="false" :border-bottom="false" title-color="#333333" back-icon-color="#ffffff">
  4. <view class="slot-wrap">
  5. <image src="/static/logo2.png"></image>
  6. </view>
  7. </u-navbar>
  8. <view class="swiper">
  9. <swiper :indicator-dots="false" indicator-color="#fff" indicator-active-color="#007AFF" :style="{'height':swiperHeight+'rpx'}" @change="swiperChange" :interval="interval" :duration="duration" :autoplay="autoplay" :circular="true">
  10. <swiper-item v-for="(swiper,index) in list" :key="index">
  11. <image @load="imageLoad" :src="$method.splitImgHost(swiper.adverUrl, true)" mode="widthFix"></image>
  12. </swiper-item>
  13. </swiper>
  14. <view class="dots">
  15. <view class="dot" :class="{'active':index == current}" v-for="(swiper,index) in list" :key="index"></view>
  16. </view>
  17. </view>
  18. <view class="content">
  19. <view class="notice" v-if="infoNums">
  20. <view class="notice__content">
  21. <image src="/static/icon/msg_icon1.png" class="icon"></image>
  22. <view class="text">
  23. 您有{{infoNums}}条新的通知
  24. </view>
  25. <view class="btn" @click="jumpPage">立即查看</view>
  26. </view>
  27. </view>
  28. <view>
  29. <!-- 日历-->
  30. <view class="calendar_card">
  31. <view class="card_box">
  32. <u-row gutter="16">
  33. <u-col span="11" v-if="false">
  34. <view>
  35. <text class="t1">距离</text>
  36. <text class="t2">二级建造师</text>
  37. <text class="t1">考试</text>
  38. <text class="t3">365</text>
  39. <text class="t1">天,继续加油哦!</text>
  40. </view>
  41. </u-col>
  42. <u-col offset="11" span="1">
  43. <view @click="jumpPlan"><image src="/static/more.png" class="img_more"></image></view>
  44. </u-col>
  45. </u-row>
  46. </view>
  47. <u-line color="#EEEEEE" />
  48. <view style="width: 100%;display: flex;justify-content:center;margin-top: 20rpx;">
  49. <view v-for="(item, index) in date" :key="index" class="card_date">{{ item }}</view>
  50. </view>
  51. <view style="width: 100%;display: flex;justify-content:center;margin-top: 40rpx;">
  52. <view v-for="(item, index) in date_num" :key="index" class="date_num">
  53. <view v-if="item.color == 0" class="date_num_color0" v-show="item.date > 0">
  54. {{ item.date }}
  55. <view v-if="item.note > 0" class="date_note">{{ item.note }}</view>
  56. <view v-if="item.dot" class="date_dot"></view>
  57. </view>
  58. <view v-if="item.color == 1" class="date_num_color1">
  59. {{ item.date }}
  60. <view v-if="item.note > 0" class="date_note">{{ item.note }}</view>
  61. <view v-if="item.dot" class="date_dot"></view>
  62. </view>
  63. <view v-if="item.color == 2" class="date_num_color2">
  64. {{ item.date }}
  65. <view v-if="item.note > 0" class="date_note">{{ item.note }}</view>
  66. <view v-if="item.dot" class="date_dot"></view>
  67. </view>
  68. <view v-if="item.color == 3" class="date_num_color3">
  69. {{ item.date }}
  70. <view v-if="item.note > 0" class="date_note">{{ item.note }}</view>
  71. <view v-if="item.dot" class="date_dot"></view>
  72. </view>
  73. </view>
  74. </view>
  75. <view style="width: 100%;margin-top: 20rpx;" v-if="workList.length > 0">
  76. <u-row gutter="16">
  77. <u-col span="2" text-align="center">
  78. <view><image src="/static/left.png" class="arr-icon" @click="preveItem"></image></view>
  79. </u-col>
  80. <u-col span="8" text-align="center">
  81. <view class="course_title" @click="jumpGoodsDetail(goodsItem)">{{ goodsItem.goodsName }}</view>
  82. </u-col>
  83. <u-col span="2" text-align="center">
  84. <view><image src="/static/right.png" class="arr-icon" @click="nextItem"></image></view>
  85. </u-col>
  86. </u-row>
  87. </view>
  88. </view>
  89. </view>
  90. <u-tabs class="tabs" :current="tabCurrent" @change="tab" :list="menu" :activeStyle="{fontSize:'36rpx'}" :inactiveStyle="{color:'#EAEEF1',fontSize:'30rpx'}" sticky></u-tabs>
  91. <view class="course-list" v-show="tabCurrent==0">
  92. <navigator hover-class="none" class="item" v-for="(item,index) in list1" :key="index" :url="'/pages3/course/detail?id='+item.goodsId">
  93. <view class="img">
  94. <image :src="$method.splitImgHost(item.coverUrl, true)"></image>
  95. <view class="time">{{item.year?item.year:''}}</view>
  96. </view>
  97. <view class="text">
  98. <view class="title">{{item.goodsName}}</view>
  99. <view class="desc">
  100. <view class="left">
  101. {{item.classHours}}
  102. <text>学时</text>
  103. </view>
  104. <view class="right">¥ {{item.standPrice}}</view>
  105. </view>
  106. </view>
  107. </navigator>
  108. </view>
  109. <view class="course-list" v-show="tabCurrent==1">
  110. <navigator hover-class="none" class="item" v-for="(item,index) in list2" :key="index" :url="'/pages2/bank/detail?id='+item.goodsId">
  111. <view class="img">
  112. <image :src="$method.splitImgHost(item.coverUrl, true)"></image>
  113. <view class="time">{{item.year?item.year:''}}</view>
  114. </view>
  115. <view class="text">
  116. <view class="title">{{item.goodsName}}</view>
  117. <view class="desc">
  118. <view class="left" v-if="false">
  119. {{item.classHours}}
  120. <text>学时</text>
  121. </view>
  122. <view class="right">¥ {{item.standPrice}}</view>
  123. </view>
  124. </view>
  125. </navigator>
  126. </view>
  127. </view>
  128. </view>
  129. </template>
  130. <script>
  131. import { mapGetters } from 'vuex';
  132. export default {
  133. components: {},
  134. data() {
  135. return {
  136. infoNums:0,
  137. list:[],
  138. tabCurrent:0,
  139. date:['日','一','二','三','四','五','六'],
  140. date_num: [],
  141. current:0,
  142. indicatorDots: true,
  143. autoplay: true,
  144. interval: 2000,
  145. duration: 500,
  146. swiperHeight:0,
  147. menu: [{
  148. name: '推荐课程',
  149. }, {
  150. name: '推荐题库',
  151. }],
  152. goodsIndex: 0,
  153. goodsItem: 0,
  154. workList: [],
  155. workTextList: [],
  156. planGoodsList: [],
  157. paramList: [
  158. {
  159. pageNum: 1,
  160. pageSize: 10,
  161. total: 0,
  162. showStatus: 0,
  163. goodsType:1
  164. },
  165. {
  166. pageNum: 1,
  167. pageSize: 10,
  168. total: 0,
  169. showStatus: 0,
  170. goodsType:2
  171. }
  172. ],
  173. list1: [],
  174. list2: [],
  175. isLogin:false,
  176. isOld:false
  177. };
  178. },
  179. onPullDownRefresh() {},
  180. onLoad(option) {
  181. this.init()
  182. this.courseList();
  183. this.bankList();
  184. this.getAdvertising()
  185. },
  186. onShow() {
  187. if (uni.getStorageSync('updateHome')|| !this.isOld){
  188. this.isOld = true;
  189. this.init()
  190. uni.removeStorageSync('updateHome'); //消费首页刷新事件
  191. }
  192. if(this.isLogin){
  193. this.$store.state.allowLoading = false;
  194. this.$api.getinfoAttached().then(res => {
  195. if(res.data.code ===200){
  196. this.infoNums = res.data.data.informSum
  197. const nums = res.data.data.informSum + res.data.data.orderSum + res.data.data.periodSum + res.data.data.planSum + res.data.data.subscribeSum;
  198. this.$store.commit('tabNum', nums);
  199. }
  200. })
  201. this.$store.state.allowLoading = true;
  202. }else{
  203. this.$store.commit('tabNum', 0);
  204. }
  205. },
  206. onShareAppMessage(res) {
  207. var self = this;
  208. return {
  209. title: '中正',
  210. path: `/pages/index/index?inviteCode=` + userInfo == null ? '' : userInfo.userAccount
  211. };
  212. },
  213. methods: {
  214. /**
  215. * banner图片加载完成
  216. */
  217. imageLoad(e) {
  218. let winW = 750;
  219. let imgW = e.detail.width;
  220. let imgH = e.detail.height;
  221. this.swiperHeight = 750 * imgH / imgW;
  222. },
  223. async getAdvertising() {
  224. await this.advertisingHomeLocation();
  225. await this.advertisingList();
  226. },
  227. advertisingHomeLocation() {
  228. return new Promise(resolve => {
  229. this.$api.advertisingHomeLocation().then(res => {
  230. this.interval = res.data.data.intervalTime * 1000
  231. resolve()
  232. })
  233. })
  234. },
  235. advertisingList() {
  236. return new Promise(resolve => {
  237. this.$api.advertisingList().then(res => {
  238. this.list = res.data.rows;
  239. resolve()
  240. })
  241. })
  242. },
  243. jumpPage(){
  244. this.$navTo.togo('/pages2/msg/index')
  245. },
  246. //课程
  247. courseList() {
  248. var self = this;
  249. var param = this.paramList[0];
  250. this.$api.goodsList(param).then(res => {
  251. self.paramList[0].total = res.data.total;
  252. self.list1.push.apply(self.list1, res.data.rows);
  253. if (self.list1.length === res.data.total) {
  254. self.paramList[0].showStatus = true;
  255. }
  256. });
  257. },
  258. //题库
  259. bankList() {
  260. var self = this;
  261. var param = this.paramList[1];
  262. this.$api.goodsList(param).then(res => {
  263. self.paramList[1].total = res.data.total;
  264. self.list2.push.apply(self.list2, res.data.rows);
  265. if (self.list2.length === res.data.total) {
  266. self.paramList[1].showStatus = true;
  267. }
  268. });
  269. },
  270. jumpGoodsDetail(item){
  271. this.$navTo.togo('/pages2/wd/course', {
  272. id: item.goodsId,
  273. gid:item.gradeId
  274. });
  275. },
  276. preveItem() {
  277. if (this.goodsIndex > 0) {
  278. this.goodsIndex = this.goodsIndex - 1;
  279. this.planGoodsList =this.workList[this.goodsIndex].goodsVos
  280. this.goodsItem = this.planGoodsList[0];
  281. this.dealRL(this.workList[this.goodsIndex].calendarStudyVo)
  282. }
  283. },
  284. nextItem() {
  285. if (this.goodsIndex < this.workList.length - 1) {
  286. this.goodsIndex = this.goodsIndex + 1;
  287. this.planGoodsList =this.workList[this.goodsIndex].goodsVos
  288. this.goodsItem = this.planGoodsList[0];
  289. this.dealRL(this.workList[this.goodsIndex].calendarStudyVo)
  290. }
  291. },
  292. jumpPlan() {
  293. if (!this.$method.isLogin()) {
  294. this.$navTo.togo('/pages/login/login');
  295. } else {
  296. this.$navTo.togo('/pages2/plan/index', {});
  297. }
  298. },
  299. init() {
  300. if (!this.$method.isLogin()) {
  301. //未登录
  302. this.date_num = [];
  303. this.workList = [];
  304. this.planGoodsList = [];
  305. this.initDay();
  306. } else {
  307. this.date_num = [];
  308. this.workList = [];
  309. this.planGoodsList = [];
  310. this.userPlanSeven();
  311. }
  312. },
  313. getMonDate() {
  314. var d = new Date(),
  315. day = d.getDay(),
  316. date = d.getDate();
  317. if (day == 0) return d;
  318. else d.setDate(date - day);
  319. return d;
  320. },
  321. initDay() {
  322. // d是当前星期一的日期对象
  323. var d = this.getMonDate();
  324. var arr = [];
  325. let date = new Date();
  326. let num = date.getDate();
  327. this.date_num = []
  328. for (var i = 0; i < 7; i++) {
  329. let item = { date: d.getDate() };
  330. item.color = 0;
  331. if (d.getDate() == num) {
  332. item.color = 3;
  333. }
  334. this.date_num.push(item);
  335. d.setDate(d.getDate() + 1);
  336. }
  337. },
  338. dealRL(calendarStudyVo){
  339. let self = this
  340. self.date_num = []
  341. let date = new Date();
  342. let num = date.getDate();
  343. let month = date.getMonth() + 1;
  344. let list = [];
  345. for (let j = 0; j < calendarStudyVo.length; j++) {
  346. let item = calendarStudyVo[j];
  347. list = item.dayStudyList;
  348. for (let i = 0; i < list.length; i++) {
  349. let item = list[i];
  350. item.color = 0;
  351. if (item.date == num) {
  352. item.color = 3;
  353. }
  354. if (item.perform == 1) {
  355. item.color = 1;
  356. }
  357. if (item.perform == 2) {
  358. item.color = 2;
  359. }
  360. item.note = item.studyCourseKnob;
  361. if (item.note > 0) {
  362. item.dot = true;
  363. }
  364. self.date_num.push(item);
  365. }
  366. }
  367. },
  368. userPlanSeven() {
  369. let self = this;
  370. this.$api.userPlanSeven().then(result => {
  371. if (result.data.data.length>0) {
  372. self.workList = result.data.data
  373. self.planGoodsList = self.workList[0].goodsVos;
  374. if (self.planGoodsList != null && self.planGoodsList.length > 0) {
  375. self.goodsItem = self.planGoodsList[0];
  376. }
  377. self.dealRL(result.data.data[0].calendarStudyVo)
  378. /* let date = new Date();
  379. let num = date.getDate();
  380. let month = date.getMonth() + 1;
  381. let list = [];
  382. for (let i = 0; i < result.data.data[0].calendarStudyVo.length; i++) {
  383. let item = result.data.data[0].calendarStudyVo[i];
  384. if (item.month == month) {
  385. list = item.dayStudyList;
  386. }
  387. }
  388. for (let i = 0; i < list.length; i++) {
  389. let item = list[i];
  390. item.color = 0;
  391. if (item.date == num) {
  392. item.color = 3;
  393. }
  394. if (item.perform == 1) {
  395. item.color = 1;
  396. }
  397. if (item.perform == 2) {
  398. item.color = 2;
  399. }
  400. item.note = item.studyCourseKnob;
  401. if (item.note > 0) {
  402. item.dot = true;
  403. }
  404. self.date_num.push(item);
  405. } */
  406. } else {
  407. self.initDay();
  408. }
  409. });
  410. },
  411. swiperChange(e) {
  412. this.current = e.detail.current;
  413. },
  414. tab(e) {
  415. this.tabCurrent = e;
  416. },
  417. updateHomePlan() {
  418. this.$refs.home.init();
  419. },
  420. beforeSwitch(index) {
  421. let that = this;
  422. if (index == 1) {
  423. this.isClick1 = true;
  424. }
  425. if (index == this.current) {
  426. return false;
  427. }
  428. if (!this.$method.isLogin()) {
  429. if (index == 0 || index == 1) {
  430. return true;
  431. } else {
  432. this.$navTo.togo('/pages/login/login');
  433. return false;
  434. }
  435. } else {
  436. if (index == 2) {
  437. this.$refs.refMy.init();
  438. }
  439. return true;
  440. }
  441. }
  442. },
  443. onReachBottom() {},
  444. computed: { ...mapGetters(['userInfo']) }
  445. };
  446. </script>
  447. <style lang="scss" scoped>
  448. .index {
  449. .slot-wrap {
  450. width:100%;
  451. display: flex;
  452. align-items: center;
  453. justify-content: flex-end;
  454. image {
  455. margin-right:98rpx;
  456. width: 178rpx;
  457. height: 31rpx;
  458. }
  459. }
  460. .swiper {
  461. width:100%;
  462. position: relative;
  463. .dots {
  464. position:absolute;
  465. left:0;
  466. bottom:8rpx;
  467. width:100%;
  468. display: flex;
  469. justify-content: center;
  470. .dot {
  471. width: 8rpx;
  472. height: 8rpx;
  473. background: #FFFFFF;
  474. border-radius: 50%;
  475. margin:0 4rpx;
  476. transition: all 0.3s;
  477. &.active {
  478. width: 24rpx;
  479. height: 8rpx;
  480. background: #007AFF;
  481. border-radius: 4rpx;
  482. }
  483. }
  484. }
  485. image {
  486. width:100%;
  487. }
  488. }
  489. .content {
  490. overflow: hidden;
  491. padding:0 16rpx 16rpx;
  492. background: rgba(234, 238, 241, 1);
  493. .notice {
  494. background:#fff;
  495. border-radius: 16rpx;
  496. margin-top:16rpx;
  497. overflow: hidden;
  498. &__content {
  499. padding:0 8rpx;
  500. height: 56rpx;
  501. background: linear-gradient(-90deg, rgba(255, 209, 0, 0.3), rgba(255, 255, 255, 0.3));
  502. display: flex;
  503. align-items: center;
  504. }
  505. .icon {
  506. width: 40rpx;
  507. height: 40rpx;
  508. margin-right: 8rpx;
  509. }
  510. .text {
  511. flex:1;
  512. font-size: 24rpx;
  513. color: #333333;
  514. position: relative;
  515. }
  516. .btn {
  517. font-size: 24rpx;
  518. color: #007AFF;
  519. }
  520. }
  521. .date-list {
  522. margin-top:16rpx;
  523. width: 718rpx;
  524. height: 330rpx;
  525. background: #FFFFFF;
  526. border-radius: 16rpx;
  527. padding:18rpx 27rpx;
  528. .title {
  529. font-size: 30rpx;
  530. font-weight: bold;
  531. color: #007AFF;
  532. }
  533. .list {
  534. margin-top:40rpx;
  535. display: flex;
  536. justify-content: space-around;
  537. .item {
  538. .top {
  539. text-align: center;
  540. font-size: 26rpx;
  541. color: rgba(102, 102, 102, 0.6);
  542. }
  543. .bottom {
  544. text-align: center;
  545. line-height: 48rpx;
  546. margin-top:30rpx;
  547. width: 48rpx;
  548. height: 48rpx;
  549. border-radius: 50%;
  550. color:rgba(51, 51, 51, 1);
  551. font-size: 26rpx;
  552. position:relative;
  553. &.red {
  554. color:#FF3B30;
  555. }
  556. &.green {
  557. color:#36C75A;
  558. }
  559. &.blue {
  560. background: #007AFF;
  561. color:#fff;
  562. }
  563. .note {
  564. width: 30rpx;
  565. height: 30rpx;
  566. border: 2rpx solid #FF9500;
  567. border-radius: 50%;
  568. position:absolute;
  569. top:-20rpx;
  570. right:-20rpx;
  571. line-height: 28rpx;
  572. text-align: center;
  573. color:#FF9500;
  574. font-size: 26rpx;
  575. }
  576. .point {
  577. margin:0 auto;
  578. width: 8rpx;
  579. height: 8rpx;
  580. background: #FF9500;
  581. border-radius: 50%;
  582. }
  583. }
  584. }
  585. }
  586. .btns {
  587. margin-top:50rpx;
  588. display: flex;
  589. align-items: center;
  590. justify-content: center;
  591. .left,.right {
  592. width: 40rpx;
  593. height: 40rpx;
  594. }
  595. .center{
  596. width: 440rpx;
  597. height: 56rpx;
  598. background: #FFFFFF;
  599. box-shadow: 0px 0px 9rpx 1rpx rgba(47, 67, 121, 0.1);
  600. border-radius: 28rpx;
  601. color:rgba(255, 149, 0, 1);
  602. line-height: 56rpx;
  603. text-align: center;
  604. font-size: 30rpx;
  605. margin:0 30rpx;
  606. }
  607. }
  608. }
  609. .tabs {
  610. /deep/ .u-tabs {
  611. background:none!important;
  612. }
  613. }
  614. .course-list {
  615. background:#fff;
  616. padding:0 8rpx;
  617. box-shadow: 0px 10rpx 9rpx 1rpx rgba(165, 196, 239, 0.1);
  618. border-radius: 16rpx ;
  619. .item {
  620. padding:8rpx 0;
  621. border-bottom:1rpx solid #eeeeee;
  622. display: flex;
  623. .img {
  624. position:relative;
  625. margin-right:10rpx;
  626. border-radius: 16rpx ;
  627. overflow: hidden;
  628. width: 320rpx;
  629. height: 155rpx;
  630. image {
  631. width:100%;
  632. height:100%;
  633. }
  634. .time {
  635. position:absolute;
  636. bottom:0;
  637. right:0;
  638. width: 80rpx;
  639. height: 32rpx;
  640. background: rgba(1, 25, 45, 0.4);
  641. color:#fff;
  642. text-align: center;
  643. line-height: 32rpx;
  644. font-size: 24rpx;
  645. border-radius: 10rpx 0px 10rpx 0px;
  646. }
  647. }
  648. .text {
  649. flex:1;
  650. padding-right:10rpx;
  651. position: relative;
  652. .title {
  653. font-size: 30rpx;
  654. color: #333333;
  655. }
  656. .desc {
  657. margin-top:40rpx;
  658. display: flex;
  659. position: absolute;
  660. bottom: 0;
  661. width: 100%;
  662. .left {
  663. flex:1;
  664. color:#333;
  665. font-size: 26rpx;
  666. text {
  667. font-size: 24rpx;
  668. color:#999;
  669. }
  670. }
  671. .right {
  672. font-size: 24rpx;
  673. font-weight: bold;
  674. color: #FF2D55;
  675. }
  676. }
  677. }
  678. }
  679. }
  680. }
  681. }
  682. .date_dot {
  683. width: 6rpx;
  684. height: 6rpx;
  685. background: #ffcc00;
  686. border-radius: 50%;
  687. margin: 0 auto;
  688. }
  689. .date_note {
  690. border-radius: 50%;
  691. width: 29rpx;
  692. height: 29rpx;
  693. border: 1px solid #ffcc00;
  694. font-size: 18rpx;
  695. color: #ffcc00;
  696. text-align: center;
  697. display: inline-block;
  698. position: absolute;
  699. top: -19rpx;
  700. right: 9rpx;
  701. }
  702. .circle_num {
  703. border-radius: 50%;
  704. width: 29rpx;
  705. height: 29rpx;
  706. border: 1px solid #ffcc00;
  707. font-size: 18rpx;
  708. color: #ffcc00;
  709. text-align: center;
  710. display: inline-block;
  711. margin: 5rpx;
  712. }
  713. .date_num {
  714. width: 14%;
  715. text-align: center;
  716. position: relative;
  717. display: inline-block;
  718. margin-top: 20rpx;
  719. }
  720. .course_title {
  721. color: #2f4379;
  722. box-shadow: 0rpx 0rpx 9rpx 1rpx rgba(47, 67, 121, 0.1);
  723. border-radius: 28rpx;
  724. width: 100%;
  725. height: 48rpx;
  726. line-height: 48rpx;
  727. overflow: hidden;
  728. text-overflow:ellipsis;
  729. white-space: nowrap;
  730. }
  731. .arr-icon {
  732. width: 40rpx;
  733. height: 40rpx;
  734. }
  735. .date_num_color0 {
  736. color: #32467b;
  737. }
  738. .date_num_color1 {
  739. color: #34c759;
  740. }
  741. .date_num_color2 {
  742. color: #ff3b30;
  743. }
  744. .date_num_color3 {
  745. color: #ffffff;
  746. background-color: #ffcc00;
  747. border-radius: 50%;
  748. width: 40rpx;
  749. height: 40rpx;
  750. display: inline-block;
  751. }
  752. .card_date {
  753. width: 14%;
  754. text-align: center;
  755. color: #7f8caf;
  756. }
  757. page {
  758. background: #ffffff;
  759. font-size: 28rpx;
  760. }
  761. .calendar_card {
  762. width: 100%;
  763. background: #ffffff;
  764. box-shadow: 0rpx 0rpx 16rpx 4rpx rgba(47, 67, 121, 0.1);
  765. border-radius: 22rpx;
  766. margin-top: 16rpx;
  767. padding-bottom: 15rpx;
  768. }
  769. .calendar_card .card_box {
  770. height: 60rpx;
  771. line-height: 60rpx;
  772. margin-left: 40rpx;
  773. }
  774. .calendar_card .t1 {
  775. color: #7f8caf;
  776. font-size: 24rpx;
  777. }
  778. .calendar_card .t2 {
  779. font-size: 24rpx;
  780. font-family: PingFang SC;
  781. font-weight: bold;
  782. color: #32467b;
  783. margin: 0 10rpx;
  784. }
  785. .calendar_card .t3 {
  786. font-size: 30rpx;
  787. font-weight: bold;
  788. color: #32467b;
  789. text-shadow: 0rpx 3rpx 3rpx rgba(0, 0, 0, 0.2);
  790. margin: 0 10rpx;
  791. }
  792. .img_more {
  793. width: 26rpx;
  794. height: 26rpx;
  795. }
  796. .flex-d {
  797. display: flex;
  798. flex-direction: column;
  799. justify-content: space-between;
  800. height: 100%;
  801. }
  802. .contentZ {
  803. flex: 1;
  804. overflow-y: auto;
  805. padding-left: 35rpx;
  806. display: flex;
  807. justify-content: space-around;
  808. }
  809. .contentZ::-webkit-scrollbar {
  810. display: none;
  811. }
  812. .fots {
  813. height: 100rpx;
  814. display: flex;
  815. align-items: center;
  816. justify-content: space-around;
  817. border-top: 1rpx solid #eee;
  818. }
  819. .leftBtns {
  820. font-size: 30rpx;
  821. color: #32467b;
  822. font-weight: 500;
  823. }
  824. .right_Btns {
  825. font-size: 30rpx;
  826. color: #fff;
  827. background-color: #32467b;
  828. border-radius: 24rpx;
  829. height: 60rpx;
  830. line-height: 60rpx;
  831. text-align: center;
  832. padding: 0rpx 23rpx;
  833. box-shadow: 0rpx 0rpx 16rpx 4rpx rgba(145, 156, 178, 0.1);
  834. }
  835. .lzs {
  836. width: 31%;
  837. margin: 0rpx 1%;
  838. max-width: 31%;
  839. }
  840. .tylsz{
  841. margin-top: 23rpx;
  842. color: #666;
  843. font-weight: 400;
  844. font-size: 24rpx;
  845. }
  846. .tylsz:first-child{
  847. text-align: center;
  848. }
  849. .activeStys{
  850. font-weight: bold;
  851. color: #32467B;
  852. }
  853. </style>