index.vue 20 KB

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