index.vue 24 KB

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