index.vue 23 KB

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