index.vue 24 KB

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