index.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848
  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.getZeroTime();
  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. });
  512. self.list = result.data.rows;
  513. if (result.data.rows.length > 0) {
  514. self.listItem = self.list[0];
  515. self.dealMonth();
  516. self.havePlan = true;
  517. // if (self.list.length > 0) {
  518. // self.listItem = self.list[0];
  519. // self.dealMonth();
  520. // self.havePlan = true;
  521. // }
  522. } else {
  523. self.havePlan = false;
  524. }
  525. self.updateHomePlan();
  526. });
  527. },
  528. updateHomePlan() {
  529. /* const pages = getCurrentPages(); //获取页面栈
  530. const beforePage = pages[pages.length - 2]; //前一个页面
  531. beforePage.$vm.updateHomePlan(); */
  532. },
  533. newPlan() {
  534. this.$navTo.togo('/pages2/plan/create');
  535. },
  536. edit(item) {
  537. this.$navTo.togo('/pages2/plan/edit', {
  538. id: item.planId
  539. });
  540. },
  541. swipeChange(e, item) {
  542. item.show = e;
  543. },
  544. openShow(item) {
  545. if (item.show == 'none') {
  546. item.show = 'right';
  547. } else {
  548. item.show = 'none';
  549. }
  550. },
  551. updateHomePlan() {
  552. const pages = getCurrentPages(); //获取页面栈
  553. const beforePage = pages[pages.length - 2]; //前一个页面
  554. // beforePage.$vm.updateHomePlan();
  555. },
  556. close_calendar() {
  557. this.isOpen = false;
  558. this.showDayList = this.calendarStudyVo.miniDayStudyList;
  559. },
  560. oepn_calendar() {
  561. this.isOpen = true;
  562. this.showDayList = this.calendarStudyVo.dayStudyList;
  563. },
  564. random(min, max) {
  565. return Math.floor(Math.random() * (max - min)) + min;
  566. }
  567. }
  568. };
  569. </script>
  570. <style scope>
  571. .dis_ffs {
  572. display: flex;
  573. flex-direction: column;
  574. align-items: center;
  575. justify-content: center;
  576. }
  577. .tipBtn {
  578. width: 160rpx;
  579. height: 56rpx;
  580. background: #007aff;
  581. border-radius: 16rpx;
  582. color: #ffffff;
  583. text-align: center;
  584. line-height: 56rpx;
  585. margin-top: 30rpx;
  586. }
  587. .tipBox {
  588. display: flex;
  589. align-items: center; /*垂直居中*/
  590. justify-content: center; /*水平居中*/
  591. flex-direction: column;
  592. margin-top: 40%;
  593. }
  594. .tip {
  595. color: #999999;
  596. font-size: 32rpx;
  597. }
  598. .newPlan {
  599. width: 200rpx;
  600. height: 64rpx;
  601. background: #ffffff;
  602. box-shadow: 0rpx 0rpx 16rpx 4rpx rgba(47, 67, 121, 0.15);
  603. border-radius: 32rpx;
  604. font-size: 24rpx;
  605. font-family: PingFang SC;
  606. font-weight: bold;
  607. color: #32467b;
  608. text-align: center;
  609. line-height: 64rpx;
  610. position: fixed;
  611. bottom: 60rpx;
  612. left: 50%;
  613. transform: translateX(-50%);
  614. }
  615. .operate_img3 {
  616. background: #3478f6;
  617. }
  618. .operate_img2 {
  619. background: #f09a37;
  620. }
  621. .operate_img1 {
  622. background: #eb4d3d;
  623. }
  624. .operate_img {
  625. width: 64rpx;
  626. height: 64rpx;
  627. border-radius: 50%;
  628. padding:14rpx;
  629. box-sizing: border-box;
  630. margin: 10rpx 0;
  631. }
  632. .operate {
  633. margin-top:16rpx;
  634. width: 80rpx;
  635. display: flex;
  636. flex-direction: column;
  637. align-items: center;
  638. justify-content: center;
  639. }
  640. .item_t2 {
  641. font-size: 23rpx;
  642. color: #32467b;
  643. }
  644. .item_date {
  645. width: 26rpx;
  646. height: 26rpx;
  647. background: #007AFF;
  648. border-radius: 50%;
  649. margin-left: 20rpx;
  650. font-size: 18rpx;
  651. color: #fefeff;
  652. text-align: center;
  653. }
  654. .r_t2 {
  655. font-size: 20rpx;
  656. font-family: PingFang SC;
  657. font-weight: 400;
  658. color: #0c141f;
  659. white-space: pre-wrap;
  660. }
  661. .r_image {
  662. width: 278rpx;
  663. height: 134rpx;
  664. border-radius: 16rpx;
  665. }
  666. .img_more {
  667. width: 26rpx;
  668. height: 26rpx;
  669. }
  670. .item_t1 {
  671. font-size: 30rpx;
  672. font-family: PingFang SC;
  673. font-weight: 500;
  674. color: #32467b;
  675. }
  676. .list_item_bac1 {
  677. background: linear-gradient(45deg, rgba(172, 203, 238, 0.2), rgba(231, 240, 253, 0.2));
  678. }
  679. .list_item_bac2 {
  680. background: linear-gradient(45deg, rgba(255, 232, 206, 0.3), rgba(251, 184, 160, 0.3));
  681. }
  682. .list_item {
  683. width: 100%;
  684. min-height: 418rpx;
  685. box-shadow: 0rpx 0rpx 16rpx 4rpx rgba(47, 67, 121, 0.05);
  686. border-radius: 24rpx;
  687. margin-top: 16rpx;
  688. padding: 15rpx;
  689. background:#fff;
  690. }
  691. .date_dot {
  692. width: 6rpx;
  693. height: 6rpx;
  694. background: #ffcc00;
  695. border-radius: 50%;
  696. margin: 0 auto;
  697. }
  698. .date_note {
  699. border-radius: 15rpx;
  700. padding:0 5rpx;
  701. min-width:50rpx;
  702. height: 29rpx;
  703. line-height: 25rpx;
  704. border: 1px solid #ffcc00;
  705. font-size: 18rpx;
  706. color: #ffcc00;
  707. text-align: center;
  708. display: inline-block;
  709. position: absolute;
  710. top: -19rpx;
  711. left: 80%;
  712. }
  713. .circle_num {
  714. border-radius: 15rpx;
  715. padding:0 5rpx;
  716. min-width:50rpx;
  717. height: 29rpx;
  718. border: 1px solid #ffcc00;
  719. font-size: 18rpx;
  720. color: #ffcc00;
  721. text-align: center;
  722. display: inline-block;
  723. margin: 5rpx;
  724. }
  725. .date_t2 {
  726. font-size: 30rpx;
  727. font-family: PingFang SC;
  728. font-weight: 500;
  729. color: #2f4379;
  730. }
  731. .date_line_close {
  732. width: 40rpx;
  733. height: 20rpx;
  734. }
  735. .date_line {
  736. width: 40rpx;
  737. height: 6rpx;
  738. background: #7f8caf;
  739. border-radius: 2rpx;
  740. }
  741. .date_num {
  742. width: 14%;
  743. text-align: center;
  744. position: relative;
  745. display: inline-block;
  746. margin-top: 20rpx;
  747. }
  748. .date_num_color0 {
  749. position:relative;
  750. display: inline-block;
  751. width: 48rpx;
  752. height: 48rpx;
  753. line-height: 48rpx;
  754. text-align: center;
  755. color: #32467b;
  756. }
  757. .date_num_color1 {
  758. position:relative;
  759. display: inline-block;
  760. width: 48rpx;
  761. height: 48rpx;
  762. line-height: 48rpx;
  763. text-align: center;
  764. color: #34c759;
  765. }
  766. .date_num_color2 {
  767. position:relative;
  768. display: inline-block;
  769. width: 48rpx;
  770. height: 48rpx;
  771. line-height: 48rpx;
  772. text-align: center;
  773. color: #ff3b30;
  774. }
  775. .date_num_color3 {
  776. position:relative;
  777. color: #007AFF;
  778. background-color: rgba(229,241,255,1);
  779. border-radius: 50%;
  780. width: 48rpx;
  781. height: 48rpx;
  782. line-height: 48rpx;
  783. text-align: center;
  784. display: inline-block;
  785. }
  786. .active_color{
  787. color: #fff;
  788. background-color: #007AFF;
  789. border-radius: 50%;
  790. width: 48rpx;
  791. height: 48rpx;
  792. line-height: 48rpx;
  793. text-align: center;
  794. display: inline-block;
  795. }
  796. .card_date {
  797. width: 14%;
  798. text-align: center;
  799. color: #7f8caf;
  800. position: relative;
  801. display: inline-block;
  802. }
  803. .date_t1 {
  804. font-size: 24rpx;
  805. font-family: PingFang SC;
  806. font-weight: bold;
  807. color: #2f4379;
  808. width: 100%;
  809. text-align: center;
  810. padding: 20rpx 0;
  811. }
  812. .card {
  813. width: 100%;
  814. background: #ffffff;
  815. box-shadow: 0rpx 0rpx 16rpx 4rpx rgba(47, 67, 121, 0.05);
  816. border-radius: 24rpx;
  817. padding-bottom: 20rpx;
  818. }
  819. page {
  820. background: rgba(234,238,241,1);
  821. }
  822. </style>