index.vue 38 KB

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