index.vue 24 KB

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