index.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905
  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">¥ {{toFixed(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">¥ {{toFixed(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. toFixed(number) {
  215. if(number > 0) {
  216. return number.toFixed(2)
  217. } else {
  218. return '0.00'
  219. }
  220. },
  221. /**
  222. * banner图片加载完成
  223. */
  224. imageLoad(e) {
  225. let winW = 750;
  226. let imgW = e.detail.width;
  227. let imgH = e.detail.height;
  228. this.swiperHeight = 750 * imgH / imgW;
  229. },
  230. async getAdvertising() {
  231. await this.advertisingHomeLocation();
  232. await this.advertisingList();
  233. },
  234. advertisingHomeLocation() {
  235. return new Promise(resolve => {
  236. this.$api.advertisingHomeLocation().then(res => {
  237. this.interval = res.data.data.intervalTime * 1000
  238. resolve()
  239. })
  240. })
  241. },
  242. advertisingList() {
  243. return new Promise(resolve => {
  244. this.$api.advertisingList().then(res => {
  245. this.list = res.data.rows;
  246. resolve()
  247. })
  248. })
  249. },
  250. jumpPage(){
  251. this.$navTo.togo('/pages2/msg/index')
  252. },
  253. //课程
  254. courseList() {
  255. var self = this;
  256. var param = this.paramList[0];
  257. this.$api.goodsList(param).then(res => {
  258. self.paramList[0].total = res.data.total;
  259. self.list1.push.apply(self.list1, res.data.rows);
  260. if (self.list1.length === res.data.total) {
  261. self.paramList[0].showStatus = true;
  262. }
  263. });
  264. },
  265. //题库
  266. bankList() {
  267. var self = this;
  268. var param = this.paramList[1];
  269. this.$api.goodsList(param).then(res => {
  270. self.paramList[1].total = res.data.total;
  271. self.list2.push.apply(self.list2, res.data.rows);
  272. if (self.list2.length === res.data.total) {
  273. self.paramList[1].showStatus = true;
  274. }
  275. });
  276. },
  277. jumpGoodsDetail(item){
  278. this.$navTo.togo('/pages2/wd/course', {
  279. id: item.goodsId,
  280. gid:item.gradeId
  281. });
  282. },
  283. preveItem() {
  284. if (this.goodsIndex > 0) {
  285. this.goodsIndex = this.goodsIndex - 1;
  286. this.planGoodsList =this.workList[this.goodsIndex].goodsVos
  287. this.goodsItem = this.planGoodsList[0];
  288. this.dealRL(this.workList[this.goodsIndex].calendarStudyVo)
  289. }
  290. },
  291. nextItem() {
  292. if (this.goodsIndex < this.workList.length - 1) {
  293. this.goodsIndex = this.goodsIndex + 1;
  294. this.planGoodsList =this.workList[this.goodsIndex].goodsVos
  295. this.goodsItem = this.planGoodsList[0];
  296. this.dealRL(this.workList[this.goodsIndex].calendarStudyVo)
  297. }
  298. },
  299. jumpPlan() {
  300. if (!this.$method.isLogin()) {
  301. this.$navTo.togo('/pages/login/login');
  302. } else {
  303. this.$navTo.togo('/pages2/plan/index', {});
  304. }
  305. },
  306. init() {
  307. if (!this.$method.isLogin()) {
  308. //未登录
  309. this.date_num = [];
  310. this.workList = [];
  311. this.planGoodsList = [];
  312. this.initDay();
  313. } else {
  314. this.date_num = [];
  315. this.workList = [];
  316. this.planGoodsList = [];
  317. this.userPlanSeven();
  318. }
  319. },
  320. getMonDate() {
  321. var d = new Date(),
  322. day = d.getDay(),
  323. date = d.getDate();
  324. if (day == 0) return d;
  325. else d.setDate(date - day);
  326. return d;
  327. },
  328. initDay() {
  329. // d是当前星期一的日期对象
  330. var d = this.getMonDate();
  331. var arr = [];
  332. let date = new Date();
  333. let num = date.getDate();
  334. this.date_num = []
  335. for (var i = 0; i < 7; i++) {
  336. let item = { date: d.getDate() };
  337. item.color = 0;
  338. if (d.getDate() == num) {
  339. item.color = 3;
  340. }
  341. this.date_num.push(item);
  342. d.setDate(d.getDate() + 1);
  343. }
  344. },
  345. dealRL(calendarStudyVo){
  346. let self = this
  347. self.date_num = []
  348. let date = new Date();
  349. let num = date.getDate();
  350. let month = date.getMonth() + 1;
  351. let list = [];
  352. for (let j = 0; j < calendarStudyVo.length; j++) {
  353. let item = calendarStudyVo[j];
  354. list = item.dayStudyList;
  355. for (let i = 0; i < list.length; i++) {
  356. let item = list[i];
  357. item.color = 0;
  358. if (item.date == num) {
  359. item.color = 3;
  360. }
  361. if (item.perform == 1) {
  362. item.color = 1;
  363. }
  364. if (item.perform == 2) {
  365. item.color = 2;
  366. }
  367. item.note = item.studyCourseKnob;
  368. if (item.note > 0) {
  369. item.dot = true;
  370. }
  371. self.date_num.push(item);
  372. }
  373. }
  374. },
  375. userPlanSeven() {
  376. let self = this;
  377. this.$api.userPlanSeven().then(result => {
  378. if (result.data.data && result.data.data.length>0) {
  379. self.workList = result.data.data
  380. self.planGoodsList = self.workList[0].goodsVos;
  381. if (self.planGoodsList != null && self.planGoodsList.length > 0) {
  382. self.goodsItem = self.planGoodsList[0];
  383. }
  384. self.dealRL(result.data.data[0].calendarStudyVo)
  385. /* let date = new Date();
  386. let num = date.getDate();
  387. let month = date.getMonth() + 1;
  388. let list = [];
  389. for (let i = 0; i < result.data.data[0].calendarStudyVo.length; i++) {
  390. let item = result.data.data[0].calendarStudyVo[i];
  391. if (item.month == month) {
  392. list = item.dayStudyList;
  393. }
  394. }
  395. for (let i = 0; i < list.length; i++) {
  396. let item = list[i];
  397. item.color = 0;
  398. if (item.date == num) {
  399. item.color = 3;
  400. }
  401. if (item.perform == 1) {
  402. item.color = 1;
  403. }
  404. if (item.perform == 2) {
  405. item.color = 2;
  406. }
  407. item.note = item.studyCourseKnob;
  408. if (item.note > 0) {
  409. item.dot = true;
  410. }
  411. self.date_num.push(item);
  412. } */
  413. } else {
  414. self.initDay();
  415. }
  416. });
  417. },
  418. swiperChange(e) {
  419. this.current = e.detail.current;
  420. },
  421. tab(e) {
  422. this.tabCurrent = e;
  423. },
  424. updateHomePlan() {
  425. this.$refs.home.init();
  426. },
  427. beforeSwitch(index) {
  428. let that = this;
  429. if (index == 1) {
  430. this.isClick1 = true;
  431. }
  432. if (index == this.current) {
  433. return false;
  434. }
  435. if (!this.$method.isLogin()) {
  436. if (index == 0 || index == 1) {
  437. return true;
  438. } else {
  439. this.$navTo.togo('/pages/login/login');
  440. return false;
  441. }
  442. } else {
  443. if (index == 2) {
  444. this.$refs.refMy.init();
  445. }
  446. return true;
  447. }
  448. }
  449. },
  450. onReachBottom() {},
  451. computed: { ...mapGetters(['userInfo']) }
  452. };
  453. </script>
  454. <style lang="scss" scoped>
  455. .index {
  456. .slot-wrap {
  457. width:100%;
  458. display: flex;
  459. align-items: center;
  460. justify-content: flex-end;
  461. image {
  462. margin-right:98rpx;
  463. width: 178rpx;
  464. height: 31rpx;
  465. }
  466. }
  467. .swiper {
  468. width:100%;
  469. position: relative;
  470. .dots {
  471. position:absolute;
  472. left:0;
  473. bottom:8rpx;
  474. width:100%;
  475. display: flex;
  476. justify-content: center;
  477. .dot {
  478. width: 8rpx;
  479. height: 8rpx;
  480. background: #FFFFFF;
  481. border-radius: 50%;
  482. margin:0 4rpx;
  483. transition: all 0.3s;
  484. &.active {
  485. width: 24rpx;
  486. height: 8rpx;
  487. background: #007AFF;
  488. border-radius: 4rpx;
  489. }
  490. }
  491. }
  492. image {
  493. width:100%;
  494. }
  495. }
  496. .content {
  497. overflow: hidden;
  498. padding:0 16rpx 16rpx;
  499. background: rgba(234, 238, 241, 1);
  500. .notice {
  501. background:#fff;
  502. border-radius: 16rpx;
  503. margin-top:16rpx;
  504. overflow: hidden;
  505. &__content {
  506. padding:0 8rpx;
  507. height: 56rpx;
  508. background: linear-gradient(-90deg, rgba(255, 209, 0, 0.3), rgba(255, 255, 255, 0.3));
  509. display: flex;
  510. align-items: center;
  511. }
  512. .icon {
  513. width: 40rpx;
  514. height: 40rpx;
  515. margin-right: 8rpx;
  516. }
  517. .text {
  518. flex:1;
  519. font-size: 24rpx;
  520. color: #333333;
  521. position: relative;
  522. }
  523. .btn {
  524. font-size: 24rpx;
  525. color: #007AFF;
  526. }
  527. }
  528. .date-list {
  529. margin-top:16rpx;
  530. width: 718rpx;
  531. height: 330rpx;
  532. background: #FFFFFF;
  533. border-radius: 16rpx;
  534. padding:18rpx 27rpx;
  535. .title {
  536. font-size: 30rpx;
  537. font-weight: bold;
  538. color: #007AFF;
  539. }
  540. .list {
  541. margin-top:40rpx;
  542. display: flex;
  543. justify-content: space-around;
  544. .item {
  545. .top {
  546. text-align: center;
  547. font-size: 26rpx;
  548. color: rgba(102, 102, 102, 0.6);
  549. }
  550. .bottom {
  551. text-align: center;
  552. line-height: 48rpx;
  553. margin-top:30rpx;
  554. width: 48rpx;
  555. height: 48rpx;
  556. border-radius: 50%;
  557. color:rgba(51, 51, 51, 1);
  558. font-size: 26rpx;
  559. position:relative;
  560. &.red {
  561. color:#FF3B30;
  562. }
  563. &.green {
  564. color:#36C75A;
  565. }
  566. &.blue {
  567. background: #007AFF;
  568. color:#fff;
  569. }
  570. .note {
  571. width: 30rpx;
  572. height: 30rpx;
  573. border: 2rpx solid #FF9500;
  574. border-radius: 50%;
  575. position:absolute;
  576. top:-20rpx;
  577. right:-20rpx;
  578. line-height: 28rpx;
  579. text-align: center;
  580. color:#FF9500;
  581. font-size: 26rpx;
  582. }
  583. .point {
  584. margin:0 auto;
  585. width: 8rpx;
  586. height: 8rpx;
  587. background: #FF9500;
  588. border-radius: 50%;
  589. }
  590. }
  591. }
  592. }
  593. .btns {
  594. margin-top:50rpx;
  595. display: flex;
  596. align-items: center;
  597. justify-content: center;
  598. .left,.right {
  599. width: 40rpx;
  600. height: 40rpx;
  601. }
  602. .center{
  603. width: 440rpx;
  604. height: 56rpx;
  605. background: #FFFFFF;
  606. box-shadow: 0px 0px 9rpx 1rpx rgba(47, 67, 121, 0.1);
  607. border-radius: 28rpx;
  608. color:rgba(255, 149, 0, 1);
  609. line-height: 56rpx;
  610. text-align: center;
  611. font-size: 30rpx;
  612. margin:0 30rpx;
  613. }
  614. }
  615. }
  616. .tabs {
  617. /deep/ .u-tabs {
  618. background:none!important;
  619. }
  620. }
  621. .course-list {
  622. background:#fff;
  623. padding:0 8rpx;
  624. box-shadow: 0px 10rpx 9rpx 1rpx rgba(165, 196, 239, 0.1);
  625. border-radius: 16rpx ;
  626. .item {
  627. padding:8rpx 0;
  628. border-bottom:1rpx solid #eeeeee;
  629. display: flex;
  630. .img {
  631. position:relative;
  632. margin-right:10rpx;
  633. border-radius: 16rpx ;
  634. overflow: hidden;
  635. width: 320rpx;
  636. height: 155rpx;
  637. image {
  638. width:100%;
  639. height:100%;
  640. }
  641. .time {
  642. position:absolute;
  643. bottom:0;
  644. right:0;
  645. width: 80rpx;
  646. height: 32rpx;
  647. background: rgba(1, 25, 45, 0.4);
  648. color:#fff;
  649. text-align: center;
  650. line-height: 32rpx;
  651. font-size: 24rpx;
  652. border-radius: 10rpx 0px 10rpx 0px;
  653. }
  654. }
  655. .text {
  656. flex:1;
  657. padding-right:10rpx;
  658. position: relative;
  659. .title {
  660. font-size: 30rpx;
  661. color: #333333;
  662. }
  663. .desc {
  664. margin-top:40rpx;
  665. display: flex;
  666. position: absolute;
  667. bottom: 0;
  668. width: 100%;
  669. .left {
  670. flex:1;
  671. color:#333;
  672. font-size: 26rpx;
  673. text {
  674. font-size: 24rpx;
  675. color:#999;
  676. }
  677. }
  678. .right {
  679. font-size: 24rpx;
  680. font-weight: bold;
  681. color: #FF2D55;
  682. }
  683. }
  684. }
  685. }
  686. }
  687. }
  688. }
  689. .date_dot {
  690. width: 6rpx;
  691. height: 6rpx;
  692. background: #ffcc00;
  693. border-radius: 50%;
  694. margin: 0 auto;
  695. }
  696. .date_note {
  697. border-radius: 50%;
  698. width: 29rpx;
  699. height: 29rpx;
  700. border: 1px solid #ffcc00;
  701. font-size: 18rpx;
  702. color: #ffcc00;
  703. text-align: center;
  704. display: inline-block;
  705. position: absolute;
  706. top: -19rpx;
  707. right: 9rpx;
  708. }
  709. .circle_num {
  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. margin: 5rpx;
  719. }
  720. .date_num {
  721. width: 14%;
  722. text-align: center;
  723. position: relative;
  724. display: inline-block;
  725. margin-top: 20rpx;
  726. }
  727. .course_title {
  728. color: #2f4379;
  729. box-shadow: 0rpx 0rpx 9rpx 1rpx rgba(47, 67, 121, 0.1);
  730. border-radius: 28rpx;
  731. width: 100%;
  732. height: 48rpx;
  733. line-height: 48rpx;
  734. overflow: hidden;
  735. text-overflow:ellipsis;
  736. white-space: nowrap;
  737. }
  738. .arr-icon {
  739. width: 40rpx;
  740. height: 40rpx;
  741. }
  742. .date_num_color0 {
  743. color: #32467b;
  744. }
  745. .date_num_color1 {
  746. color: #34c759;
  747. }
  748. .date_num_color2 {
  749. color: #ff3b30;
  750. }
  751. .date_num_color3 {
  752. color: #ffffff;
  753. background-color: #ffcc00;
  754. border-radius: 50%;
  755. width: 40rpx;
  756. height: 40rpx;
  757. display: inline-block;
  758. }
  759. .card_date {
  760. width: 14%;
  761. text-align: center;
  762. color: #7f8caf;
  763. }
  764. page {
  765. background: #ffffff;
  766. font-size: 28rpx;
  767. }
  768. .calendar_card {
  769. width: 100%;
  770. background: #ffffff;
  771. box-shadow: 0rpx 0rpx 16rpx 4rpx rgba(47, 67, 121, 0.1);
  772. border-radius: 22rpx;
  773. margin-top: 16rpx;
  774. padding-bottom: 15rpx;
  775. }
  776. .calendar_card .card_box {
  777. height: 60rpx;
  778. line-height: 60rpx;
  779. margin-left: 40rpx;
  780. }
  781. .calendar_card .t1 {
  782. color: #7f8caf;
  783. font-size: 24rpx;
  784. }
  785. .calendar_card .t2 {
  786. font-size: 24rpx;
  787. font-family: PingFang SC;
  788. font-weight: bold;
  789. color: #32467b;
  790. margin: 0 10rpx;
  791. }
  792. .calendar_card .t3 {
  793. font-size: 30rpx;
  794. font-weight: bold;
  795. color: #32467b;
  796. text-shadow: 0rpx 3rpx 3rpx rgba(0, 0, 0, 0.2);
  797. margin: 0 10rpx;
  798. }
  799. .img_more {
  800. width: 26rpx;
  801. height: 26rpx;
  802. }
  803. .flex-d {
  804. display: flex;
  805. flex-direction: column;
  806. justify-content: space-between;
  807. height: 100%;
  808. }
  809. .contentZ {
  810. flex: 1;
  811. overflow-y: auto;
  812. padding-left: 35rpx;
  813. display: flex;
  814. justify-content: space-around;
  815. }
  816. .contentZ::-webkit-scrollbar {
  817. display: none;
  818. }
  819. .fots {
  820. height: 100rpx;
  821. display: flex;
  822. align-items: center;
  823. justify-content: space-around;
  824. border-top: 1rpx solid #eee;
  825. }
  826. .leftBtns {
  827. font-size: 30rpx;
  828. color: #32467b;
  829. font-weight: 500;
  830. }
  831. .right_Btns {
  832. font-size: 30rpx;
  833. color: #fff;
  834. background-color: #32467b;
  835. border-radius: 24rpx;
  836. height: 60rpx;
  837. line-height: 60rpx;
  838. text-align: center;
  839. padding: 0rpx 23rpx;
  840. box-shadow: 0rpx 0rpx 16rpx 4rpx rgba(145, 156, 178, 0.1);
  841. }
  842. .lzs {
  843. width: 31%;
  844. margin: 0rpx 1%;
  845. max-width: 31%;
  846. }
  847. .tylsz{
  848. margin-top: 23rpx;
  849. color: #666;
  850. font-weight: 400;
  851. font-size: 24rpx;
  852. }
  853. .tylsz:first-child{
  854. text-align: center;
  855. }
  856. .activeStys{
  857. font-weight: bold;
  858. color: #32467B;
  859. }
  860. </style>