index.vue 20 KB

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