index.vue 24 KB

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