index.vue 22 KB

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