index.vue 24 KB

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