index.vue 38 KB

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