index.vue 38 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576
  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; margin-top: 40rpx; flex-wrap: wrap;">
  58. <view v-for="(item, index) in date_num" :key="index" class="date_num">
  59. <view class="items">
  60. {{ item.date }}
  61. </view>
  62. <view v-if="item.color == 0" class="date_num_color0" v-show="item.date > 0">
  63. {{ item.date }}
  64. <view v-if="item.note > 0" class="date_note">{{ item.note }}</view>
  65. <view v-if="item.dot" class="date_dot"></view>
  66. </view>
  67. <view v-if="item.color == 1" class="date_num_color1">
  68. {{ item.date }}
  69. <view v-if="item.note > 0" class="date_note">{{ item.note }}</view>
  70. <view v-if="item.dot" class="date_dot"></view>
  71. </view>
  72. <view v-if="item.color == 2" class="date_num_color2">
  73. {{ item.date }}
  74. <view v-if="item.note > 0" class="date_note">{{ item.note }}</view>
  75. <view v-if="item.dot" class="date_dot"></view>
  76. </view>
  77. <view v-if="item.color == 3" class="date_num_color3">
  78. {{ item.date }}
  79. <view v-if="item.note > 0" class="date_note">{{ item.note }}</view>
  80. <view v-if="item.dot" class="date_dot"></view>
  81. </view>
  82. </view>
  83. </view>
  84. <view style="width: 100%;margin-top: 20rpx;" v-if="workList.length > 0">
  85. <u-row gutter="16">
  86. <u-col span="2" text-align="center">
  87. <view><image src="/static/left.png" class="arr-icon" @click="preveItem"></image></view>
  88. </u-col>
  89. <u-col span="8" text-align="center">
  90. <view class="course_title" @click="jumpGoodsDetail(goodsItem)">{{ goodsItem.goodsName }}</view>
  91. </u-col>
  92. <u-col span="2" text-align="center">
  93. <view><image src="/static/right.png" class="arr-icon" @click="nextItem"></image></view>
  94. </u-col>
  95. </u-row>
  96. </view>
  97. </view>
  98. </view> -->
  99. <!-- <u-tabs class="tabs" :current="tabCurrent" @change="tab" :list="menu" :activeStyle="{fontSize:'36rpx'}" :inactiveStyle="{color:'#EAEEF1',fontSize:'30rpx'}" sticky></u-tabs> -->
  100. <view class="tabs">
  101. <view v-for="(item, index) in menu" :key="index" class="tab_item" :class="{nactive: tabNum == index}" @click="tab(index)">{{ item.name }}</view>
  102. </view>
  103. <view class="filters">
  104. <scroll-view class="scroll_view_H" scroll-x="true" >
  105. <template v-if="tabNum == 0 && courseName.length > 1">
  106. <view v-for="(item, index) in courseName" :key="index" class="filter_item" @click="changeCou(item.recommendId, index)">
  107. <view class="name" :class="{nactive: couIndex == index}">{{ item.name }}</view>
  108. </view>
  109. </template>
  110. <template v-if="tabNum == 1 && bankName.length > 1">
  111. <view v-for="(item, index) in bankName" :key="index" class="filter_item" @click="changebank(item.recommendId, index)">
  112. <view class="name" :class="{nactive: bankIndex == index}">{{ item.name }}</view>
  113. </view>
  114. </template>
  115. </scroll-view>
  116. </view>
  117. <!-- v-if="tabNum == 0" -->
  118. <!-- <view class="filters">
  119. <scroll-view class="scroll_view_H" scroll-x="true" >
  120. <template >
  121. <view v-for="(item, index) in subjectList" :key="index" class="filter_item" @click="changeSub(item.id, index)">
  122. <view class="name" :class="{nactive: subIndex == index}">{{ item.subjectName }}</view>
  123. </view>
  124. </template>
  125. </scroll-view>
  126. </view> -->
  127. <view class="course-list" v-show="tabCurrent==0">
  128. <template v-if="list1.length">
  129. <!-- hover-class="none" -->
  130. <view class="list_item" v-for="(item,index) in list1" :key="index" @click="tobuy(item)">
  131. <view class="course_content">
  132. <view class="c_title">{{item.goodsName}}</view>
  133. <view class="c_downs">
  134. <view class="img">
  135. <image :src="$method.splitImgHost(item.coverUrl, true)"></image>
  136. <view class="time" v-if="item.year">{{item.year?item.year:''}}</view>
  137. </view>
  138. <view class="text">
  139. <view class="desc">
  140. <view class="left">
  141. <text v-if="item.standPrice" class="mon_t">¥ {{toFixed(item.standPrice)}}</text>
  142. <text v-else class="mon_t free">免费</text>
  143. <!-- <text class="sale">/限时优惠</text> -->
  144. <text v-if="item.linePrice" class="sale"> ¥ </text>
  145. <text v-if="item.linePrice" class="price_line">&nbsp;{{ item.linePrice }}</text>
  146. </view>
  147. <view class="right">
  148. <view v-if="!hideBuyState" class="regiser_row">立即购买</view>
  149. </view>
  150. </view>
  151. <view v-if="item.buyUserNum" class="joins">
  152. <!-- <image class="people" src="/static/index/people.png"></image> -->
  153. <!-- 为0时,不显示 -->
  154. <view class="people">{{ item.buyUserNum }}人参与</view>
  155. </view>
  156. </view>
  157. </view>
  158. </view>
  159. </view>
  160. </template>
  161. <template v-else>
  162. <u-empty text="暂无推荐课程" mode="list" margin-top="100"></u-empty>
  163. </template>
  164. </view>
  165. <view class="course-list" v-show="tabCurrent==1">
  166. <template v-if="list2.length">
  167. <navigator hover-class="none" class="list_item" v-for="(item,index) in list2" :key="index" :url="'/pages2/bank/detail?id='+item.goodsId">
  168. <view class="course_content">
  169. <view class="c_title">{{item.goodsName}}</view>
  170. <view class="c_downs">
  171. <view class="img">
  172. <image :src="$method.splitImgHost(item.coverUrl, true)"></image>
  173. <view class="time" v-if="item.year">{{item.year?item.year:''}}</view>
  174. </view>
  175. <view class="text">
  176. <view class="desc">
  177. <view class="left">
  178. <text v-if="item.standPrice" class="mon_t">¥ {{toFixed(item.standPrice)}}</text>
  179. <text v-else class="mon_t free">免费</text>
  180. <!-- <text class="sale">/限时优惠</text> -->
  181. <text v-if="item.linePrice" class="sale"> ¥ </text>
  182. <text v-if="item.linePrice" class="price_line">&nbsp;{{ item.linePrice }}</text>
  183. </view>
  184. <view class="right">
  185. <view v-if="!hideBuyState" class="regiser_row">立即购买</view>
  186. </view>
  187. </view>
  188. <view v-if="item.buyUserNum" class="joins">
  189. <!-- 为0时,不显示 -->
  190. <view class="people">{{ item.buyUserNum }}人参与</view>
  191. </view>
  192. </view>
  193. </view>
  194. </view>
  195. </navigator>
  196. </template>
  197. <template v-else>
  198. <u-empty text="暂无推荐题库" mode="list" margin-top="100"></u-empty>
  199. </template>
  200. </view>
  201. </view>
  202. <view :style="{'opacity':opacitys}" class="officials">
  203. <view class="weixin_official_account">
  204. <image class="off_logo" src="/static/index/official.png"></image>
  205. <view>
  206. <view class="one">关注 “祥粤学校” 公众号</view>
  207. <view class="two">学习提醒、 报考通知不会错过</view>
  208. </view>
  209. <button type="default" class="btn btn-official" >
  210. 去关注
  211. <official-account class="official-account" id="official_account"></official-account>
  212. </button>
  213. <view class="close_icon">
  214. <u-icon name="close" class="icon-close" @click="closeOff"></u-icon>
  215. </view>
  216. </view>
  217. </view>
  218. </view>
  219. </template>
  220. <script>
  221. import { mapGetters, mapActions } from 'vuex';
  222. import { socket_url, version} from '@/common/request.js';
  223. export default {
  224. data() {
  225. return {
  226. tabNum: 0,
  227. infoNums:0,
  228. list:[],
  229. tabCurrent:0,
  230. date:['日','一','二','三','四','五','六'],
  231. date_num: [],
  232. current:0,
  233. indicatorDots: true,
  234. autoplay: true,
  235. interval: 2000,
  236. duration: 500,
  237. swiperHeight:0,
  238. nearByDay:'', //距离最近一天考试
  239. menu: [{
  240. name: '推荐课程',
  241. }, {
  242. name: '推荐题库',
  243. }],
  244. goodsIndex: 0,
  245. goodsItem: 0,
  246. workList: [],
  247. workTextList: [],
  248. planGoodsList: [],
  249. paramList: [
  250. {
  251. pageNum: 1,
  252. pageSize: 10,
  253. total: 0,
  254. // showStatus: 0,
  255. getUserNum: 1, //是否返回商品购买用户数量 1带 0不带 ,会返回个buyUserNum
  256. goodsType:1
  257. },
  258. {
  259. pageNum: 1,
  260. pageSize: 10,
  261. total: 0,
  262. // showStatus: 0,
  263. getUserNum: 1,
  264. goodsType:2
  265. }
  266. ],
  267. total1: 0,
  268. total2: 0,
  269. list1: [],
  270. list2: [],
  271. isLogin:false,
  272. isOld:false,
  273. current: 0,
  274. showOfficial: false,
  275. // opacity: 1,
  276. isFollow: null, //是否关注过,不是1就是没关注
  277. curClose: true, // 当天时是否关闭过
  278. courseName: [],
  279. bankName: [],
  280. couIndex: 0,
  281. bankIndex: 0,
  282. courseId: '',
  283. bankId: '',
  284. subjectList: [],
  285. subIndex: 0,
  286. courSubjectId: '',
  287. };
  288. },
  289. async onLoad(option) {
  290. this.isLogin = this.$method.isLogin()
  291. this.dictObj
  292. this.getAdvertising();
  293. if(this.$method.isLogin()) {
  294. try {
  295. await this.getUserInfo()
  296. // websocket.sokcet(socket_url+this.userInfo.userId+'-'+this.$method.getRandomString(6))
  297. // websocket.sokcet(socket_url+this.userInfo.userAccount)
  298. }catch(err) {
  299. }
  300. } else {
  301. if(uni.getStorageSync('needToLogin')) {
  302. uni.removeStorageSync('needToLogin');
  303. uni.navigateTo({
  304. url:'/pages4/login/login'
  305. })
  306. }
  307. }
  308. this.init()
  309. wx.getSystemInfo({
  310. success: function (res) {
  311. let version = res.SDKVersion
  312. console.log('该版本号为: ', version)
  313. }
  314. })
  315. },
  316. async onShow() {
  317. this.getInfo() // 判断有没有关注公众号
  318. this.isClickOff() //关注公众号,每天最多显示1次;当天学员关闭弹窗后,无需再显示
  319. uni.removeStorageSync('goPath')
  320. // if (this.courseId || this.bankId) {
  321. // if (this.tabNum == 0) {
  322. // this.list1 = []
  323. // this.paramList[0].pageNum = 1
  324. // this.list1 = await this.getGoodsList(this.courseId, 0)
  325. // } else {
  326. // this.list2 = []
  327. // this.paramList[1].pageNum = 1
  328. // this.list2 = await this.getGoodsList(this.bankId, 1)
  329. // }
  330. // } else {
  331. this.list1 = []
  332. this.list2 = []
  333. this.paramList[0].pageNum = 1
  334. this.paramList[1].pageNum = 1
  335. this.courseLists()
  336. // }
  337. if (uni.getStorageSync('updateHome')){
  338. this.init()
  339. uni.removeStorageSync('updateHome'); //消费首页刷新事件
  340. }
  341. this.appCommonConfig({
  342. version
  343. });
  344. if(this.$method.isLogin()){
  345. this.$store.state.allowLoading = false;
  346. this.$api.getinfoAttached().then(res => {
  347. if(res.data.code ===200){
  348. this.infoNums = res.data.data.informSum
  349. const nums = res.data.data.informSum + res.data.data.orderSum + res.data.data.periodSum + res.data.data.planSum + res.data.data.subscribeSum;
  350. this.$store.commit('tabNum', nums);
  351. }
  352. })
  353. this.$store.state.allowLoading = true;
  354. }else{
  355. this.$store.commit('tabNum', 0);
  356. }
  357. },
  358. onShareAppMessage(res) {
  359. return {
  360. title: '中正',
  361. path: `/pages/index/index?inviteCode=` + userInfo == null ? '' : userInfo.userAccount
  362. };
  363. },
  364. async onPullDownRefresh() {
  365. // console.log('下拉this.courseId:', this.courseId)
  366. if (this.tabNum == 0) {
  367. this.list1 = []
  368. this.paramList[0].pageNum = 1
  369. this.list1 = await this.getGoodsList(this.courseId, 0, this.courSubjectId)
  370. } else {
  371. this.list2 = []
  372. this.paramList[1].pageNum = 1
  373. this.list2 = await this.getGoodsList(this.bankId, 1, this.courSubjectId)
  374. }
  375. },
  376. async onReachBottom() {
  377. // console.log('加载this.courseId:', this.courseId, this.list1.length, this.paramList[0].total)
  378. if (this.tabNum == 0) {
  379. if (this.list1.length < this.paramList[0].total) {
  380. this.paramList[0].pageNum++
  381. let list1 = await this.getGoodsList(this.courseId, 0, this.courSubjectId)
  382. this.list1.push(...list1)
  383. }
  384. } else {
  385. if (this.list2.length < this.paramList[1].total) {
  386. this.paramList[1].pageNum++
  387. let list2 = await this.getGoodsList(this.bankId, 1, this.courSubjectId)
  388. this.list1.push(...list2)
  389. }
  390. }
  391. },
  392. computed: {
  393. ...mapGetters(['dictObj','userInfo', 'hideBuyState']),
  394. opacitys() {
  395. const value = [1011,1017,1025,1047,1124].includes(this.$store.state.scene) && this.isLogin && (this.isFollow != 1) && this.curClose ? 1 : 0
  396. return value
  397. },
  398. },
  399. methods: {
  400. ...mapActions(['getUserInfo','appCommonConfig']),
  401. tobuy(item) {
  402. if (item.goodsType == 2) {
  403. uni.navigateTo({
  404. url: '/pages2/bank/detail?id='+item.goodsId
  405. })
  406. } else {
  407. // 视频、直播 /pages5/liveDetail/index
  408. uni.navigateTo({
  409. url: '/pages3/course/detail?id='+item.goodsId + '&goodsType=' + item.goodsType
  410. })
  411. }
  412. },
  413. getInfo() {
  414. // /app/user/getInfo 登录用户信息 // fromPlat来源平台 1小程序 2PC网站
  415. this.$api.getInfo({ fromPlat: 1 }).then(res => {
  416. if(res.data.code == 200){
  417. this.$store.state.userInfo = res.data.data
  418. this.isFollow = res.data.data.userFollowWx // 不是1就是没关注
  419. }
  420. })
  421. },
  422. // 每天最多显示1次;当天学员关闭弹窗后,无需再显示
  423. isClickOff() {
  424. //当天23:59:59秒 转换成的毫秒数
  425. const end = new Date(new Date(new Date().toLocaleDateString()).getTime()+24*60*60*1000-1).getTime()
  426. const start = new Date().getTime() //当前时间的毫秒数
  427. if(uni.getStorageSync('endTime')){ //首先判断本地有没有存入当天23:59:59秒的毫秒数
  428. if(start > uni.getStorageSync('endTime')){ //当前时间毫秒数大于当天23:59:59秒
  429. this.curClose = true
  430. uni.removeStorageSync('curClose')
  431. uni.removeStorageSync('endTime')
  432. } else {
  433. this.curClose = uni.getStorageSync('curClose') ? false : true
  434. }
  435. }else{
  436. uni.setStorageSync("endTime", end) //存入当天晚上23:59:59秒的毫秒数
  437. }
  438. },
  439. closeOff() {
  440. this.curClose = false
  441. uni.setStorageSync("curClose", '1')
  442. },
  443. toFixed(number) {
  444. if(number > 0) {
  445. return number.toFixed(2)
  446. } else {
  447. return '0.00'
  448. }
  449. },
  450. /**
  451. * @param {Object} swiper
  452. * 点击轮播图
  453. */
  454. swiperClick(swiper) {
  455. if(swiper.jumpType == 1) { //无跳转
  456. return;
  457. } else if(swiper.jumpType == 2) { //url
  458. let url = encodeURIComponent(swiper.jumpUrl)
  459. uni.navigateTo({
  460. url:'/pages/webview/index?url='+swiper.jumpUrl
  461. })
  462. } else if(swiper.jumpType == 3) { //内部接口
  463. uni.navigateTo({
  464. url:swiper.jumpUrl
  465. })
  466. } else if(swiper.jumpType == 4) { //外部接口
  467. uni.navigateToMiniProgram({
  468. appId: swiper.remarks,
  469. path: swiper.jumpUrl,
  470. extraData: {
  471. },
  472. success(res) {
  473. // 打开成功
  474. },
  475. fail(err) {
  476. // console.log(err)
  477. }
  478. })
  479. }
  480. },
  481. /**
  482. * banner图片加载完成
  483. */
  484. imageLoad(e) {
  485. let winW = 750;
  486. let imgW = e.detail.width;
  487. let imgH = e.detail.height;
  488. this.swiperHeight = 750 * imgH / imgW;
  489. },
  490. async getAdvertising() {
  491. await this.advertisingHomeLocation();
  492. await this.advertisingList();
  493. },
  494. getUserSubscribeRecentExam() {
  495. return new Promise(resolve => {
  496. this.$api.getUserSubscribeRecentExam().then(res => {
  497. if(res.data.code == 200) {
  498. if(res.data.data) {
  499. let day = this.$method.timestampToTime(res.data.data.applySiteExamTime,true).replace(/-/g,'/')
  500. let dayTime = day + ' ' + res.data.data.applySiteStartTime
  501. let NowTime = new Date(); //考试时间
  502. let examTime = new Date(dayTime); //考试时间
  503. let t = (examTime.getTime() / 1000) - (NowTime.getTime() / 1000).toFixed(0);
  504. if(t > 0) {
  505. let day = +this.$method.GetRTime(examTime.getTime() / 1000,true)
  506. this.nearByDay = day;
  507. }
  508. }
  509. resolve()
  510. }
  511. })
  512. })
  513. },
  514. advertisingHomeLocation() {
  515. return new Promise(resolve => {
  516. this.$api.advertisingHomeLocation().then(res => {
  517. this.interval = res.data.data.intervalTime * 1000
  518. resolve()
  519. })
  520. })
  521. },
  522. advertisingList() {
  523. return new Promise(resolve => {
  524. this.$api.advertisingList({locationId:1}).then(res => {
  525. this.list = res.data.rows;
  526. resolve()
  527. })
  528. })
  529. },
  530. jumpPage(){
  531. this.$navTo.togo('/pages4/msg/index')
  532. },
  533. go(type) {
  534. if (!this.$method.isLogin()) {
  535. if(type == 'course') {
  536. uni.setStorageSync('goPath','course')
  537. } else if(type == 'bank' ) {
  538. uni.setStorageSync('goPath','bank')
  539. }
  540. this.$navTo.togo('/pages4/login/login');
  541. } else {
  542. if(type == 'course') {
  543. uni.navigateTo({
  544. url:'/pages2/wd/class'
  545. })
  546. } else if(type == 'bank') {
  547. this.$api.lockLockStatus({
  548. action:'bank'
  549. }).then(res => {
  550. if(res.data.code == 200) { //有其他端在操作,不能学习
  551. uni.showToast({
  552. icon:'none',
  553. title:res.data.msg,
  554. duration:3000,
  555. })
  556. } else if(res.data.code == 500) { //可以学习
  557. uni.navigateTo({
  558. url:'/pages2/wd/question_bank'
  559. })
  560. }
  561. })
  562. }
  563. }
  564. },
  565. async changeCou(recommendId, index) {
  566. this.couIndex = index
  567. this.courseId = recommendId
  568. this.paramList[0].pageNum = 1
  569. this.list1 = []
  570. let list1 = await this.getGoodsList(recommendId, 0, this.courSubjectId)
  571. this.list1.push(...list1)
  572. },
  573. async changebank(recommendId, index) {
  574. this.bankIndex = index
  575. this.bankId = recommendId
  576. this.paramList[1].pageNum = 1
  577. this.list2 = []
  578. let list2 = await this.getGoodsList(recommendId, 1, this.courSubjectId)
  579. this.list2.push(...list2)
  580. },
  581. async changeSub(subjectId, index) {
  582. // console.log('subjectId, index:', subjectId, index, 'this.courseId:', this.courseId, 'this.bankId:', this.bankId)
  583. this.subIndex = index
  584. this.courSubjectId = subjectId
  585. this.paramList[this.tabNum].pageNum = 1
  586. if (this.tabNum == 0) {
  587. this.list1 = []
  588. let list1 = await this.getGoodsList(this.courseId, 0, subjectId)
  589. this.list1.push(...list1)
  590. } else {
  591. this.list2 = []
  592. let list2 = await this.getGoodsList(this.bankId, 1, subjectId)
  593. this.list2.push(...list2)
  594. }
  595. },
  596. //课程
  597. courseLists() {
  598. // var param = this.paramList[0];
  599. // /app/common/goods/list
  600. this.$http({
  601. url: '/app/common/activity/recommend/list',
  602. method: 'get',
  603. data: {
  604. platform: 1,
  605. status: 1
  606. },
  607. noToken: true
  608. }).then(async (res) => {
  609. if (res.data.code == 200) {
  610. let list = res.data.rows || []
  611. //课程
  612. this.courseName = list.filter(x => x.type == 1).sort((a,b) => a.sort - b.sort).map(x => {
  613. return {
  614. name: x.name,
  615. recommendId: x.recommendId
  616. }
  617. });
  618. // console.log('couIndex', this.couIndex, this.courseName)
  619. //题库
  620. this.bankName = list.filter(x => x.type == 2).sort((a,b) => a.sort - b.sort).map(x => {
  621. return {
  622. name: x.name,
  623. recommendId: x.recommendId
  624. }
  625. });
  626. if (this.courseName.length) {
  627. let courseId = ''
  628. if (this.courseId) {
  629. courseId = this.courseId
  630. } else {
  631. courseId = this.courseName[0].recommendId
  632. this.courseId = this.courseName[0].recommendId
  633. }
  634. // console.log('courseId:', courseId)
  635. this.getSubjectList(courseId)
  636. let list1 = await this.getGoodsList(courseId, 0, '')
  637. this.list1.push(...list1)
  638. }
  639. if (this.bankName.length) {
  640. let bankId = ''
  641. if (this.bankId) {
  642. bankId = this.bankId
  643. } else {
  644. bankId = this.bankName[0].recommendId
  645. this.bankId = this.bankName[0].recommendId
  646. }
  647. let list2 = await this.getGoodsList(bankId, 1, '')
  648. this.list2.push(...list2)
  649. }
  650. }
  651. });
  652. },
  653. getGoodsList(recommendId, num, subjectId) {
  654. return new Promise((resolve, reject) => {
  655. let params = {
  656. pageNum: this.paramList[num].pageNum,
  657. pageSize: this.paramList[num].pageSize,
  658. recommendId: recommendId
  659. }
  660. subjectId && (params.subjectId = subjectId)
  661. // console.log('params:', params)
  662. this.$http({
  663. url: `/app/common/activity/recommend/goodsList`,
  664. method: 'get',
  665. data: params,
  666. noToken: true
  667. }).then((res) => {
  668. if (res.data.code == 200) {
  669. this.paramList[num].total = res.data.total
  670. resolve(res.data.rows)
  671. }
  672. })
  673. })
  674. },
  675. getSubjectList(recommendId) {
  676. this.$http({
  677. url: `/app/common/activity/recommend/subjectList`,
  678. method: 'get',
  679. data: {
  680. recommendId: recommendId
  681. },
  682. noToken: true
  683. }).then((res) => {
  684. if (res.data.code == 200) {
  685. let data = res.data.data || []
  686. this.subjectList = [{ id: '', subjectName: '全部'}, ...data]
  687. // console.log('this.subjectList:', this.subjectList)
  688. }
  689. })
  690. },
  691. /**
  692. * @param {Object} item
  693. * 跳转课程详情
  694. */
  695. async jumpGoodsDetail(item){
  696. uni.navigateTo({
  697. url:'/pages2/wd/class'
  698. })
  699. },
  700. /**
  701. * @param {Object} goodsId 商品id
  702. * 查询商品重修状态
  703. */
  704. courseGoodsRebuildStatus(goodsId,gradeId) {
  705. return new Promise(resolve => {
  706. this.$api.courseGoodsRebuildStatus({
  707. goodsId:goodsId,
  708. gradeId:gradeId
  709. }).then(res => {
  710. resolve(res.data.data)
  711. })
  712. })
  713. },
  714. preveItem() {
  715. if (this.goodsIndex > 0) {
  716. this.goodsIndex = this.goodsIndex - 1;
  717. this.planGoodsList =this.workList[this.goodsIndex].goodsVos
  718. this.goodsItem = this.planGoodsList[0];
  719. this.dealRL(this.workList[this.goodsIndex].calendarStudyVo)
  720. }
  721. },
  722. nextItem() {
  723. if (this.goodsIndex < this.workList.length - 1) {
  724. this.goodsIndex = this.goodsIndex + 1;
  725. this.planGoodsList =this.workList[this.goodsIndex].goodsVos
  726. this.goodsItem = this.planGoodsList[0];
  727. this.dealRL(this.workList[this.goodsIndex].calendarStudyVo)
  728. }
  729. },
  730. jumpPlan() {
  731. if (!this.$method.isLogin()) {
  732. this.$navTo.togo('/pages4/login/login');
  733. } else {
  734. this.$navTo.togo('/pages2/plan/index', {});
  735. }
  736. },
  737. async init() {
  738. if (!this.$method.isLogin()) {
  739. //未登录
  740. this.date_num = [];
  741. this.workList = [];
  742. this.planGoodsList = [];
  743. this.initDay();
  744. } else {
  745. this.date_num = [];
  746. this.workList = [];
  747. this.planGoodsList = [];
  748. await this.userPlanSeven();
  749. await this.getUserSubscribeRecentExam();
  750. }
  751. },
  752. getMonDate() {
  753. var d = new Date(),
  754. day = d.getDay(),
  755. date = d.getDate();
  756. if (day == 0) return d;
  757. else d.setDate(date - day);
  758. return d;
  759. },
  760. initDay() {
  761. // d是当前星期一的日期对象
  762. console.log('d是当前星期一的日期对象');
  763. var d = this.getMonDate();
  764. var arr = [];
  765. let date = new Date();
  766. let num = date.getDate();
  767. this.date_num = []
  768. for (var i = 0; i < 7; i++) {
  769. let item = { date: d.getDate() };
  770. item.color = 0;
  771. if (d.getDate() == num) {
  772. item.color = 3;
  773. }
  774. this.date_num.push(item);
  775. d.setDate(d.getDate() + 1);
  776. }
  777. },
  778. dealRL(calendarStudyVo){
  779. let self = this
  780. self.date_num = []
  781. let date = new Date();
  782. let num = date.getDate();
  783. let month = date.getMonth() + 1;
  784. let list = [];
  785. for (let j = 0; j < calendarStudyVo.length; j++) {
  786. let item = calendarStudyVo[j];
  787. list = item.dayStudyList;
  788. for (let i = 0; i < list.length; i++) {
  789. let item = list[i];
  790. item.color = 0;
  791. if (item.date == num) {
  792. item.color = 3;
  793. }
  794. if (item.perform == 1) {
  795. item.color = 1;
  796. }
  797. if (item.perform == 2) {
  798. item.color = 2;
  799. }
  800. item.note = item.studyCourseKnob;
  801. if (item.note > 0) {
  802. item.dot = true;
  803. }
  804. self.date_num.push(item);
  805. }
  806. }
  807. },
  808. userPlanSeven() {
  809. return new Promise(resolve => {
  810. let self = this;
  811. this.$api.userPlanSeven().then(result => {
  812. if (result.data.data && result.data.data.length>0) {
  813. self.workList = result.data.data
  814. self.planGoodsList = self.workList[0].goodsVos;
  815. if (self.planGoodsList != null && self.planGoodsList.length > 0) {
  816. self.goodsItem = self.planGoodsList[0];
  817. }
  818. self.dealRL(result.data.data[0].calendarStudyVo)
  819. } else {
  820. self.initDay();
  821. }
  822. resolve()
  823. });
  824. })
  825. },
  826. swiperChange(e) {
  827. this.current = e.detail.current;
  828. },
  829. tab(e) {
  830. this.tabCurrent = e;
  831. this.tabNum = e
  832. this.paramList[this.tabNum].pageNum = 1
  833. if (e == 0) {
  834. this.list1 = []
  835. } else {
  836. this.list2 = []
  837. }
  838. this.courseLists()
  839. // let recommendId = e == 0 ? this.courseId : this.bankId
  840. // this.getSubjectList(recommendId)
  841. },
  842. updateHomePlan() {
  843. this.$refs.home.init();
  844. },
  845. beforeSwitch(index) {
  846. let that = this;
  847. if (index == 1) {
  848. this.isClick1 = true;
  849. }
  850. if (index == this.current) {
  851. return false;
  852. }
  853. if (!this.$method.isLogin()) {
  854. if (index == 0 || index == 1) {
  855. return true;
  856. } else {
  857. this.$navTo.togo('/pages4/login/login');
  858. return false;
  859. }
  860. } else {
  861. if (index == 2) {
  862. this.$refs.refMy.init();
  863. }
  864. return true;
  865. }
  866. }
  867. },
  868. };
  869. </script>
  870. <style>
  871. page {
  872. background: #eaeef1;
  873. }
  874. </style>
  875. <style lang="scss" scoped>
  876. @mixin threeDot {
  877. overflow: hidden;
  878. text-overflow:ellipsis;
  879. white-space: nowrap;
  880. }
  881. .index {
  882. .navbar {
  883. /deep/ .u-navbar-inner {
  884. margin-right:0!important;
  885. }
  886. .slot-wrap {
  887. width:100%;
  888. display: flex;
  889. align-items: center;
  890. justify-content: center;
  891. image {
  892. width: 178rpx;
  893. height: 31rpx;
  894. }
  895. }
  896. }
  897. .swiper {
  898. width:100%;
  899. position: relative;
  900. .dots {
  901. position:absolute;
  902. left:0;
  903. bottom:8rpx;
  904. width:100%;
  905. display: flex;
  906. justify-content: center;
  907. .dot {
  908. width: 8rpx;
  909. height: 8rpx;
  910. background: #FFFFFF;
  911. border-radius: 50%;
  912. margin:0 4rpx;
  913. transition: all 0.3s;
  914. &.active {
  915. width: 24rpx;
  916. height: 8rpx;
  917. background: #007AFF;
  918. border-radius: 4rpx;
  919. }
  920. }
  921. }
  922. image {
  923. width:100%;
  924. }
  925. }
  926. .content {
  927. overflow: hidden;
  928. padding:0 16rpx;
  929. background: rgba(234, 238, 241, 1);
  930. padding-bottom: 100rpx;
  931. .notice {
  932. background:#fff;
  933. border-radius: 16rpx;
  934. margin-top:32rpx;
  935. overflow: hidden;
  936. &__content {
  937. padding:0 8rpx;
  938. height: 56rpx;
  939. background: linear-gradient(-90deg, rgba(255, 209, 0, 0.3), rgba(255, 255, 255, 0.3));
  940. display: flex;
  941. align-items: center;
  942. }
  943. .icon {
  944. width: 40rpx;
  945. height: 40rpx;
  946. margin-right: 8rpx;
  947. }
  948. .text {
  949. flex:1;
  950. font-size: 24rpx;
  951. color: #333333;
  952. position: relative;
  953. }
  954. .btn {
  955. font-size: 24rpx;
  956. color: #007AFF;
  957. }
  958. }
  959. .date-list {
  960. margin-top:16rpx;
  961. width: 718rpx;
  962. height: 330rpx;
  963. background: #FFFFFF;
  964. border-radius: 16rpx;
  965. padding:18rpx 27rpx;
  966. .title {
  967. font-size: 30rpx;
  968. font-weight: bold;
  969. color: #007AFF;
  970. }
  971. .list {
  972. margin-top:40rpx;
  973. display: flex;
  974. justify-content: space-around;
  975. .item {
  976. .top {
  977. text-align: center;
  978. font-size: 26rpx;
  979. color: rgba(102, 102, 102, 0.6);
  980. }
  981. .bottom {
  982. text-align: center;
  983. line-height: 48rpx;
  984. margin-top:30rpx;
  985. width: 48rpx;
  986. height: 48rpx;
  987. border-radius: 50%;
  988. color:rgba(51, 51, 51, 1);
  989. font-size: 26rpx;
  990. position:relative;
  991. &.red {
  992. color:#FF3B30;
  993. }
  994. &.green {
  995. color:#36C75A;
  996. }
  997. &.blue {
  998. background: #007AFF;
  999. color:#fff;
  1000. }
  1001. .note {
  1002. width: 30rpx;
  1003. height: 30rpx;
  1004. border: 2rpx solid #FF9500;
  1005. border-radius: 50%;
  1006. position:absolute;
  1007. top:-20rpx;
  1008. right:-20rpx;
  1009. line-height: 28rpx;
  1010. text-align: center;
  1011. color:#FF9500;
  1012. font-size: 26rpx;
  1013. }
  1014. .point {
  1015. margin:0 auto;
  1016. width: 8rpx;
  1017. height: 8rpx;
  1018. background: #FF9500;
  1019. border-radius: 50%;
  1020. }
  1021. }
  1022. }
  1023. }
  1024. .btns {
  1025. margin-top:50rpx;
  1026. display: flex;
  1027. align-items: center;
  1028. justify-content: center;
  1029. .left,.right {
  1030. width: 40rpx;
  1031. height: 40rpx;
  1032. }
  1033. .center{
  1034. width: 440rpx;
  1035. height: 56rpx;
  1036. background: #FFFFFF;
  1037. box-shadow: 0px 0px 9rpx 1rpx rgba(47, 67, 121, 0.1);
  1038. border-radius: 28rpx;
  1039. color:rgba(255, 149, 0, 1);
  1040. line-height: 56rpx;
  1041. text-align: center;
  1042. font-size: 30rpx;
  1043. margin:0 30rpx;
  1044. }
  1045. }
  1046. }
  1047. .tabs {
  1048. width: 100%;
  1049. height: 78rpx;
  1050. display: flex;
  1051. align-items: center;
  1052. justify-content: space-between;
  1053. background-color: #F2F7FF;
  1054. border-radius: 38rpx;
  1055. margin: 34rpx 0rpx 24rpx 0rpx;
  1056. padding: 0rpx 5rpx;
  1057. .tab_item {
  1058. width: 345rpx;
  1059. height: 65rpx;
  1060. line-height: 65rpx;
  1061. font-size: 28rpx;
  1062. font-weight: bold;
  1063. border-radius: 32rpx;
  1064. text-align: center;
  1065. color: #333;
  1066. &.nactive {
  1067. color: #fff;
  1068. background-color: #3577E8;
  1069. }
  1070. }
  1071. }
  1072. .course-list {
  1073. box-shadow: 0px 10rpx 9rpx 1rpx rgba(165, 196, 239, 0.1);
  1074. .list_item {
  1075. padding: 24rpx;
  1076. // height: 278rpx;
  1077. background: #FFFFFF;
  1078. box-shadow: 0rpx 0rpx 20rpx 1rpx rgba(1,99,235,0.1000);
  1079. border-radius: 24rpx;
  1080. background:#fff;
  1081. margin-bottom: 32rpx;
  1082. display: flex;
  1083. align-items: center;
  1084. .c_title {
  1085. font-size: 32rpx;
  1086. font-weight: bold;
  1087. margin-bottom: 24rpx;
  1088. font-weight: bold;
  1089. color: #222222;
  1090. }
  1091. .c_downs {
  1092. display: flex;
  1093. }
  1094. .img {
  1095. position:relative;
  1096. margin-right: 24rpx;
  1097. border-radius: 16rpx ;
  1098. overflow: hidden;
  1099. width: 204rpx;
  1100. height: 120rpx;
  1101. image {
  1102. width:100%;
  1103. height:100%;
  1104. }
  1105. .time {
  1106. position:absolute;
  1107. bottom:0;
  1108. right:0;
  1109. width: 80rpx;
  1110. height: 32rpx;
  1111. background: rgba(1, 25, 45, 0.4);
  1112. color:#fff;
  1113. text-align: center;
  1114. line-height: 32rpx;
  1115. font-size: 24rpx;
  1116. border-radius: 10rpx 0px 10rpx 0px;
  1117. }
  1118. }
  1119. .text {
  1120. width: 440rpx;
  1121. position: relative;
  1122. display: flex;
  1123. flex-direction: column;
  1124. justify-content: space-between;
  1125. height: 120rpx;
  1126. .joins {
  1127. .people {
  1128. width: 160rpx;
  1129. font-size: 20rpx;
  1130. color: #999999;
  1131. padding: 0rpx 8rpx;
  1132. text-align: center;
  1133. height: 36rpx;
  1134. line-height: 36rpx;
  1135. background: #F6F7FB;
  1136. border-radius: 4px;
  1137. }
  1138. }
  1139. .desc {
  1140. margin-top: 10rpx;
  1141. display: flex;
  1142. align-items: center;
  1143. justify-content: space-between;
  1144. width: 100%;
  1145. .left {
  1146. flex:1;
  1147. color:#333;
  1148. font-size: 26rpx;
  1149. .mon_t {
  1150. font-weight: bold;
  1151. color: #FC3F3F;
  1152. font-size: 36rpx;
  1153. }
  1154. .free {
  1155. font-size: 24rpx;
  1156. }
  1157. .sale {
  1158. color: #999999;
  1159. font-size: 24rpx;
  1160. margin-left: 8rpx;
  1161. }
  1162. .price_line {
  1163. color: #999999;
  1164. font-size: 24rpx;
  1165. text-decoration:line-through;
  1166. font-weight: 400;
  1167. }
  1168. }
  1169. .right {
  1170. font-size: 24rpx;
  1171. font-weight: bold;
  1172. .regiser_row {
  1173. width: 144rpx;
  1174. height: 52rpx;
  1175. line-height: 52rpx;
  1176. text-align: center;
  1177. border-radius: 16rpx;
  1178. background-color: #FC3F3F;
  1179. color: #fff;
  1180. font-weight: 500;
  1181. font-size: 26rpx;
  1182. }
  1183. }
  1184. }
  1185. }
  1186. }
  1187. }
  1188. .filters {
  1189. width: 100%;
  1190. padding: 0rpx 16rpx;
  1191. margin-bottom: 32rpx;
  1192. display: flex;
  1193. align-items: center;
  1194. .scroll_view_H {
  1195. width: 100%;
  1196. overflow: hidden;
  1197. white-space: nowrap;
  1198. }
  1199. .filter_item {
  1200. display: inline-block;
  1201. margin-right: 16rpx;
  1202. .name {
  1203. font-size: 24rpx;
  1204. color: #666666;
  1205. padding: 12rpx 16rpx;
  1206. height: 56rpx;
  1207. text-align: center;
  1208. background: #FFFFFF;
  1209. border-radius: 8rpx;
  1210. &.nactive {
  1211. color: #3F8DFD;
  1212. }
  1213. }
  1214. }
  1215. }
  1216. }
  1217. .my-list {
  1218. margin:32rpx 0;
  1219. display:flex;
  1220. justify-content: space-between;
  1221. &__item {
  1222. width:351rpx;
  1223. height:96rpx;
  1224. position:relative;
  1225. padding:25rpx 0 0 25rpx;
  1226. font-size: 32rpx;
  1227. &--bank {
  1228. text {
  1229. position: relative;
  1230. z-index: 2;
  1231. color:#00998A;
  1232. }
  1233. }
  1234. &--course {
  1235. text {
  1236. position: relative;
  1237. z-index: 2;
  1238. color:#0062D9;
  1239. }
  1240. }
  1241. image {
  1242. width:100%;
  1243. height:100%;
  1244. left:0;
  1245. top:0;
  1246. position:absolute;
  1247. z-index: 1;
  1248. }
  1249. }
  1250. }
  1251. }
  1252. .date_dot {
  1253. width: 6rpx;
  1254. height: 6rpx;
  1255. background: #ffcc00;
  1256. border-radius: 50%;
  1257. margin: 0 auto;
  1258. }
  1259. .date_note {
  1260. border-radius: 50%;
  1261. width: 29rpx;
  1262. height: 29rpx;
  1263. border: 1px solid #ffcc00;
  1264. font-size: 18rpx;
  1265. color: #ffcc00;
  1266. text-align: center;
  1267. display: inline-block;
  1268. position: absolute;
  1269. top: -19rpx;
  1270. right: 9rpx;
  1271. }
  1272. .circle_num {
  1273. border-radius: 50%;
  1274. width: 29rpx;
  1275. height: 29rpx;
  1276. border: 1px solid #ffcc00;
  1277. font-size: 18rpx;
  1278. color: #ffcc00;
  1279. text-align: center;
  1280. display: inline-block;
  1281. margin: 5rpx;
  1282. }
  1283. .date_num {
  1284. width: 14%;
  1285. text-align: center;
  1286. position: relative;
  1287. display: inline-block;
  1288. margin-top: 20rpx;
  1289. .items {
  1290. width: 100%;
  1291. }
  1292. }
  1293. .course_title {
  1294. color: #2f4379;
  1295. box-shadow: 0rpx 0rpx 9rpx 1rpx rgba(47, 67, 121, 0.1);
  1296. border-radius: 28rpx;
  1297. width: 100%;
  1298. height: 48rpx;
  1299. line-height: 48rpx;
  1300. overflow: hidden;
  1301. text-overflow:ellipsis;
  1302. white-space: nowrap;
  1303. }
  1304. .arr-icon {
  1305. width: 40rpx;
  1306. height: 40rpx;
  1307. }
  1308. .date_num_color0 {
  1309. color: #32467b;
  1310. }
  1311. .date_num_color1 {
  1312. color: #34c759;
  1313. }
  1314. .date_num_color2 {
  1315. color: #ff3b30;
  1316. }
  1317. .date_num_color3 {
  1318. color: #ffffff;
  1319. background-color: #ffcc00;
  1320. border-radius: 50%;
  1321. width: 40rpx;
  1322. height: 40rpx;
  1323. display: inline-block;
  1324. }
  1325. .card_date {
  1326. width: 14%;
  1327. text-align: center;
  1328. color: #7f8caf;
  1329. }
  1330. .calendar_card {
  1331. width: 100%;
  1332. background: #ffffff;
  1333. box-shadow: 0rpx 0rpx 16rpx 4rpx rgba(47, 67, 121, 0.1);
  1334. border-radius: 22rpx;
  1335. margin-top: 16rpx;
  1336. padding-bottom: 15rpx;
  1337. }
  1338. .calendar_card .card_box {
  1339. height: 60rpx;
  1340. line-height: 60rpx;
  1341. margin-left: 20rpx;
  1342. }
  1343. .calendar_card .t1 {
  1344. color: #007AFF;
  1345. font-size: 24rpx;
  1346. }
  1347. .img_more {
  1348. width: 26rpx;
  1349. height: 26rpx;
  1350. }
  1351. .flex-d {
  1352. display: flex;
  1353. flex-direction: column;
  1354. justify-content: space-between;
  1355. height: 100%;
  1356. }
  1357. .contentZ {
  1358. flex: 1;
  1359. overflow-y: auto;
  1360. padding-left: 35rpx;
  1361. display: flex;
  1362. justify-content: space-around;
  1363. }
  1364. .contentZ::-webkit-scrollbar {
  1365. display: none;
  1366. }
  1367. .fots {
  1368. height: 100rpx;
  1369. display: flex;
  1370. align-items: center;
  1371. justify-content: space-around;
  1372. border-top: 1rpx solid #eee;
  1373. }
  1374. .leftBtns {
  1375. font-size: 30rpx;
  1376. color: #32467b;
  1377. font-weight: 500;
  1378. }
  1379. .right_Btns {
  1380. font-size: 30rpx;
  1381. color: #fff;
  1382. background-color: #32467b;
  1383. border-radius: 24rpx;
  1384. height: 60rpx;
  1385. line-height: 60rpx;
  1386. text-align: center;
  1387. padding: 0rpx 23rpx;
  1388. box-shadow: 0rpx 0rpx 16rpx 4rpx rgba(145, 156, 178, 0.1);
  1389. }
  1390. .lzs {
  1391. width: 31%;
  1392. margin: 0rpx 1%;
  1393. max-width: 31%;
  1394. }
  1395. .tylsz{
  1396. margin-top: 23rpx;
  1397. color: #666;
  1398. font-weight: 400;
  1399. font-size: 24rpx;
  1400. }
  1401. .tylsz:first-child{
  1402. text-align: center;
  1403. }
  1404. .activeStys{
  1405. font-weight: bold;
  1406. color: #32467B;
  1407. }
  1408. .officialsss {
  1409. position: fixed;
  1410. left: 0;
  1411. bottom: 100rpx;
  1412. width: 100%;
  1413. }
  1414. .officials {
  1415. width:100%;
  1416. height: 104rpx;
  1417. position:fixed;
  1418. bottom: 0;
  1419. left: 0;
  1420. z-index: 999;
  1421. display: flex;
  1422. align-items: center;
  1423. justify-content: center;
  1424. }
  1425. .weixin_official_account {
  1426. position: fixed;
  1427. bottom: 0;
  1428. left: 0;
  1429. display: flex;
  1430. align-items: center;
  1431. // justify-content: space-between;
  1432. width: 718rpx;
  1433. height: 104rpx;
  1434. padding: 0 32rpx;
  1435. margin-left: 16rpx;
  1436. background: #3A3F54;
  1437. border-radius: 16rpx;
  1438. .off_logo {
  1439. width: 48rpx;
  1440. height: 48rpx;
  1441. margin-right: 24rpx;
  1442. }
  1443. .one {
  1444. color: #fff;
  1445. font-size: 24rpx;
  1446. font-weight: 500;
  1447. }
  1448. .two {
  1449. color: #BCBEC7;
  1450. font-size: 20rpx;
  1451. }
  1452. .btn {
  1453. position: relative;
  1454. top: 0;
  1455. left: 35rpx;
  1456. width: 128rpx;
  1457. height: 56rpx;
  1458. line-height: 56rpx;
  1459. padding: 0;
  1460. background: linear-gradient(274deg, #408BF6 0%, #40B4F6 100%);
  1461. border-radius: 156rpx;
  1462. overflow: hidden;
  1463. text-align: center;
  1464. font-size: 24rpx;
  1465. color: #fff;
  1466. .official-account {
  1467. position: absolute;
  1468. z-index: 1000;
  1469. right: -9px;
  1470. top: -38px;
  1471. opacity: 0;
  1472. }
  1473. }
  1474. .close_icon {
  1475. width: 40rpx;
  1476. height: 40rpx;
  1477. background: #FFFFFF;
  1478. opacity: 0.2;
  1479. display: flex;
  1480. align-items: center;
  1481. position: absolute;
  1482. top: 0;
  1483. right: 0;
  1484. color: #fff;
  1485. border-radius: 0rpx 16rpx;
  1486. }
  1487. .icon-close {
  1488. display: flex;
  1489. align-items: center;
  1490. justify-content: center;
  1491. width: 50rpx;
  1492. height: 68rpx;
  1493. font-size: 22rpx;
  1494. color: #7B8284;
  1495. }
  1496. }
  1497. </style>