index.vue 38 KB

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