index.vue 23 KB

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