index.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854
  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.calendarStudyVo = {}
  278. this.workList = this.getStudyCourseByDay();
  279. // this.workList = this.listItem.goodsVos;
  280. if (this.listItem !== undefined) {
  281. for (let i = 0; i < this.listItem.calendarStudyVo.length; i++) {
  282. let item = this.listItem.calendarStudyVo[i];
  283. if (item.month == currentMonth) {
  284. this.monthIndex = i;
  285. this.calendarStudyVo = item;
  286. if (i > 0) {
  287. this.havePreviousMonth = true;
  288. }
  289. if (i < this.listItem.calendarStudyVo.length - 1) {
  290. this.haveNextMonth = true;
  291. }
  292. }
  293. }
  294. if(!this.calendarStudyVo.dayStudyList) { //计划没有当前月
  295. this.monthIndex = 0;
  296. this.calendarStudyVo = this.listItem.calendarStudyVo[0];
  297. if(this.listItem.calendarStudyVo.length > 1) {
  298. console.log('len')
  299. this.haveNextMonth = true;
  300. }
  301. }
  302. this.dealDayList();
  303. }
  304. },
  305. openEdit(item) {
  306. this.activeDate = '';
  307. this.listItem = item;
  308. this.isOpen = false;
  309. this.dealMonth();
  310. },
  311. dealDayList() {
  312. let firstItem = this.calendarStudyVo.dayStudyList[0];
  313. this.calendarStudyVo.miniDayStudyList = []; //创建缩放的数组
  314. let date = new Date();
  315. let num = date.getDate();
  316. //如果不是当前月,默认显示第一周
  317. if ((date.getMonth() + 1) != this.calendarStudyVo.month) {
  318. num = 1;
  319. }
  320. for (let i = 0; i < firstItem.studyDay; i++) {
  321. //补齐1号前的日数凑满一周
  322. this.calendarStudyVo.dayStudyList.unshift({ date: 0 });
  323. }
  324. let todayIndex;
  325. let todayItem;
  326. for (let i = 0; i < this.calendarStudyVo.dayStudyList.length; i++) {
  327. let item = this.calendarStudyVo.dayStudyList[i];
  328. item.color = 0;
  329. if (item.date == num) {
  330. if (date.getMonth() + 1 == this.calendarStudyVo.month) {
  331. item.color = 3;
  332. }
  333. todayIndex = i;
  334. todayItem = item;
  335. }
  336. if (item.perform == 1) {
  337. item.color = 1;
  338. }
  339. if (item.perform == 2) {
  340. item.color = 2;
  341. }
  342. item.note = item.studyCourseKnob;
  343. if (item.note > 0) {
  344. item.dot = true;
  345. }
  346. }
  347. let start
  348. start = todayIndex - todayItem.studyDay;
  349. /* if(todayItem){
  350. }else{
  351. //今天在下个月不存在,例如31号
  352. todayIndex = this.calendarStudyVo.dayStudyList.length-1
  353. todayItem = this.calendarStudyVo.dayStudyList[todayIndex]
  354. start = todayIndex - todayItem.studyDay;
  355. } */
  356. /* if ((date.getMonth() + 1) != this.calendarStudyVo.month) {
  357. todayIndex = 0
  358. todayItem = this.calendarStudyVo.dayStudyList[todayIndex]
  359. start = 0;
  360. } */
  361. console.log(start,689)
  362. /* this.calendarStudyVo.miniDayStudyList = []
  363. for(let i=start;i<start + 7;i++){
  364. this.calendarStudyVo.miniDayStudyList.push(this.calendarStudyVo.dayStudyList[i])
  365. } */
  366. console.log(this.calendarStudyVo.miniDayStudyList,789)
  367. this.calendarStudyVo.miniDayStudyList = this.calendarStudyVo.dayStudyList.slice(start, start + 7);
  368. this.showDayList = this.calendarStudyVo.miniDayStudyList;
  369. console.log(this.showDayList)
  370. for (let i = 0; i < this.calendarStudyVo.dayStudyList.length; i++) {
  371. let item = this.calendarStudyVo.dayStudyList[i];
  372. if (item.note > 0) {
  373. item.note = 0;
  374. this.showDayList.forEach(day => {
  375. if(day.date == item.date) {
  376. if(day.daySectionList) {
  377. day.daySectionList.forEach(section => {
  378. this.listItem.goodsVos.forEach(vos => {
  379. if(vos.goodsId == section.goodsId) {
  380. item.note += vos.classHours
  381. }
  382. })
  383. })
  384. }
  385. }
  386. })
  387. }
  388. }
  389. },
  390. async jumpDetail(item) {
  391. let currentTime = this.$method.timest();
  392. if(currentTime < item.studyStartTime || currentTime > item.studyEndTime) {
  393. uni.showToast({
  394. title:'不在学习有效期,不可以学习了哦',
  395. icon:'none'
  396. })
  397. return;
  398. }
  399. if( (item.classStartTime && currentTime <= item.classStartTime) || (item.classEndTime && currentTime >= item.classEndTime) ) {
  400. uni.showToast({
  401. title:'不在班级有效期,不能进入学习',
  402. icon:'none'
  403. })
  404. return;
  405. }
  406. if(item.learningStatus == 2) {
  407. uni.showToast({
  408. title:'开放学习时间待定,不能进入学习',
  409. icon:'none'
  410. })
  411. return;
  412. }
  413. if(item.classStatus == 0 ) {
  414. uni.showToast({
  415. title:'尚未开班,不能进入学习',
  416. icon:'none'
  417. })
  418. return;
  419. }
  420. if(item.learningStatus == 3 && (currentTime < item.learningTimeStart) ) {
  421. uni.showToast({
  422. title:'不在开放学习时间,不能进入学习',
  423. icon:'none'
  424. })
  425. return;
  426. }
  427. if(item.gradeStatus == 1 && item.status == 1 && (item.studyEndTime > currentTime) && (item.classEndTime && (item.classEndTime < currentTime)) && (item.periodStatus == 0 || item.periodStatus == -1) && item.studyCount > 0) {
  428. uni.showModal({
  429. title:'提示',
  430. content:'班级已过期,需要重新选班',
  431. showCancel:false,
  432. success:() => {
  433. uni.navigateTo({
  434. url:"/pages2/wd/class"
  435. })
  436. }
  437. })
  438. return;
  439. }
  440. let rebuildStatus = await this.courseGoodsRebuildStatus(item.goodsId,item.gradeId);
  441. if(rebuildStatus == 0) {
  442. this.$navTo.togo('/pages2/learn/details', {
  443. gradeId:item.gradeId,
  444. goodsId: item.goodsId
  445. })
  446. return;
  447. }
  448. if(item.courseNum == 1 ) {
  449. this.$api.courseCourseList({
  450. pageNum:1,
  451. pageSize:1,
  452. goodsId:item.goodsId,
  453. gradeId:item.gradeId
  454. }).then(res => {
  455. if(res.data.code == 200) {
  456. uni.navigateTo({
  457. url:`/pages3/polyv/detail?id=${res.data.rows[0].courseId}&goodsId=${item.goodsId}`
  458. })
  459. }
  460. });
  461. return;
  462. }
  463. this.$navTo.togo('/pages2/wd/course', {
  464. id: item.goodsId,
  465. gid:item.gradeId
  466. });
  467. return;
  468. },
  469. /**
  470. * @param {Object} goodsId 商品id
  471. * 查询商品重修状态
  472. */
  473. courseGoodsRebuildStatus(goodsId,gradeId) {
  474. return new Promise(resolve => {
  475. this.$api.courseGoodsRebuildStatus({
  476. goodsId:goodsId,
  477. gradeId:gradeId
  478. }).then(res => {
  479. resolve(res.data.data)
  480. })
  481. })
  482. },
  483. replay(index) {
  484. if (index == 0) {
  485. return '日';
  486. }
  487. if (index == 1) {
  488. return '一';
  489. }
  490. if (index == 2) {
  491. return '二';
  492. }
  493. if (index == 3) {
  494. return '三';
  495. }
  496. if (index == 4) {
  497. return '四';
  498. }
  499. if (index == 5) {
  500. return '五';
  501. }
  502. if (index == 6) {
  503. return '六';
  504. }
  505. },
  506. getList() {
  507. let self = this;
  508. this.$api.getsystemplanlist({ status: 1 }).then(result => {
  509. result.data.rows.forEach((item, index) => {
  510. item.show = 'none';
  511. item.studyNum = 0;
  512. item.pitchNum = 0;
  513. item.goodsVos.forEach(vos => {
  514. item.pitchNum += vos.secAllNum
  515. item.studyNum += vos.stuAllNum
  516. })
  517. });
  518. self.list = result.data.rows;
  519. if (result.data.rows.length > 0) {
  520. self.listItem = self.list[0];
  521. self.dealMonth();
  522. self.havePlan = true;
  523. // if (self.list.length > 0) {
  524. // self.listItem = self.list[0];
  525. // self.dealMonth();
  526. // self.havePlan = true;
  527. // }
  528. } else {
  529. self.havePlan = false;
  530. }
  531. self.updateHomePlan();
  532. });
  533. },
  534. updateHomePlan() {
  535. /* const pages = getCurrentPages(); //获取页面栈
  536. const beforePage = pages[pages.length - 2]; //前一个页面
  537. beforePage.$vm.updateHomePlan(); */
  538. },
  539. newPlan() {
  540. this.$navTo.togo('/pages2/plan/create');
  541. },
  542. edit(item) {
  543. this.$navTo.togo('/pages2/plan/edit', {
  544. id: item.planId
  545. });
  546. },
  547. swipeChange(e, item) {
  548. item.show = e;
  549. },
  550. openShow(item) {
  551. if (item.show == 'none') {
  552. item.show = 'right';
  553. } else {
  554. item.show = 'none';
  555. }
  556. },
  557. updateHomePlan() {
  558. const pages = getCurrentPages(); //获取页面栈
  559. const beforePage = pages[pages.length - 2]; //前一个页面
  560. // beforePage.$vm.updateHomePlan();
  561. },
  562. close_calendar() {
  563. this.isOpen = false;
  564. this.showDayList = this.calendarStudyVo.miniDayStudyList;
  565. },
  566. oepn_calendar() {
  567. this.isOpen = true;
  568. this.showDayList = this.calendarStudyVo.dayStudyList;
  569. },
  570. random(min, max) {
  571. return Math.floor(Math.random() * (max - min)) + min;
  572. }
  573. }
  574. };
  575. </script>
  576. <style scope>
  577. .dis_ffs {
  578. display: flex;
  579. flex-direction: column;
  580. align-items: center;
  581. justify-content: center;
  582. }
  583. .tipBtn {
  584. width: 160rpx;
  585. height: 56rpx;
  586. background: #007aff;
  587. border-radius: 16rpx;
  588. color: #ffffff;
  589. text-align: center;
  590. line-height: 56rpx;
  591. margin-top: 30rpx;
  592. }
  593. .tipBox {
  594. display: flex;
  595. align-items: center; /*垂直居中*/
  596. justify-content: center; /*水平居中*/
  597. flex-direction: column;
  598. margin-top: 40%;
  599. }
  600. .tip {
  601. color: #999999;
  602. font-size: 32rpx;
  603. }
  604. .newPlan {
  605. width: 200rpx;
  606. height: 64rpx;
  607. background: #ffffff;
  608. box-shadow: 0rpx 0rpx 16rpx 4rpx rgba(47, 67, 121, 0.15);
  609. border-radius: 32rpx;
  610. font-size: 24rpx;
  611. font-family: PingFang SC;
  612. font-weight: bold;
  613. color: #32467b;
  614. text-align: center;
  615. line-height: 64rpx;
  616. position: fixed;
  617. bottom: 60rpx;
  618. left: 50%;
  619. transform: translateX(-50%);
  620. }
  621. .operate_img3 {
  622. background: #3478f6;
  623. }
  624. .operate_img2 {
  625. background: #f09a37;
  626. }
  627. .operate_img1 {
  628. background: #eb4d3d;
  629. }
  630. .operate_img {
  631. width: 64rpx;
  632. height: 64rpx;
  633. border-radius: 50%;
  634. padding:14rpx;
  635. box-sizing: border-box;
  636. margin: 10rpx 0;
  637. }
  638. .operate {
  639. margin-top:16rpx;
  640. width: 80rpx;
  641. display: flex;
  642. flex-direction: column;
  643. align-items: center;
  644. justify-content: center;
  645. }
  646. .item_t2 {
  647. font-size: 23rpx;
  648. color: #32467b;
  649. }
  650. .item_date {
  651. width: 26rpx;
  652. height: 26rpx;
  653. background: #007AFF;
  654. border-radius: 50%;
  655. margin-left: 20rpx;
  656. font-size: 18rpx;
  657. color: #fefeff;
  658. text-align: center;
  659. }
  660. .r_t2 {
  661. font-size: 20rpx;
  662. font-family: PingFang SC;
  663. font-weight: 400;
  664. color: #0c141f;
  665. white-space: pre-wrap;
  666. }
  667. .r_image {
  668. width: 278rpx;
  669. height: 134rpx;
  670. border-radius: 16rpx;
  671. }
  672. .img_more {
  673. width: 26rpx;
  674. height: 26rpx;
  675. }
  676. .item_t1 {
  677. font-size: 30rpx;
  678. font-family: PingFang SC;
  679. font-weight: 500;
  680. color: #32467b;
  681. }
  682. .list_item_bac1 {
  683. background: linear-gradient(45deg, rgba(172, 203, 238, 0.2), rgba(231, 240, 253, 0.2));
  684. }
  685. .list_item_bac2 {
  686. background: linear-gradient(45deg, rgba(255, 232, 206, 0.3), rgba(251, 184, 160, 0.3));
  687. }
  688. .list_item {
  689. width: 100%;
  690. min-height: 418rpx;
  691. box-shadow: 0rpx 0rpx 16rpx 4rpx rgba(47, 67, 121, 0.05);
  692. border-radius: 24rpx;
  693. margin-top: 16rpx;
  694. padding: 15rpx;
  695. background:#fff;
  696. }
  697. .date_dot {
  698. width: 6rpx;
  699. height: 6rpx;
  700. background: #ffcc00;
  701. border-radius: 50%;
  702. margin: 0 auto;
  703. }
  704. .date_note {
  705. border-radius: 15rpx;
  706. padding:0 5rpx;
  707. min-width:50rpx;
  708. height: 29rpx;
  709. line-height: 25rpx;
  710. border: 1px solid #ffcc00;
  711. font-size: 18rpx;
  712. color: #ffcc00;
  713. text-align: center;
  714. display: inline-block;
  715. position: absolute;
  716. top: -19rpx;
  717. left: 80%;
  718. }
  719. .circle_num {
  720. border-radius: 15rpx;
  721. padding:0 5rpx;
  722. min-width:50rpx;
  723. height: 29rpx;
  724. border: 1px solid #ffcc00;
  725. font-size: 18rpx;
  726. color: #ffcc00;
  727. text-align: center;
  728. display: inline-block;
  729. margin: 5rpx;
  730. }
  731. .date_t2 {
  732. font-size: 30rpx;
  733. font-family: PingFang SC;
  734. font-weight: 500;
  735. color: #2f4379;
  736. }
  737. .date_line_close {
  738. width: 40rpx;
  739. height: 20rpx;
  740. }
  741. .date_line {
  742. width: 40rpx;
  743. height: 6rpx;
  744. background: #7f8caf;
  745. border-radius: 2rpx;
  746. }
  747. .date_num {
  748. width: 14%;
  749. text-align: center;
  750. position: relative;
  751. display: inline-block;
  752. margin-top: 20rpx;
  753. }
  754. .date_num_color0 {
  755. position:relative;
  756. display: inline-block;
  757. width: 48rpx;
  758. height: 48rpx;
  759. line-height: 48rpx;
  760. text-align: center;
  761. color: #32467b;
  762. }
  763. .date_num_color1 {
  764. position:relative;
  765. display: inline-block;
  766. width: 48rpx;
  767. height: 48rpx;
  768. line-height: 48rpx;
  769. text-align: center;
  770. color: #34c759;
  771. }
  772. .date_num_color2 {
  773. position:relative;
  774. display: inline-block;
  775. width: 48rpx;
  776. height: 48rpx;
  777. line-height: 48rpx;
  778. text-align: center;
  779. color: #ff3b30;
  780. }
  781. .date_num_color3 {
  782. position:relative;
  783. color: #007AFF;
  784. background-color: rgba(229,241,255,1);
  785. border-radius: 50%;
  786. width: 48rpx;
  787. height: 48rpx;
  788. line-height: 48rpx;
  789. text-align: center;
  790. display: inline-block;
  791. }
  792. .active_color{
  793. color: #fff;
  794. background-color: #007AFF;
  795. border-radius: 50%;
  796. width: 48rpx;
  797. height: 48rpx;
  798. line-height: 48rpx;
  799. text-align: center;
  800. display: inline-block;
  801. }
  802. .card_date {
  803. width: 14%;
  804. text-align: center;
  805. color: #7f8caf;
  806. position: relative;
  807. display: inline-block;
  808. }
  809. .date_t1 {
  810. font-size: 24rpx;
  811. font-family: PingFang SC;
  812. font-weight: bold;
  813. color: #2f4379;
  814. width: 100%;
  815. text-align: center;
  816. padding: 20rpx 0;
  817. }
  818. .card {
  819. width: 100%;
  820. background: #ffffff;
  821. box-shadow: 0rpx 0rpx 16rpx 4rpx rgba(47, 67, 121, 0.05);
  822. border-radius: 24rpx;
  823. padding-bottom: 20rpx;
  824. }
  825. page {
  826. background: rgba(234,238,241,1);
  827. }
  828. </style>