index.vue 24 KB

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