index.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836
  1. <template>
  2. <view >
  3. <nav-bar title="学习计划"></nav-bar>
  4. <view v-if="havePlan">
  5. <view class="card" v-if="havePlan">
  6. <view class="date_t1">
  7. <u-icon name="arrow-left" size="28" v-if="havePreviousMonth" @click="swipeMonth(-1)"></u-icon>
  8. <text style="padding: 0 15rpx;">{{ calendarStudyVo.year }}年 {{ calendarStudyVo.month }}月</text>
  9. <u-icon name="arrow-right" size="28" v-if="haveNextMonth" @click="swipeMonth(1)"></u-icon>
  10. </view>
  11. <view style="width: 100%;margin-top: 20rpx;">
  12. <view v-for="(item, index) in date" :key="index" class="card_date">{{ item }}</view>
  13. </view>
  14. <view style="width: 100%;margin-top: 20rpx;">
  15. <view v-for="(item, index) in showDayList" :key="index" class="date_num">
  16. <view v-if="item.color == 0" @click="itemClick(item,index)" class="date_num_color0" :class="{active_color:item.date == activeDate}" v-show="item.date > 0">
  17. {{ item.date }}
  18. <view v-if="item.note > 0" class="date_note">{{ item.note }}</view>
  19. <view v-if="item.dot" class="date_dot"></view>
  20. </view>
  21. <view v-if="item.color == 1" @click="itemClick(item,index)" class="date_num_color1" :class="{active_color:item.date == activeDate}">
  22. {{ item.date }}
  23. <view v-if="item.note > 0" class="date_note">{{ item.note }}</view>
  24. <view v-if="item.dot" class="date_dot"></view>
  25. </view>
  26. <view v-if="item.color == 2" @click="itemClick(item,index)" class="date_num_color2" :class="{active_color:item.date == activeDate}">
  27. {{ item.date }}
  28. <view v-if="item.note > 0" class="date_note">{{ item.note }}</view>
  29. <view v-if="item.dot" class="date_dot"></view>
  30. </view>
  31. <view v-if="item.color == 3" @click="itemClick(item,index)" class="date_num_color3" :class="{active_color:item.date == activeDate}">
  32. {{ item.date }}
  33. <view v-if="item.note > 0" class="date_note">{{ item.note }}</view>
  34. <view v-if="item.dot" class="date_dot"></view>
  35. </view>
  36. </view>
  37. </view>
  38. <view style="width: 100%;display: flex;justify-content: center;" v-if="isOpen == false">
  39. <view @click="oepn_calendar" style="height: 20rpx;width: 40rpx;padding:20rpx 0;"><view class="date_line"></view></view>
  40. </view>
  41. <view style="width: 100%;display: flex;justify-content: center;" v-else>
  42. <image class="date_line_close" @click="close_calendar" src="/static/close_card.png"></image>
  43. </view>
  44. <view v-for="(item, index) in workList" :key="index">
  45. <view style="margin-left: 30rpx;margin-top: 10rpx;display: flex;align-items: center;" @click="jumpDetail(item)">
  46. <text class="date_t2">{{ item.goodsName }}</text>
  47. <view class="circle_num" style="margin-left: 20rpx;">{{ item.classHours }}</view>
  48. </view>
  49. </view>
  50. </view>
  51. <!-- 列表-->
  52. <view>
  53. <uni-swipe-action>
  54. <uni-swipe-action-item :autoClose="false" @change="swipeChange($event, item)" :show="item.show" v-for="(item, index) in list" :key="index">
  55. <view class="list_item" :class="index % 2 == 0 ? 'list_item_bac1' : 'list_item_bac2'" @click.stop="openEdit(item)">
  56. <u-row>
  57. <u-col span="11">
  58. <text class="item_t1">
  59. {{ item.goodsVos[0].educationName + '-' + item.goodsVos[0].projectName + '-' + item.goodsVos[0].businessName }}:{{
  60. $method.timestampToTime(item.endTime)
  61. }}截止
  62. </text>
  63. </u-col>
  64. <u-col span="1"><image style="transform: rotate(180deg);" src="/static/icon/openSwith.png" class="img_more" @click.stop="openShow(item)"></image></u-col>
  65. </u-row>
  66. <scroll-view style="white-space: nowrap" class="scroll-view_H" scroll-x="true">
  67. <view style="margin-top: 30rpx;display: inline-block;width:296rpx;margin-right: 30rpx;" v-for="(items, indexs) in item.goodsVos" :key="indexs">
  68. <image :src="$method.splitImgHost(items.coverUrl)" class="r_image"></image>
  69. <view class="r_t2">{{ items.goodsName }}</view>
  70. </view>
  71. </scroll-view>
  72. <view style="display: flex;margin-top: 30rpx;">
  73. <text class="item_t2">学习频率:</text>
  74. <view style="display: flex;justify-content:center;">
  75. <view v-for="(item1, index) in item.studyCount" :key="index" class="item_date">{{ replay(item1) }}</view>
  76. </view>
  77. </view>
  78. <view style="display: flex;margin-top: 20rpx;">
  79. <text class="item_t2">学习进度:{{ item.studyNum }}/{{ item.pitchNum }}</text>
  80. </view>
  81. </view>
  82. <template v-slot:right>
  83. <view class="operate">
  84. <image src="/static/operate_1.png" class="operate_img operate_img1" @click="delWorker(item)"></image>
  85. <!-- <image src="/static/operate_2.png" class="operate_img operate_img2"></image> -->
  86. <image @click="edit(item)" src="/static/operate_3.png" class="operate_img operate_img3"></image>
  87. </view>
  88. </template>
  89. </uni-swipe-action-item>
  90. </uni-swipe-action>
  91. </view>
  92. <view class="newPlan" @click="newPlan()">新建计划</view>
  93. </view>
  94. <view v-else class="tipBox">
  95. <template v-if="isLoaded">
  96. <view class="dis_ffs" v-if="goodsList.length">
  97. <view class="tip">您暂无相关计划哦~</view>
  98. <view class="tipBtn" @click="newPlan()">马上制定</view>
  99. </view>
  100. <view class="dis_ffs" v-else>
  101. <view class="tip">您暂无课程可以制定计划哦~</view>
  102. <view class="tipBtn" @click="planNow()">马上选课</view>
  103. </view>
  104. </template>
  105. </view>
  106. </view>
  107. </template>
  108. <script>
  109. export default {
  110. data() {
  111. return {
  112. isLoaded:false, //是否请求完毕
  113. monthIndex: 0,
  114. haveNextMonth: false,
  115. havePreviousMonth: false,
  116. showDayList: [],
  117. workList: [],
  118. calendarStudyVo: {},
  119. index: 0,
  120. date: ['日', '一', '二', '三', '四', '五', '六'],
  121. list: [],
  122. isOpen: false,
  123. date_num: [
  124. {
  125. num: 20,
  126. color: 0,
  127. note: 0,
  128. dot: false
  129. },
  130. {
  131. num: 21,
  132. color: 1,
  133. note: 0,
  134. dot: false
  135. },
  136. {
  137. num: 22,
  138. color: 0,
  139. note: 0,
  140. dot: true
  141. },
  142. {
  143. num: 23,
  144. color: 2,
  145. note: 0,
  146. dot: false
  147. },
  148. {
  149. num: 24,
  150. color: 1,
  151. note: 0,
  152. dot: false
  153. },
  154. {
  155. num: 25,
  156. color: 3,
  157. note: 2,
  158. dot: false
  159. },
  160. {
  161. num: 26,
  162. color: 0,
  163. note: 1,
  164. dot: true
  165. }
  166. ],
  167. date_use: [],
  168. options: [
  169. {
  170. text: '取消',
  171. style: {
  172. backgroundColor: '#007aff'
  173. }
  174. },
  175. {
  176. text: '确认',
  177. style: {
  178. backgroundColor: '#dd524d'
  179. }
  180. }
  181. ],
  182. activeDate:'',
  183. dayStudyList: [],
  184. listItem: {},
  185. currentMonth: 0,
  186. havePlan: false,
  187. goodsList: [] //用户拥有的商品
  188. };
  189. },
  190. onLoad(option) {
  191. this.date_use = this.date_num;
  192. this.getUserGoodsList();
  193. },
  194. onShow() {
  195. this.workList = [];
  196. this.showDayList = [];
  197. // this.calendarStudyVo = {};
  198. this.isOpen = false;
  199. this.getList();
  200. },
  201. methods: {
  202. itemClick(item,index) {
  203. // console.log(item)
  204. this.activeDate = item.date;
  205. this.workList = this.getStudyCourseByDay();
  206. },
  207. /**
  208. * 根据选中日期获取需要学习的课程
  209. */
  210. getStudyCourseByDay() {
  211. let courseList = [];
  212. this.showDayList.forEach(day => {
  213. if(day.date == this.activeDate) {
  214. if(day.daySectionList) {
  215. day.daySectionList.forEach(section => {
  216. this.listItem.goodsVos.forEach(vos => {
  217. if(vos.goodsId == section.goodsId) {
  218. courseList.push(vos)
  219. }
  220. })
  221. })
  222. }
  223. }
  224. })
  225. return courseList;
  226. },
  227. planNow(){
  228. uni.switchTab({
  229. url: '/pages/course/index'
  230. });
  231. },
  232. getUserGoodsList() {
  233. this.$api.courseGoodsList().then(res => {
  234. if (res.data.code === 200) {
  235. this.isLoaded = true;
  236. this.goodsList = res.data.rows;
  237. }
  238. });
  239. },
  240. //删除计划
  241. delWorker(option) {
  242. var data = {
  243. planId: option.planId,
  244. status: -1
  245. };
  246. let self = this;
  247. this.$api.editsystemplan(data).then(res => {
  248. uni.setStorageSync('updateHome', 1);
  249. self.getList();
  250. });
  251. },
  252. swipeMonth(index) {
  253. console.log(index,198)
  254. this.isOpen = false;
  255. this.haveNextMonth = false;
  256. this.havePreviousMonth = false;
  257. this.monthIndex = this.monthIndex + index;
  258. this.currentMonth = this.currentMonth + index;
  259. let item = this.listItem.calendarStudyVo[this.monthIndex];
  260. this.calendarStudyVo = item;
  261. this.activeDate = '';
  262. // this.workList = this.calendarStudyVo.goodsVos;
  263. this.workList = this.getStudyCourseByDay();
  264. if (this.monthIndex > 0) {
  265. this.havePreviousMonth = true;
  266. }
  267. if (this.monthIndex < this.listItem.calendarStudyVo.length - 1) {
  268. this.haveNextMonth = true;
  269. }
  270. this.dealDayList();
  271. },
  272. dealMonth() {
  273. let date = new Date();
  274. let currentMonth = date.getMonth() + 1;
  275. this.haveNextMonth = false;
  276. this.havePreviousMonth = false;
  277. this.workList = this.getStudyCourseByDay();
  278. // this.workList = this.listItem.goodsVos;
  279. if (this.listItem !== undefined) {
  280. for (let i = 0; i < this.listItem.calendarStudyVo.length; i++) {
  281. let item = this.listItem.calendarStudyVo[i];
  282. if (item.month == currentMonth) {
  283. this.monthIndex = i;
  284. this.calendarStudyVo = item;
  285. if (i > 0) {
  286. this.havePreviousMonth = true;
  287. }
  288. if (i < this.listItem.calendarStudyVo.length - 1) {
  289. this.haveNextMonth = true;
  290. }
  291. }
  292. }
  293. this.dealDayList();
  294. }
  295. },
  296. openEdit(item) {
  297. this.activeDate = '';
  298. this.listItem = item;
  299. this.isOpen = false;
  300. this.dealMonth();
  301. },
  302. dealDayList() {
  303. let firstItem = this.calendarStudyVo.dayStudyList[0];
  304. this.calendarStudyVo.miniDayStudyList = []; //创建缩放的数组
  305. let date = new Date();
  306. let num = date.getDate();
  307. //如果不是当前月,默认显示第一周
  308. if ((date.getMonth() + 1) != this.calendarStudyVo.month) {
  309. num = 1;
  310. }
  311. for (let i = 0; i < firstItem.studyDay; i++) {
  312. //补齐1号前的日数凑满一周
  313. this.calendarStudyVo.dayStudyList.unshift({ date: 0 });
  314. }
  315. let todayIndex;
  316. let todayItem;
  317. for (let i = 0; i < this.calendarStudyVo.dayStudyList.length; i++) {
  318. let item = this.calendarStudyVo.dayStudyList[i];
  319. item.color = 0;
  320. if (item.date == num) {
  321. if (date.getMonth() + 1 == this.calendarStudyVo.month) {
  322. item.color = 3;
  323. }
  324. todayIndex = i;
  325. todayItem = item;
  326. }
  327. if (item.perform == 1) {
  328. item.color = 1;
  329. }
  330. if (item.perform == 2) {
  331. item.color = 2;
  332. }
  333. item.note = item.studyCourseKnob;
  334. if (item.note > 0) {
  335. item.dot = true;
  336. }
  337. }
  338. let start
  339. start = todayIndex - todayItem.studyDay;
  340. /* if(todayItem){
  341. }else{
  342. //今天在下个月不存在,例如31号
  343. todayIndex = this.calendarStudyVo.dayStudyList.length-1
  344. todayItem = this.calendarStudyVo.dayStudyList[todayIndex]
  345. start = todayIndex - todayItem.studyDay;
  346. } */
  347. /* if ((date.getMonth() + 1) != this.calendarStudyVo.month) {
  348. todayIndex = 0
  349. todayItem = this.calendarStudyVo.dayStudyList[todayIndex]
  350. start = 0;
  351. } */
  352. console.log(start,689)
  353. /* this.calendarStudyVo.miniDayStudyList = []
  354. for(let i=start;i<start + 7;i++){
  355. this.calendarStudyVo.miniDayStudyList.push(this.calendarStudyVo.dayStudyList[i])
  356. } */
  357. console.log(this.calendarStudyVo.miniDayStudyList,789)
  358. this.calendarStudyVo.miniDayStudyList = this.calendarStudyVo.dayStudyList.slice(start, start + 7);
  359. this.showDayList = this.calendarStudyVo.miniDayStudyList;
  360. console.log(this.showDayList)
  361. for (let i = 0; i < this.calendarStudyVo.dayStudyList.length; i++) {
  362. let item = this.calendarStudyVo.dayStudyList[i];
  363. if (item.note > 0) {
  364. item.note = 0;
  365. this.showDayList.forEach(day => {
  366. if(day.date == item.date) {
  367. if(day.daySectionList) {
  368. day.daySectionList.forEach(section => {
  369. this.listItem.goodsVos.forEach(vos => {
  370. if(vos.goodsId == section.goodsId) {
  371. item.note += vos.classHours
  372. }
  373. })
  374. })
  375. }
  376. }
  377. })
  378. }
  379. }
  380. },
  381. async jumpDetail(item) {
  382. let currentTime = this.$method.getZeroTime();
  383. if(currentTime < item.studyStartTime || currentTime > item.studyEndTime) {
  384. uni.showToast({
  385. title:'不在学习有效期,不可以学习了哦',
  386. icon:'none'
  387. })
  388. return;
  389. }
  390. if( (item.classStartTime && currentTime <= item.classStartTime) || (item.classEndTime && currentTime >= item.classEndTime) ) {
  391. uni.showToast({
  392. title:'不在班级有效期,不能进入学习',
  393. icon:'none'
  394. })
  395. return;
  396. }
  397. if(item.learningStatus == 2) {
  398. uni.showToast({
  399. title:'开放学习时间待定,不能进入学习',
  400. icon:'none'
  401. })
  402. return;
  403. }
  404. if(item.classStatus == 0 ) {
  405. uni.showToast({
  406. title:'尚未开班,不能进入学习',
  407. icon:'none'
  408. })
  409. return;
  410. }
  411. if(item.learningStatus == 3 && (currentTime < item.learningTimeStart) ) {
  412. uni.showToast({
  413. title:'不在开放学习时间,不能进入学习',
  414. icon:'none'
  415. })
  416. return;
  417. }
  418. if(item.gradeStatus == 1 && item.status == 1 && (item.studyEndTime > currentTime) && (item.classEndTime && (item.classEndTime < currentTime)) && (item.periodStatus == 0 || item.periodStatus == -1) && item.studyCount > 0) {
  419. uni.showModal({
  420. title:'提示',
  421. content:'班级已过期,需要重新选班',
  422. showCancel:false,
  423. success:() => {
  424. uni.navigateTo({
  425. url:"/pages2/wd/class"
  426. })
  427. }
  428. })
  429. return;
  430. }
  431. let rebuildStatus = await this.courseGoodsRebuildStatus(item.goodsId,item.gradeId);
  432. if(rebuildStatus == 0) {
  433. this.$navTo.togo('/pages2/learn/details', {
  434. gradeId:item.gradeId,
  435. goodsId: item.goodsId
  436. })
  437. return;
  438. }
  439. if(item.courseNum == 1 ) {
  440. this.$api.courseCourseList({
  441. pageNum:1,
  442. pageSize:1,
  443. goodsId:item.goodsId,
  444. gradeId:item.gradeId
  445. }).then(res => {
  446. if(res.data.code == 200) {
  447. uni.navigateTo({
  448. url:`/pages3/polyv/detail?id=${res.data.rows[0].courseId}&goodsId=${item.goodsId}`
  449. })
  450. }
  451. });
  452. return;
  453. }
  454. this.$navTo.togo('/pages2/wd/course', {
  455. id: item.goodsId,
  456. gid:item.gradeId
  457. });
  458. return;
  459. },
  460. /**
  461. * @param {Object} goodsId 商品id
  462. * 查询商品重修状态
  463. */
  464. courseGoodsRebuildStatus(goodsId,gradeId) {
  465. return new Promise(resolve => {
  466. this.$api.courseGoodsRebuildStatus({
  467. goodsId:goodsId,
  468. gradeId:gradeId
  469. }).then(res => {
  470. resolve(res.data.data)
  471. })
  472. })
  473. },
  474. replay(index) {
  475. if (index == 0) {
  476. return '日';
  477. }
  478. if (index == 1) {
  479. return '一';
  480. }
  481. if (index == 2) {
  482. return '二';
  483. }
  484. if (index == 3) {
  485. return '三';
  486. }
  487. if (index == 4) {
  488. return '四';
  489. }
  490. if (index == 5) {
  491. return '五';
  492. }
  493. if (index == 6) {
  494. return '六';
  495. }
  496. },
  497. getList() {
  498. let self = this;
  499. this.$api.getsystemplanlist({ status: 1 }).then(result => {
  500. result.data.rows.forEach((item, index) => {
  501. item.show = 'none';
  502. });
  503. self.list = result.data.rows;
  504. if (result.data.rows.length > 0) {
  505. self.listItem = self.list[0];
  506. self.dealMonth();
  507. if (self.list.length > 0) {
  508. self.listItem = self.list[0];
  509. self.dealMonth();
  510. self.havePlan = true;
  511. }
  512. } else {
  513. self.havePlan = false;
  514. }
  515. self.updateHomePlan();
  516. });
  517. },
  518. updateHomePlan() {
  519. /* const pages = getCurrentPages(); //获取页面栈
  520. const beforePage = pages[pages.length - 2]; //前一个页面
  521. beforePage.$vm.updateHomePlan(); */
  522. },
  523. newPlan() {
  524. this.$navTo.togo('/pages2/plan/create');
  525. },
  526. edit(item) {
  527. this.$navTo.togo('/pages2/plan/edit', {
  528. id: item.planId
  529. });
  530. },
  531. swipeChange(e, item) {
  532. item.show = e;
  533. },
  534. openShow(item) {
  535. if (item.show == 'none') {
  536. item.show = 'right';
  537. } else {
  538. item.show = 'none';
  539. }
  540. },
  541. updateHomePlan() {
  542. const pages = getCurrentPages(); //获取页面栈
  543. const beforePage = pages[pages.length - 2]; //前一个页面
  544. // beforePage.$vm.updateHomePlan();
  545. },
  546. close_calendar() {
  547. this.isOpen = false;
  548. this.showDayList = this.calendarStudyVo.miniDayStudyList;
  549. },
  550. oepn_calendar() {
  551. this.isOpen = true;
  552. this.showDayList = this.calendarStudyVo.dayStudyList;
  553. },
  554. random(min, max) {
  555. return Math.floor(Math.random() * (max - min)) + min;
  556. }
  557. }
  558. };
  559. </script>
  560. <style scope>
  561. .dis_ffs {
  562. display: flex;
  563. flex-direction: column;
  564. align-items: center;
  565. justify-content: center;
  566. }
  567. .tipBtn {
  568. width: 160rpx;
  569. height: 56rpx;
  570. background: #007aff;
  571. border-radius: 16rpx;
  572. color: #ffffff;
  573. text-align: center;
  574. line-height: 56rpx;
  575. margin-top: 30rpx;
  576. }
  577. .tipBox {
  578. display: flex;
  579. align-items: center; /*垂直居中*/
  580. justify-content: center; /*水平居中*/
  581. flex-direction: column;
  582. margin-top: 40%;
  583. }
  584. .tip {
  585. color: #999999;
  586. font-size: 32rpx;
  587. }
  588. .newPlan {
  589. width: 200rpx;
  590. height: 64rpx;
  591. background: #ffffff;
  592. box-shadow: 0rpx 0rpx 16rpx 4rpx rgba(47, 67, 121, 0.15);
  593. border-radius: 32rpx;
  594. font-size: 24rpx;
  595. font-family: PingFang SC;
  596. font-weight: bold;
  597. color: #32467b;
  598. text-align: center;
  599. line-height: 64rpx;
  600. position: fixed;
  601. bottom: 60rpx;
  602. left: 50%;
  603. transform: translateX(-50%);
  604. }
  605. .operate_img3 {
  606. background: #3478f6;
  607. }
  608. .operate_img2 {
  609. background: #f09a37;
  610. }
  611. .operate_img1 {
  612. background: #eb4d3d;
  613. }
  614. .operate_img {
  615. width: 64rpx;
  616. height: 64rpx;
  617. border-radius: 50%;
  618. padding:14rpx;
  619. box-sizing: border-box;
  620. margin: 10rpx 0;
  621. }
  622. .operate {
  623. margin-top:16rpx;
  624. width: 80rpx;
  625. display: flex;
  626. flex-direction: column;
  627. align-items: center;
  628. justify-content: center;
  629. }
  630. .item_t2 {
  631. font-size: 23rpx;
  632. color: #32467b;
  633. }
  634. .item_date {
  635. width: 26rpx;
  636. height: 26rpx;
  637. background: #007AFF;
  638. border-radius: 50%;
  639. margin-left: 20rpx;
  640. font-size: 18rpx;
  641. color: #fefeff;
  642. text-align: center;
  643. }
  644. .r_t2 {
  645. font-size: 20rpx;
  646. font-family: PingFang SC;
  647. font-weight: 400;
  648. color: #0c141f;
  649. white-space: pre-wrap;
  650. }
  651. .r_image {
  652. width: 278rpx;
  653. height: 134rpx;
  654. border-radius: 16rpx;
  655. }
  656. .img_more {
  657. width: 26rpx;
  658. height: 26rpx;
  659. }
  660. .item_t1 {
  661. font-size: 30rpx;
  662. font-family: PingFang SC;
  663. font-weight: 500;
  664. color: #32467b;
  665. }
  666. .list_item_bac1 {
  667. background: linear-gradient(45deg, rgba(172, 203, 238, 0.2), rgba(231, 240, 253, 0.2));
  668. }
  669. .list_item_bac2 {
  670. background: linear-gradient(45deg, rgba(255, 232, 206, 0.3), rgba(251, 184, 160, 0.3));
  671. }
  672. .list_item {
  673. width: 100%;
  674. min-height: 418rpx;
  675. box-shadow: 0rpx 0rpx 16rpx 4rpx rgba(47, 67, 121, 0.05);
  676. border-radius: 24rpx;
  677. margin-top: 16rpx;
  678. padding: 15rpx;
  679. background:#fff;
  680. }
  681. .date_dot {
  682. width: 6rpx;
  683. height: 6rpx;
  684. background: #ffcc00;
  685. border-radius: 50%;
  686. margin: 0 auto;
  687. }
  688. .date_note {
  689. border-radius: 15rpx;
  690. padding:0 5rpx;
  691. min-width:50rpx;
  692. height: 29rpx;
  693. line-height: 25rpx;
  694. border: 1px solid #ffcc00;
  695. font-size: 18rpx;
  696. color: #ffcc00;
  697. text-align: center;
  698. display: inline-block;
  699. position: absolute;
  700. top: -19rpx;
  701. left: 80%;
  702. }
  703. .circle_num {
  704. border-radius: 15rpx;
  705. padding:0 5rpx;
  706. min-width:50rpx;
  707. height: 29rpx;
  708. border: 1px solid #ffcc00;
  709. font-size: 18rpx;
  710. color: #ffcc00;
  711. text-align: center;
  712. display: inline-block;
  713. margin: 5rpx;
  714. }
  715. .date_t2 {
  716. font-size: 30rpx;
  717. font-family: PingFang SC;
  718. font-weight: 500;
  719. color: #2f4379;
  720. }
  721. .date_line_close {
  722. width: 40rpx;
  723. height: 20rpx;
  724. }
  725. .date_line {
  726. width: 40rpx;
  727. height: 6rpx;
  728. background: #7f8caf;
  729. border-radius: 2rpx;
  730. }
  731. .date_num {
  732. width: 14%;
  733. text-align: center;
  734. position: relative;
  735. display: inline-block;
  736. margin-top: 20rpx;
  737. }
  738. .date_num_color0 {
  739. position:relative;
  740. display: inline-block;
  741. width: 48rpx;
  742. height: 48rpx;
  743. line-height: 48rpx;
  744. text-align: center;
  745. color: #32467b;
  746. }
  747. .date_num_color1 {
  748. position:relative;
  749. display: inline-block;
  750. width: 48rpx;
  751. height: 48rpx;
  752. line-height: 48rpx;
  753. text-align: center;
  754. color: #34c759;
  755. }
  756. .date_num_color2 {
  757. position:relative;
  758. display: inline-block;
  759. width: 48rpx;
  760. height: 48rpx;
  761. line-height: 48rpx;
  762. text-align: center;
  763. color: #ff3b30;
  764. }
  765. .date_num_color3 {
  766. position:relative;
  767. color: #007AFF;
  768. background-color: rgba(229,241,255,1);
  769. border-radius: 50%;
  770. width: 48rpx;
  771. height: 48rpx;
  772. line-height: 48rpx;
  773. text-align: center;
  774. display: inline-block;
  775. }
  776. .active_color{
  777. color: #fff;
  778. background-color: #007AFF;
  779. border-radius: 50%;
  780. width: 48rpx;
  781. height: 48rpx;
  782. line-height: 48rpx;
  783. text-align: center;
  784. display: inline-block;
  785. }
  786. .card_date {
  787. width: 14%;
  788. text-align: center;
  789. color: #7f8caf;
  790. position: relative;
  791. display: inline-block;
  792. }
  793. .date_t1 {
  794. font-size: 24rpx;
  795. font-family: PingFang SC;
  796. font-weight: bold;
  797. color: #2f4379;
  798. width: 100%;
  799. text-align: center;
  800. padding: 20rpx 0;
  801. }
  802. .card {
  803. width: 100%;
  804. background: #ffffff;
  805. box-shadow: 0rpx 0rpx 16rpx 4rpx rgba(47, 67, 121, 0.05);
  806. border-radius: 24rpx;
  807. padding-bottom: 20rpx;
  808. }
  809. page {
  810. background: rgba(234,238,241,1);
  811. }
  812. </style>