index.vue 24 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075
  1. <template>
  2. <view class="index">
  3. <u-navbar class="navbar" :is-back="false" :border-bottom="false" title-color="#333333" back-icon-color="#ffffff">
  4. <view class="slot-wrap">
  5. <image src="/static/logo2.png"></image>
  6. </view>
  7. </u-navbar>
  8. <view class="swiper">
  9. <swiper :indicator-dots="false" indicator-color="#fff" indicator-active-color="#007AFF" :style="{'height':swiperHeight+'rpx'}" @change="swiperChange" :interval="interval" :duration="duration" :autoplay="autoplay" :circular="true">
  10. <swiper-item v-for="(swiper,index) in list" :key="index" @click="swiperClick(swiper)">
  11. <image @load="imageLoad" :src="$method.splitImgHost(swiper.adverUrl, true)" mode="widthFix"></image>
  12. </swiper-item>
  13. <!-- <swiper-item >
  14. <image @load="imageLoad" src="http://file.xyyxt.net/oss/images/file/20220111.jpg" mode="widthFix"></image>
  15. </swiper-item> -->
  16. </swiper>
  17. <view class="dots">
  18. <view class="dot" :class="{'active':index == current}" v-for="(swiper,index) in list" :key="index"></view>
  19. </view>
  20. </view>
  21. <view class="content">
  22. <view class="notice" v-if="infoNums">
  23. <view class="notice__content">
  24. <image src="/static/icon/msg_icon1.png" class="icon"></image>
  25. <view class="text">
  26. 您有{{infoNums}}条新的通知
  27. </view>
  28. <view class="btn" @click="jumpPage">立即查看</view>
  29. </view>
  30. </view>
  31. <view>
  32. <!-- 日历-->
  33. <view class="calendar_card">
  34. <view class="card_box">
  35. <u-row gutter="16">
  36. <u-col span="10" >
  37. <view style="height:60rpx;">
  38. <text class="t1" v-if="nearByDay !== '' && nearByDay !== null">距离最近一次考试还剩{{nearByDay}}天</text>
  39. </view>
  40. </u-col>
  41. <u-col offset="1" span="1">
  42. <view @click="jumpPlan"><image src="/static/more.png" class="img_more"></image></view>
  43. </u-col>
  44. </u-row>
  45. </view>
  46. <u-line color="#EEEEEE" />
  47. <view style="width: 100%;display: flex;justify-content:center;margin-top: 20rpx;">
  48. <view v-for="(item, index) in date" :key="index" class="card_date">{{ item }}</view>
  49. </view>
  50. <view style="width: 100%;display: flex;justify-content:center;margin-top: 40rpx;">
  51. <view v-for="(item, index) in date_num" :key="index" class="date_num">
  52. <view v-if="item.color == 0" class="date_num_color0" v-show="item.date > 0">
  53. {{ item.date }}
  54. <view v-if="item.note > 0" class="date_note">{{ item.note }}</view>
  55. <view v-if="item.dot" class="date_dot"></view>
  56. </view>
  57. <view v-if="item.color == 1" class="date_num_color1">
  58. {{ item.date }}
  59. <view v-if="item.note > 0" class="date_note">{{ item.note }}</view>
  60. <view v-if="item.dot" class="date_dot"></view>
  61. </view>
  62. <view v-if="item.color == 2" class="date_num_color2">
  63. {{ item.date }}
  64. <view v-if="item.note > 0" class="date_note">{{ item.note }}</view>
  65. <view v-if="item.dot" class="date_dot"></view>
  66. </view>
  67. <view v-if="item.color == 3" class="date_num_color3">
  68. {{ item.date }}
  69. <view v-if="item.note > 0" class="date_note">{{ item.note }}</view>
  70. <view v-if="item.dot" class="date_dot"></view>
  71. </view>
  72. </view>
  73. </view>
  74. <view style="width: 100%;margin-top: 20rpx;" v-if="workList.length > 0">
  75. <u-row gutter="16">
  76. <u-col span="2" text-align="center">
  77. <view><image src="/static/left.png" class="arr-icon" @click="preveItem"></image></view>
  78. </u-col>
  79. <u-col span="8" text-align="center">
  80. <view class="course_title" @click="jumpGoodsDetail(goodsItem)">{{ goodsItem.goodsName }}</view>
  81. </u-col>
  82. <u-col span="2" text-align="center">
  83. <view><image src="/static/right.png" class="arr-icon" @click="nextItem"></image></view>
  84. </u-col>
  85. </u-row>
  86. </view>
  87. </view>
  88. </view>
  89. <u-tabs class="tabs" :current="tabCurrent" @change="tab" :list="menu" :activeStyle="{fontSize:'36rpx'}" :inactiveStyle="{color:'#EAEEF1',fontSize:'30rpx'}" sticky></u-tabs>
  90. <view class="course-list" v-show="tabCurrent==0">
  91. <navigator hover-class="none" class="item" v-for="(item,index) in list1" :key="index" :url="'/pages3/course/detail?id='+item.goodsId">
  92. <view class="img">
  93. <image :src="$method.splitImgHost(item.coverUrl, true)"></image>
  94. <view class="time" v-if="item.year">{{item.year?item.year:''}}</view>
  95. </view>
  96. <view class="text">
  97. <view class="title">{{item.goodsName}}</view>
  98. <view class="desc">
  99. <view class="left">
  100. {{item.classHours}}
  101. <text>学时</text>
  102. </view>
  103. <view class="right">¥ {{toFixed(item.standPrice)}}</view>
  104. </view>
  105. </view>
  106. </navigator>
  107. </view>
  108. <view class="course-list" v-show="tabCurrent==1">
  109. <navigator hover-class="none" class="item" v-for="(item,index) in list2" :key="index" :url="'/pages2/bank/detail?id='+item.goodsId">
  110. <view class="img">
  111. <image :src="$method.splitImgHost(item.coverUrl, true)"></image>
  112. <view class="time" v-if="item.year">{{item.year?item.year:''}}</view>
  113. </view>
  114. <view class="text">
  115. <view class="title">{{item.goodsName}}</view>
  116. <view class="desc">
  117. <view class="left" v-if="false">
  118. {{item.classHours}}
  119. <text>学时</text>
  120. </view>
  121. <view class="right">¥ {{toFixed(item.standPrice)}}</view>
  122. </view>
  123. </view>
  124. </navigator>
  125. </view>
  126. </view>
  127. </view>
  128. </template>
  129. <script>
  130. import { mapGetters } from 'vuex';
  131. export default {
  132. components: {},
  133. data() {
  134. return {
  135. infoNums:0,
  136. list:[],
  137. tabCurrent:0,
  138. date:['日','一','二','三','四','五','六'],
  139. date_num: [],
  140. current:0,
  141. indicatorDots: true,
  142. autoplay: true,
  143. interval: 2000,
  144. duration: 500,
  145. swiperHeight:0,
  146. nearByDay:'', //距离最近一天考试
  147. menu: [{
  148. name: '推荐课程',
  149. }, {
  150. name: '推荐题库',
  151. }],
  152. goodsIndex: 0,
  153. goodsItem: 0,
  154. workList: [],
  155. workTextList: [],
  156. planGoodsList: [],
  157. paramList: [
  158. {
  159. pageNum: 1,
  160. pageSize: 10,
  161. total: 0,
  162. showStatus: 0,
  163. goodsType:1
  164. },
  165. {
  166. pageNum: 1,
  167. pageSize: 10,
  168. total: 0,
  169. showStatus: 0,
  170. goodsType:2
  171. }
  172. ],
  173. list1: [],
  174. list2: [],
  175. isLogin:false,
  176. isOld:false
  177. };
  178. },
  179. onPullDownRefresh() {},
  180. onLoad(option) {
  181. this.init()
  182. this.courseList();
  183. this.bankList();
  184. this.getAdvertising();
  185. },
  186. onShow() {
  187. if (uni.getStorageSync('updateHome')){
  188. this.init()
  189. uni.removeStorageSync('updateHome'); //消费首页刷新事件
  190. }
  191. if(this.$method.isLogin()){
  192. this.$store.state.allowLoading = false;
  193. this.$api.getinfoAttached().then(res => {
  194. if(res.data.code ===200){
  195. this.infoNums = res.data.data.informSum
  196. const nums = res.data.data.informSum + res.data.data.orderSum + res.data.data.periodSum + res.data.data.planSum + res.data.data.subscribeSum;
  197. this.$store.commit('tabNum', nums);
  198. }
  199. })
  200. this.$store.state.allowLoading = true;
  201. }else{
  202. this.$store.commit('tabNum', 0);
  203. }
  204. },
  205. onShareAppMessage(res) {
  206. var self = this;
  207. return {
  208. title: '中正',
  209. path: `/pages/index/index?inviteCode=` + userInfo == null ? '' : userInfo.userAccount
  210. };
  211. },
  212. methods: {
  213. toFixed(number) {
  214. if(number > 0) {
  215. return number.toFixed(2)
  216. } else {
  217. return '0.00'
  218. }
  219. },
  220. /**
  221. * @param {Object} swiper
  222. * 点击轮播图
  223. */
  224. swiperClick(swiper) {
  225. if(swiper.jumpType == 1) { //无跳转
  226. return;
  227. } else if(swiper.jumpType == 2) { //url
  228. let url = encodeURIComponent(swiper.jumpUrl)
  229. uni.navigateTo({
  230. url:'/pages/webview/index?url='+swiper.jumpUrl
  231. })
  232. } else if(swiper.jumpType == 3) { //内部接口
  233. uni.navigateTo({
  234. url:swiper.jumpUrl
  235. })
  236. } else if(swiper.jumpType == 4) { //外部接口
  237. uni.navigateToMiniProgram({
  238. appId: swiper.remarks,
  239. path: swiper.jumpUrl,
  240. extraData: {
  241. },
  242. success(res) {
  243. // 打开成功
  244. },
  245. fail(err) {
  246. console.log(err)
  247. // uni.showToast({
  248. // title:'无效的appId,'+err.errMsg,
  249. // icon:'none'
  250. // })
  251. }
  252. })
  253. }
  254. },
  255. /**
  256. * banner图片加载完成
  257. */
  258. imageLoad(e) {
  259. let winW = 750;
  260. let imgW = e.detail.width;
  261. let imgH = e.detail.height;
  262. this.swiperHeight = 750 * imgH / imgW;
  263. },
  264. async getAdvertising() {
  265. await this.advertisingHomeLocation();
  266. await this.advertisingList();
  267. },
  268. getUserSubscribeRecentExam() {
  269. return new Promise(resolve => {
  270. this.$api.getUserSubscribeRecentExam().then(res => {
  271. if(res.data.code == 200) {
  272. if(res.data.data) {
  273. let day = this.$method.timestampToTime(res.data.data.applySiteExamTime,true).replace(/-/g,'/')
  274. let dayTime = day + ' ' + res.data.data.applySiteStartTime
  275. let NowTime = new Date(); //考试时间
  276. let examTime = new Date(dayTime); //考试时间
  277. let t = (examTime.getTime() / 1000) - (NowTime.getTime() / 1000).toFixed(0);
  278. if(t > 0) {
  279. let day = +this.$method.GetRTime(examTime.getTime() / 1000,true)
  280. this.nearByDay = day;
  281. }
  282. }
  283. resolve()
  284. }
  285. console.log(res)
  286. })
  287. })
  288. },
  289. advertisingHomeLocation() {
  290. return new Promise(resolve => {
  291. this.$api.advertisingHomeLocation().then(res => {
  292. this.interval = res.data.data.intervalTime * 1000
  293. resolve()
  294. })
  295. })
  296. },
  297. advertisingList() {
  298. return new Promise(resolve => {
  299. this.$api.advertisingList().then(res => {
  300. this.list = res.data.rows;
  301. resolve()
  302. })
  303. })
  304. },
  305. jumpPage(){
  306. this.$navTo.togo('/pages2/msg/index')
  307. },
  308. //课程
  309. courseList() {
  310. var self = this;
  311. var param = this.paramList[0];
  312. this.$api.goodsList(param).then(res => {
  313. self.paramList[0].total = res.data.total;
  314. self.list1.push.apply(self.list1, res.data.rows);
  315. if (self.list1.length === res.data.total) {
  316. self.paramList[0].showStatus = true;
  317. }
  318. });
  319. },
  320. //题库
  321. bankList() {
  322. var self = this;
  323. var param = this.paramList[1];
  324. this.$api.goodsList(param).then(res => {
  325. self.paramList[1].total = res.data.total;
  326. self.list2.push.apply(self.list2, res.data.rows);
  327. if (self.list2.length === res.data.total) {
  328. self.paramList[1].showStatus = true;
  329. }
  330. });
  331. },
  332. /**
  333. * @param {Object} item
  334. * 跳转课程详情
  335. */
  336. async jumpGoodsDetail(item){
  337. uni.navigateTo({
  338. url:'/pages2/wd/class'
  339. })
  340. // let currentTime = this.$method.getZeroTime();
  341. // if(currentTime < item.studyStartTime || currentTime > item.studyEndTime) {
  342. // uni.showToast({
  343. // title:'不在学习有效期,不可以学习了哦',
  344. // icon:'none'
  345. // })
  346. // return;
  347. // }
  348. // if( (item.classStartTime && currentTime <= item.classStartTime) || (item.classEndTime && currentTime >= item.classEndTime) ) {
  349. // uni.showToast({
  350. // title:'不在班级有效期,不能进入学习',
  351. // icon:'none'
  352. // })
  353. // return;
  354. // }
  355. // if(item.learningStatus == 2) {
  356. // uni.showToast({
  357. // title:'开放学习时间待定,不能进入学习',
  358. // icon:'none'
  359. // })
  360. // return;
  361. // }
  362. // if(item.classStatus == 0 ) {
  363. // uni.showToast({
  364. // title:'尚未开班,不能进入学习',
  365. // icon:'none'
  366. // })
  367. // return;
  368. // }
  369. // if(item.learningStatus == 3 && (currentTime < item.learningTimeStart) ) {
  370. // uni.showToast({
  371. // title:'不在开放学习时间,不能进入学习',
  372. // icon:'none'
  373. // })
  374. // return;
  375. // }
  376. // if(item.gradeStatus == 1 && item.status == 1 && (item.studyEndTime > currentTime) && (item.classEndTime && (item.classEndTime < currentTime)) && (item.periodStatus == 0 || item.periodStatus == -1) && item.studyCount > 0) {
  377. // uni.showModal({
  378. // title:'提示',
  379. // content:'班级已过期,需要重新选班',
  380. // showCancel:false,
  381. // success:() => {
  382. // uni.navigateTo({
  383. // url:"/pages2/wd/class"
  384. // })
  385. // }
  386. // })
  387. // return;
  388. // }
  389. // let rebuildStatus = await this.courseGoodsRebuildStatus(item.goodsId,item.gradeId);
  390. // if(rebuildStatus == 0) {
  391. // this.$navTo.togo('/pages2/learn/details', {
  392. // gradeId:item.gradeId,
  393. // goodsId: item.goodsId
  394. // })
  395. // return;
  396. // }
  397. // if(item.courseNum == 1 ) {
  398. // this.$api.courseCourseList({
  399. // pageNum:1,
  400. // pageSize:1,
  401. // goodsId:item.goodsId,
  402. // gradeId:item.gradeId
  403. // }).then(res => {
  404. // if(res.data.code == 200) {
  405. // uni.navigateTo({
  406. // url:`/pages3/polyv/detail?id=${res.data.rows[0].courseId}&goodsId=${item.goodsId}`
  407. // })
  408. // }
  409. // });
  410. // return;
  411. // }
  412. // this.$navTo.togo('/pages2/wd/course', {
  413. // id: item.goodsId,
  414. // gid:item.gradeId
  415. // });
  416. },
  417. /**
  418. * @param {Object} goodsId 商品id
  419. * 查询商品重修状态
  420. */
  421. courseGoodsRebuildStatus(goodsId,gradeId) {
  422. return new Promise(resolve => {
  423. this.$api.courseGoodsRebuildStatus({
  424. goodsId:goodsId,
  425. gradeId:gradeId
  426. }).then(res => {
  427. resolve(res.data.data)
  428. })
  429. })
  430. },
  431. preveItem() {
  432. if (this.goodsIndex > 0) {
  433. this.goodsIndex = this.goodsIndex - 1;
  434. this.planGoodsList =this.workList[this.goodsIndex].goodsVos
  435. this.goodsItem = this.planGoodsList[0];
  436. this.dealRL(this.workList[this.goodsIndex].calendarStudyVo)
  437. }
  438. },
  439. nextItem() {
  440. if (this.goodsIndex < this.workList.length - 1) {
  441. this.goodsIndex = this.goodsIndex + 1;
  442. this.planGoodsList =this.workList[this.goodsIndex].goodsVos
  443. this.goodsItem = this.planGoodsList[0];
  444. this.dealRL(this.workList[this.goodsIndex].calendarStudyVo)
  445. }
  446. },
  447. jumpPlan() {
  448. if (!this.$method.isLogin()) {
  449. this.$navTo.togo('/pages/login/login');
  450. } else {
  451. this.$navTo.togo('/pages2/plan/index', {});
  452. }
  453. },
  454. async init() {
  455. if (!this.$method.isLogin()) {
  456. //未登录
  457. this.date_num = [];
  458. this.workList = [];
  459. this.planGoodsList = [];
  460. this.initDay();
  461. } else {
  462. this.date_num = [];
  463. this.workList = [];
  464. this.planGoodsList = [];
  465. await this.userPlanSeven();
  466. await this.getUserSubscribeRecentExam();
  467. }
  468. },
  469. getMonDate() {
  470. var d = new Date(),
  471. day = d.getDay(),
  472. date = d.getDate();
  473. if (day == 0) return d;
  474. else d.setDate(date - day);
  475. return d;
  476. },
  477. initDay() {
  478. // d是当前星期一的日期对象
  479. var d = this.getMonDate();
  480. var arr = [];
  481. let date = new Date();
  482. let num = date.getDate();
  483. this.date_num = []
  484. for (var i = 0; i < 7; i++) {
  485. let item = { date: d.getDate() };
  486. item.color = 0;
  487. if (d.getDate() == num) {
  488. item.color = 3;
  489. }
  490. this.date_num.push(item);
  491. d.setDate(d.getDate() + 1);
  492. }
  493. },
  494. dealRL(calendarStudyVo){
  495. let self = this
  496. self.date_num = []
  497. let date = new Date();
  498. let num = date.getDate();
  499. let month = date.getMonth() + 1;
  500. let list = [];
  501. for (let j = 0; j < calendarStudyVo.length; j++) {
  502. let item = calendarStudyVo[j];
  503. list = item.dayStudyList;
  504. for (let i = 0; i < list.length; i++) {
  505. let item = list[i];
  506. item.color = 0;
  507. if (item.date == num) {
  508. item.color = 3;
  509. }
  510. if (item.perform == 1) {
  511. item.color = 1;
  512. }
  513. if (item.perform == 2) {
  514. item.color = 2;
  515. }
  516. item.note = item.studyCourseKnob;
  517. if (item.note > 0) {
  518. item.dot = true;
  519. }
  520. self.date_num.push(item);
  521. }
  522. }
  523. },
  524. userPlanSeven() {
  525. return new Promise(resolve => {
  526. let self = this;
  527. this.$api.userPlanSeven().then(result => {
  528. if (result.data.data && result.data.data.length>0) {
  529. self.workList = result.data.data
  530. self.planGoodsList = self.workList[0].goodsVos;
  531. if (self.planGoodsList != null && self.planGoodsList.length > 0) {
  532. self.goodsItem = self.planGoodsList[0];
  533. }
  534. self.dealRL(result.data.data[0].calendarStudyVo)
  535. /* let date = new Date();
  536. let num = date.getDate();
  537. let month = date.getMonth() + 1;
  538. let list = [];
  539. for (let i = 0; i < result.data.data[0].calendarStudyVo.length; i++) {
  540. let item = result.data.data[0].calendarStudyVo[i];
  541. if (item.month == month) {
  542. list = item.dayStudyList;
  543. }
  544. }
  545. for (let i = 0; i < list.length; i++) {
  546. let item = list[i];
  547. item.color = 0;
  548. if (item.date == num) {
  549. item.color = 3;
  550. }
  551. if (item.perform == 1) {
  552. item.color = 1;
  553. }
  554. if (item.perform == 2) {
  555. item.color = 2;
  556. }
  557. item.note = item.studyCourseKnob;
  558. if (item.note > 0) {
  559. item.dot = true;
  560. }
  561. self.date_num.push(item);
  562. } */
  563. } else {
  564. self.initDay();
  565. }
  566. resolve()
  567. });
  568. })
  569. },
  570. swiperChange(e) {
  571. this.current = e.detail.current;
  572. },
  573. tab(e) {
  574. this.tabCurrent = e;
  575. },
  576. updateHomePlan() {
  577. this.$refs.home.init();
  578. },
  579. beforeSwitch(index) {
  580. let that = this;
  581. if (index == 1) {
  582. this.isClick1 = true;
  583. }
  584. if (index == this.current) {
  585. return false;
  586. }
  587. if (!this.$method.isLogin()) {
  588. if (index == 0 || index == 1) {
  589. return true;
  590. } else {
  591. this.$navTo.togo('/pages/login/login');
  592. return false;
  593. }
  594. } else {
  595. if (index == 2) {
  596. this.$refs.refMy.init();
  597. }
  598. return true;
  599. }
  600. }
  601. },
  602. onReachBottom() {},
  603. computed: { ...mapGetters(['userInfo']) }
  604. };
  605. </script>
  606. <style lang="scss" scoped>
  607. .index {
  608. .navbar {
  609. /deep/ .u-navbar-inner {
  610. margin-right:0!important;
  611. }
  612. .slot-wrap {
  613. width:100%;
  614. display: flex;
  615. align-items: center;
  616. justify-content: center;
  617. image {
  618. width: 178rpx;
  619. height: 31rpx;
  620. }
  621. }
  622. }
  623. .swiper {
  624. width:100%;
  625. position: relative;
  626. .dots {
  627. position:absolute;
  628. left:0;
  629. bottom:8rpx;
  630. width:100%;
  631. display: flex;
  632. justify-content: center;
  633. .dot {
  634. width: 8rpx;
  635. height: 8rpx;
  636. background: #FFFFFF;
  637. border-radius: 50%;
  638. margin:0 4rpx;
  639. transition: all 0.3s;
  640. &.active {
  641. width: 24rpx;
  642. height: 8rpx;
  643. background: #007AFF;
  644. border-radius: 4rpx;
  645. }
  646. }
  647. }
  648. image {
  649. width:100%;
  650. }
  651. }
  652. .content {
  653. overflow: hidden;
  654. padding:0 16rpx 16rpx;
  655. background: rgba(234, 238, 241, 1);
  656. .notice {
  657. background:#fff;
  658. border-radius: 16rpx;
  659. margin-top:16rpx;
  660. overflow: hidden;
  661. &__content {
  662. padding:0 8rpx;
  663. height: 56rpx;
  664. background: linear-gradient(-90deg, rgba(255, 209, 0, 0.3), rgba(255, 255, 255, 0.3));
  665. display: flex;
  666. align-items: center;
  667. }
  668. .icon {
  669. width: 40rpx;
  670. height: 40rpx;
  671. margin-right: 8rpx;
  672. }
  673. .text {
  674. flex:1;
  675. font-size: 24rpx;
  676. color: #333333;
  677. position: relative;
  678. }
  679. .btn {
  680. font-size: 24rpx;
  681. color: #007AFF;
  682. }
  683. }
  684. .date-list {
  685. margin-top:16rpx;
  686. width: 718rpx;
  687. height: 330rpx;
  688. background: #FFFFFF;
  689. border-radius: 16rpx;
  690. padding:18rpx 27rpx;
  691. .title {
  692. font-size: 30rpx;
  693. font-weight: bold;
  694. color: #007AFF;
  695. }
  696. .list {
  697. margin-top:40rpx;
  698. display: flex;
  699. justify-content: space-around;
  700. .item {
  701. .top {
  702. text-align: center;
  703. font-size: 26rpx;
  704. color: rgba(102, 102, 102, 0.6);
  705. }
  706. .bottom {
  707. text-align: center;
  708. line-height: 48rpx;
  709. margin-top:30rpx;
  710. width: 48rpx;
  711. height: 48rpx;
  712. border-radius: 50%;
  713. color:rgba(51, 51, 51, 1);
  714. font-size: 26rpx;
  715. position:relative;
  716. &.red {
  717. color:#FF3B30;
  718. }
  719. &.green {
  720. color:#36C75A;
  721. }
  722. &.blue {
  723. background: #007AFF;
  724. color:#fff;
  725. }
  726. .note {
  727. width: 30rpx;
  728. height: 30rpx;
  729. border: 2rpx solid #FF9500;
  730. border-radius: 50%;
  731. position:absolute;
  732. top:-20rpx;
  733. right:-20rpx;
  734. line-height: 28rpx;
  735. text-align: center;
  736. color:#FF9500;
  737. font-size: 26rpx;
  738. }
  739. .point {
  740. margin:0 auto;
  741. width: 8rpx;
  742. height: 8rpx;
  743. background: #FF9500;
  744. border-radius: 50%;
  745. }
  746. }
  747. }
  748. }
  749. .btns {
  750. margin-top:50rpx;
  751. display: flex;
  752. align-items: center;
  753. justify-content: center;
  754. .left,.right {
  755. width: 40rpx;
  756. height: 40rpx;
  757. }
  758. .center{
  759. width: 440rpx;
  760. height: 56rpx;
  761. background: #FFFFFF;
  762. box-shadow: 0px 0px 9rpx 1rpx rgba(47, 67, 121, 0.1);
  763. border-radius: 28rpx;
  764. color:rgba(255, 149, 0, 1);
  765. line-height: 56rpx;
  766. text-align: center;
  767. font-size: 30rpx;
  768. margin:0 30rpx;
  769. }
  770. }
  771. }
  772. .tabs {
  773. /deep/ .u-tabs {
  774. background:none!important;
  775. }
  776. }
  777. .course-list {
  778. background:#fff;
  779. padding:0 8rpx;
  780. box-shadow: 0px 10rpx 9rpx 1rpx rgba(165, 196, 239, 0.1);
  781. border-radius: 16rpx ;
  782. .item {
  783. padding:16rpx 0;
  784. border-bottom:1rpx solid #eeeeee;
  785. display: flex;
  786. .img {
  787. position:relative;
  788. margin-right:10rpx;
  789. border-radius: 16rpx ;
  790. overflow: hidden;
  791. width: 320rpx;
  792. height: 155rpx;
  793. image {
  794. width:100%;
  795. height:100%;
  796. }
  797. .time {
  798. position:absolute;
  799. bottom:0;
  800. right:0;
  801. width: 80rpx;
  802. height: 32rpx;
  803. background: rgba(1, 25, 45, 0.4);
  804. color:#fff;
  805. text-align: center;
  806. line-height: 32rpx;
  807. font-size: 24rpx;
  808. border-radius: 10rpx 0px 10rpx 0px;
  809. }
  810. }
  811. .text {
  812. flex:1;
  813. padding-right:10rpx;
  814. position: relative;
  815. .title {
  816. font-size: 30rpx;
  817. color: #333333;
  818. }
  819. .desc {
  820. margin-top:40rpx;
  821. display: flex;
  822. position: absolute;
  823. bottom: 0;
  824. width: 100%;
  825. .left {
  826. flex:1;
  827. color:#333;
  828. font-size: 26rpx;
  829. text {
  830. font-size: 24rpx;
  831. color:#999;
  832. }
  833. }
  834. .right {
  835. font-size: 24rpx;
  836. font-weight: bold;
  837. color: #FF2D55;
  838. }
  839. }
  840. }
  841. }
  842. }
  843. }
  844. }
  845. .date_dot {
  846. width: 6rpx;
  847. height: 6rpx;
  848. background: #ffcc00;
  849. border-radius: 50%;
  850. margin: 0 auto;
  851. }
  852. .date_note {
  853. border-radius: 50%;
  854. width: 29rpx;
  855. height: 29rpx;
  856. border: 1px solid #ffcc00;
  857. font-size: 18rpx;
  858. color: #ffcc00;
  859. text-align: center;
  860. display: inline-block;
  861. position: absolute;
  862. top: -19rpx;
  863. right: 9rpx;
  864. }
  865. .circle_num {
  866. border-radius: 50%;
  867. width: 29rpx;
  868. height: 29rpx;
  869. border: 1px solid #ffcc00;
  870. font-size: 18rpx;
  871. color: #ffcc00;
  872. text-align: center;
  873. display: inline-block;
  874. margin: 5rpx;
  875. }
  876. .date_num {
  877. width: 14%;
  878. text-align: center;
  879. position: relative;
  880. display: inline-block;
  881. margin-top: 20rpx;
  882. }
  883. .course_title {
  884. color: #2f4379;
  885. box-shadow: 0rpx 0rpx 9rpx 1rpx rgba(47, 67, 121, 0.1);
  886. border-radius: 28rpx;
  887. width: 100%;
  888. height: 48rpx;
  889. line-height: 48rpx;
  890. overflow: hidden;
  891. text-overflow:ellipsis;
  892. white-space: nowrap;
  893. }
  894. .arr-icon {
  895. width: 40rpx;
  896. height: 40rpx;
  897. }
  898. .date_num_color0 {
  899. color: #32467b;
  900. }
  901. .date_num_color1 {
  902. color: #34c759;
  903. }
  904. .date_num_color2 {
  905. color: #ff3b30;
  906. }
  907. .date_num_color3 {
  908. color: #ffffff;
  909. background-color: #ffcc00;
  910. border-radius: 50%;
  911. width: 40rpx;
  912. height: 40rpx;
  913. display: inline-block;
  914. }
  915. .card_date {
  916. width: 14%;
  917. text-align: center;
  918. color: #7f8caf;
  919. }
  920. page {
  921. background: #ffffff;
  922. font-size: 28rpx;
  923. }
  924. .calendar_card {
  925. width: 100%;
  926. background: #ffffff;
  927. box-shadow: 0rpx 0rpx 16rpx 4rpx rgba(47, 67, 121, 0.1);
  928. border-radius: 22rpx;
  929. margin-top: 16rpx;
  930. padding-bottom: 15rpx;
  931. }
  932. .calendar_card .card_box {
  933. height: 60rpx;
  934. line-height: 60rpx;
  935. margin-left: 20rpx;
  936. }
  937. .calendar_card .t1 {
  938. color: #007AFF;
  939. font-size: 24rpx;
  940. }
  941. .img_more {
  942. width: 26rpx;
  943. height: 26rpx;
  944. }
  945. .flex-d {
  946. display: flex;
  947. flex-direction: column;
  948. justify-content: space-between;
  949. height: 100%;
  950. }
  951. .contentZ {
  952. flex: 1;
  953. overflow-y: auto;
  954. padding-left: 35rpx;
  955. display: flex;
  956. justify-content: space-around;
  957. }
  958. .contentZ::-webkit-scrollbar {
  959. display: none;
  960. }
  961. .fots {
  962. height: 100rpx;
  963. display: flex;
  964. align-items: center;
  965. justify-content: space-around;
  966. border-top: 1rpx solid #eee;
  967. }
  968. .leftBtns {
  969. font-size: 30rpx;
  970. color: #32467b;
  971. font-weight: 500;
  972. }
  973. .right_Btns {
  974. font-size: 30rpx;
  975. color: #fff;
  976. background-color: #32467b;
  977. border-radius: 24rpx;
  978. height: 60rpx;
  979. line-height: 60rpx;
  980. text-align: center;
  981. padding: 0rpx 23rpx;
  982. box-shadow: 0rpx 0rpx 16rpx 4rpx rgba(145, 156, 178, 0.1);
  983. }
  984. .lzs {
  985. width: 31%;
  986. margin: 0rpx 1%;
  987. max-width: 31%;
  988. }
  989. .tylsz{
  990. margin-top: 23rpx;
  991. color: #666;
  992. font-weight: 400;
  993. font-size: 24rpx;
  994. }
  995. .tylsz:first-child{
  996. text-align: center;
  997. }
  998. .activeStys{
  999. font-weight: bold;
  1000. color: #32467B;
  1001. }
  1002. </style>