index.vue 27 KB

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