index.vue 23 KB

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