index.vue 20 KB

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