index.vue 39 KB

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