index.vue 38 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574
  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. <view class="filters">
  115. <scroll-view class="scroll_view_H" scroll-x="true" >
  116. <!-- v-if="tabNum == 0" -->
  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. let recommendId = e == 0 ? this.courseId : this.bankId
  842. this.getSubjectList(recommendId)
  843. },
  844. updateHomePlan() {
  845. this.$refs.home.init();
  846. },
  847. beforeSwitch(index) {
  848. let that = this;
  849. if (index == 1) {
  850. this.isClick1 = true;
  851. }
  852. if (index == this.current) {
  853. return false;
  854. }
  855. if (!this.$method.isLogin()) {
  856. if (index == 0 || index == 1) {
  857. return true;
  858. } else {
  859. this.$navTo.togo('/pages4/login/login');
  860. return false;
  861. }
  862. } else {
  863. if (index == 2) {
  864. this.$refs.refMy.init();
  865. }
  866. return true;
  867. }
  868. }
  869. },
  870. };
  871. </script>
  872. <style>
  873. page {
  874. background: #eaeef1;
  875. }
  876. </style>
  877. <style lang="scss" scoped>
  878. @mixin threeDot {
  879. overflow: hidden;
  880. text-overflow:ellipsis;
  881. white-space: nowrap;
  882. }
  883. .index {
  884. .navbar {
  885. /deep/ .u-navbar-inner {
  886. margin-right:0!important;
  887. }
  888. .slot-wrap {
  889. width:100%;
  890. display: flex;
  891. align-items: center;
  892. justify-content: center;
  893. image {
  894. width: 178rpx;
  895. height: 31rpx;
  896. }
  897. }
  898. }
  899. .swiper {
  900. width:100%;
  901. position: relative;
  902. .dots {
  903. position:absolute;
  904. left:0;
  905. bottom:8rpx;
  906. width:100%;
  907. display: flex;
  908. justify-content: center;
  909. .dot {
  910. width: 8rpx;
  911. height: 8rpx;
  912. background: #FFFFFF;
  913. border-radius: 50%;
  914. margin:0 4rpx;
  915. transition: all 0.3s;
  916. &.active {
  917. width: 24rpx;
  918. height: 8rpx;
  919. background: #007AFF;
  920. border-radius: 4rpx;
  921. }
  922. }
  923. }
  924. image {
  925. width:100%;
  926. }
  927. }
  928. .content {
  929. overflow: hidden;
  930. padding:0 16rpx;
  931. background: rgba(234, 238, 241, 1);
  932. padding-bottom: 100rpx;
  933. .notice {
  934. background:#fff;
  935. border-radius: 16rpx;
  936. margin-top:32rpx;
  937. overflow: hidden;
  938. &__content {
  939. padding:0 8rpx;
  940. height: 56rpx;
  941. background: linear-gradient(-90deg, rgba(255, 209, 0, 0.3), rgba(255, 255, 255, 0.3));
  942. display: flex;
  943. align-items: center;
  944. }
  945. .icon {
  946. width: 40rpx;
  947. height: 40rpx;
  948. margin-right: 8rpx;
  949. }
  950. .text {
  951. flex:1;
  952. font-size: 24rpx;
  953. color: #333333;
  954. position: relative;
  955. }
  956. .btn {
  957. font-size: 24rpx;
  958. color: #007AFF;
  959. }
  960. }
  961. .date-list {
  962. margin-top:16rpx;
  963. width: 718rpx;
  964. height: 330rpx;
  965. background: #FFFFFF;
  966. border-radius: 16rpx;
  967. padding:18rpx 27rpx;
  968. .title {
  969. font-size: 30rpx;
  970. font-weight: bold;
  971. color: #007AFF;
  972. }
  973. .list {
  974. margin-top:40rpx;
  975. display: flex;
  976. justify-content: space-around;
  977. .item {
  978. .top {
  979. text-align: center;
  980. font-size: 26rpx;
  981. color: rgba(102, 102, 102, 0.6);
  982. }
  983. .bottom {
  984. text-align: center;
  985. line-height: 48rpx;
  986. margin-top:30rpx;
  987. width: 48rpx;
  988. height: 48rpx;
  989. border-radius: 50%;
  990. color:rgba(51, 51, 51, 1);
  991. font-size: 26rpx;
  992. position:relative;
  993. &.red {
  994. color:#FF3B30;
  995. }
  996. &.green {
  997. color:#36C75A;
  998. }
  999. &.blue {
  1000. background: #007AFF;
  1001. color:#fff;
  1002. }
  1003. .note {
  1004. width: 30rpx;
  1005. height: 30rpx;
  1006. border: 2rpx solid #FF9500;
  1007. border-radius: 50%;
  1008. position:absolute;
  1009. top:-20rpx;
  1010. right:-20rpx;
  1011. line-height: 28rpx;
  1012. text-align: center;
  1013. color:#FF9500;
  1014. font-size: 26rpx;
  1015. }
  1016. .point {
  1017. margin:0 auto;
  1018. width: 8rpx;
  1019. height: 8rpx;
  1020. background: #FF9500;
  1021. border-radius: 50%;
  1022. }
  1023. }
  1024. }
  1025. }
  1026. .btns {
  1027. margin-top:50rpx;
  1028. display: flex;
  1029. align-items: center;
  1030. justify-content: center;
  1031. .left,.right {
  1032. width: 40rpx;
  1033. height: 40rpx;
  1034. }
  1035. .center{
  1036. width: 440rpx;
  1037. height: 56rpx;
  1038. background: #FFFFFF;
  1039. box-shadow: 0px 0px 9rpx 1rpx rgba(47, 67, 121, 0.1);
  1040. border-radius: 28rpx;
  1041. color:rgba(255, 149, 0, 1);
  1042. line-height: 56rpx;
  1043. text-align: center;
  1044. font-size: 30rpx;
  1045. margin:0 30rpx;
  1046. }
  1047. }
  1048. }
  1049. .tabs {
  1050. width: 100%;
  1051. height: 78rpx;
  1052. display: flex;
  1053. align-items: center;
  1054. justify-content: space-between;
  1055. background-color: #F2F7FF;
  1056. border-radius: 38rpx;
  1057. margin: 34rpx 0rpx 24rpx 0rpx;
  1058. padding: 0rpx 5rpx;
  1059. .tab_item {
  1060. width: 345rpx;
  1061. height: 65rpx;
  1062. line-height: 65rpx;
  1063. font-size: 28rpx;
  1064. font-weight: bold;
  1065. border-radius: 32rpx;
  1066. text-align: center;
  1067. color: #333;
  1068. &.nactive {
  1069. color: #fff;
  1070. background-color: #3577E8;
  1071. }
  1072. }
  1073. }
  1074. .course-list {
  1075. box-shadow: 0px 10rpx 9rpx 1rpx rgba(165, 196, 239, 0.1);
  1076. .list_item {
  1077. padding: 24rpx;
  1078. // height: 278rpx;
  1079. background: #FFFFFF;
  1080. box-shadow: 0rpx 0rpx 20rpx 1rpx rgba(1,99,235,0.1000);
  1081. border-radius: 24rpx;
  1082. background:#fff;
  1083. margin-bottom: 32rpx;
  1084. display: flex;
  1085. align-items: center;
  1086. .c_title {
  1087. font-size: 32rpx;
  1088. font-weight: bold;
  1089. margin-bottom: 24rpx;
  1090. font-weight: bold;
  1091. color: #222222;
  1092. }
  1093. .c_downs {
  1094. display: flex;
  1095. }
  1096. .img {
  1097. position:relative;
  1098. margin-right: 24rpx;
  1099. border-radius: 16rpx ;
  1100. overflow: hidden;
  1101. width: 204rpx;
  1102. height: 120rpx;
  1103. image {
  1104. width:100%;
  1105. height:100%;
  1106. }
  1107. .time {
  1108. position:absolute;
  1109. bottom:0;
  1110. right:0;
  1111. width: 80rpx;
  1112. height: 32rpx;
  1113. background: rgba(1, 25, 45, 0.4);
  1114. color:#fff;
  1115. text-align: center;
  1116. line-height: 32rpx;
  1117. font-size: 24rpx;
  1118. border-radius: 10rpx 0px 10rpx 0px;
  1119. }
  1120. }
  1121. .text {
  1122. width: 440rpx;
  1123. position: relative;
  1124. display: flex;
  1125. flex-direction: column;
  1126. justify-content: space-between;
  1127. height: 120rpx;
  1128. .joins {
  1129. .people {
  1130. width: 160rpx;
  1131. font-size: 20rpx;
  1132. color: #999999;
  1133. padding: 0rpx 8rpx;
  1134. text-align: center;
  1135. height: 36rpx;
  1136. line-height: 36rpx;
  1137. background: #F6F7FB;
  1138. border-radius: 4px;
  1139. }
  1140. }
  1141. .desc {
  1142. margin-top: 10rpx;
  1143. display: flex;
  1144. align-items: center;
  1145. justify-content: space-between;
  1146. width: 100%;
  1147. .left {
  1148. flex:1;
  1149. color:#333;
  1150. font-size: 26rpx;
  1151. .mon_t {
  1152. font-weight: bold;
  1153. color: #FC3F3F;
  1154. font-size: 36rpx;
  1155. }
  1156. .free {
  1157. font-size: 24rpx;
  1158. }
  1159. .sale {
  1160. color: #999999;
  1161. font-size: 24rpx;
  1162. margin-left: 8rpx;
  1163. }
  1164. .price_line {
  1165. color: #999999;
  1166. font-size: 24rpx;
  1167. text-decoration:line-through;
  1168. font-weight: 400;
  1169. }
  1170. }
  1171. .right {
  1172. font-size: 24rpx;
  1173. font-weight: bold;
  1174. .regiser_row {
  1175. width: 144rpx;
  1176. height: 52rpx;
  1177. line-height: 52rpx;
  1178. text-align: center;
  1179. border-radius: 16rpx;
  1180. background-color: #FC3F3F;
  1181. color: #fff;
  1182. font-weight: 500;
  1183. font-size: 26rpx;
  1184. }
  1185. }
  1186. }
  1187. }
  1188. }
  1189. }
  1190. .filters {
  1191. width: 100%;
  1192. padding: 0rpx 16rpx;
  1193. margin-bottom: 32rpx;
  1194. display: flex;
  1195. align-items: center;
  1196. .scroll_view_H {
  1197. width: 100%;
  1198. overflow: hidden;
  1199. white-space: nowrap;
  1200. }
  1201. .filter_item {
  1202. display: inline-block;
  1203. margin-right: 16rpx;
  1204. .name {
  1205. font-size: 24rpx;
  1206. color: #666666;
  1207. padding: 12rpx 16rpx;
  1208. height: 56rpx;
  1209. text-align: center;
  1210. background: #FFFFFF;
  1211. border-radius: 8rpx;
  1212. &.nactive {
  1213. color: #3F8DFD;
  1214. }
  1215. }
  1216. }
  1217. }
  1218. }
  1219. .my-list {
  1220. margin:32rpx 0;
  1221. display:flex;
  1222. justify-content: space-between;
  1223. &__item {
  1224. width:351rpx;
  1225. height:96rpx;
  1226. position:relative;
  1227. padding:25rpx 0 0 25rpx;
  1228. font-size: 32rpx;
  1229. &--bank {
  1230. text {
  1231. position: relative;
  1232. z-index: 2;
  1233. color:#00998A;
  1234. }
  1235. }
  1236. &--course {
  1237. text {
  1238. position: relative;
  1239. z-index: 2;
  1240. color:#0062D9;
  1241. }
  1242. }
  1243. image {
  1244. width:100%;
  1245. height:100%;
  1246. left:0;
  1247. top:0;
  1248. position:absolute;
  1249. z-index: 1;
  1250. }
  1251. }
  1252. }
  1253. }
  1254. .date_dot {
  1255. width: 6rpx;
  1256. height: 6rpx;
  1257. background: #ffcc00;
  1258. border-radius: 50%;
  1259. margin: 0 auto;
  1260. }
  1261. .date_note {
  1262. border-radius: 50%;
  1263. width: 29rpx;
  1264. height: 29rpx;
  1265. border: 1px solid #ffcc00;
  1266. font-size: 18rpx;
  1267. color: #ffcc00;
  1268. text-align: center;
  1269. display: inline-block;
  1270. position: absolute;
  1271. top: -19rpx;
  1272. right: 9rpx;
  1273. }
  1274. .circle_num {
  1275. border-radius: 50%;
  1276. width: 29rpx;
  1277. height: 29rpx;
  1278. border: 1px solid #ffcc00;
  1279. font-size: 18rpx;
  1280. color: #ffcc00;
  1281. text-align: center;
  1282. display: inline-block;
  1283. margin: 5rpx;
  1284. }
  1285. .date_num {
  1286. width: 14%;
  1287. text-align: center;
  1288. position: relative;
  1289. display: inline-block;
  1290. margin-top: 20rpx;
  1291. }
  1292. .course_title {
  1293. color: #2f4379;
  1294. box-shadow: 0rpx 0rpx 9rpx 1rpx rgba(47, 67, 121, 0.1);
  1295. border-radius: 28rpx;
  1296. width: 100%;
  1297. height: 48rpx;
  1298. line-height: 48rpx;
  1299. overflow: hidden;
  1300. text-overflow:ellipsis;
  1301. white-space: nowrap;
  1302. }
  1303. .arr-icon {
  1304. width: 40rpx;
  1305. height: 40rpx;
  1306. }
  1307. .date_num_color0 {
  1308. color: #32467b;
  1309. }
  1310. .date_num_color1 {
  1311. color: #34c759;
  1312. }
  1313. .date_num_color2 {
  1314. color: #ff3b30;
  1315. }
  1316. .date_num_color3 {
  1317. color: #ffffff;
  1318. background-color: #ffcc00;
  1319. border-radius: 50%;
  1320. width: 40rpx;
  1321. height: 40rpx;
  1322. display: inline-block;
  1323. }
  1324. .card_date {
  1325. width: 14%;
  1326. text-align: center;
  1327. color: #7f8caf;
  1328. }
  1329. .calendar_card {
  1330. width: 100%;
  1331. background: #ffffff;
  1332. box-shadow: 0rpx 0rpx 16rpx 4rpx rgba(47, 67, 121, 0.1);
  1333. border-radius: 22rpx;
  1334. margin-top: 16rpx;
  1335. padding-bottom: 15rpx;
  1336. }
  1337. .calendar_card .card_box {
  1338. height: 60rpx;
  1339. line-height: 60rpx;
  1340. margin-left: 20rpx;
  1341. }
  1342. .calendar_card .t1 {
  1343. color: #007AFF;
  1344. font-size: 24rpx;
  1345. }
  1346. .img_more {
  1347. width: 26rpx;
  1348. height: 26rpx;
  1349. }
  1350. .flex-d {
  1351. display: flex;
  1352. flex-direction: column;
  1353. justify-content: space-between;
  1354. height: 100%;
  1355. }
  1356. .contentZ {
  1357. flex: 1;
  1358. overflow-y: auto;
  1359. padding-left: 35rpx;
  1360. display: flex;
  1361. justify-content: space-around;
  1362. }
  1363. .contentZ::-webkit-scrollbar {
  1364. display: none;
  1365. }
  1366. .fots {
  1367. height: 100rpx;
  1368. display: flex;
  1369. align-items: center;
  1370. justify-content: space-around;
  1371. border-top: 1rpx solid #eee;
  1372. }
  1373. .leftBtns {
  1374. font-size: 30rpx;
  1375. color: #32467b;
  1376. font-weight: 500;
  1377. }
  1378. .right_Btns {
  1379. font-size: 30rpx;
  1380. color: #fff;
  1381. background-color: #32467b;
  1382. border-radius: 24rpx;
  1383. height: 60rpx;
  1384. line-height: 60rpx;
  1385. text-align: center;
  1386. padding: 0rpx 23rpx;
  1387. box-shadow: 0rpx 0rpx 16rpx 4rpx rgba(145, 156, 178, 0.1);
  1388. }
  1389. .lzs {
  1390. width: 31%;
  1391. margin: 0rpx 1%;
  1392. max-width: 31%;
  1393. }
  1394. .tylsz{
  1395. margin-top: 23rpx;
  1396. color: #666;
  1397. font-weight: 400;
  1398. font-size: 24rpx;
  1399. }
  1400. .tylsz:first-child{
  1401. text-align: center;
  1402. }
  1403. .activeStys{
  1404. font-weight: bold;
  1405. color: #32467B;
  1406. }
  1407. .officialsss {
  1408. position: fixed;
  1409. left: 0;
  1410. bottom: 100rpx;
  1411. width: 100%;
  1412. }
  1413. .officials {
  1414. width:100%;
  1415. height: 104rpx;
  1416. position:fixed;
  1417. bottom: 0;
  1418. left: 0;
  1419. z-index: 999;
  1420. display: flex;
  1421. align-items: center;
  1422. justify-content: center;
  1423. }
  1424. .weixin_official_account {
  1425. position: fixed;
  1426. bottom: 0;
  1427. left: 0;
  1428. display: flex;
  1429. align-items: center;
  1430. // justify-content: space-between;
  1431. width: 718rpx;
  1432. height: 104rpx;
  1433. padding: 0 32rpx;
  1434. margin-left: 16rpx;
  1435. background: #3A3F54;
  1436. border-radius: 16rpx;
  1437. .off_logo {
  1438. width: 48rpx;
  1439. height: 48rpx;
  1440. margin-right: 24rpx;
  1441. }
  1442. .one {
  1443. color: #fff;
  1444. font-size: 24rpx;
  1445. font-weight: 500;
  1446. }
  1447. .two {
  1448. color: #BCBEC7;
  1449. font-size: 20rpx;
  1450. }
  1451. .btn {
  1452. position: relative;
  1453. top: 0;
  1454. left: 35rpx;
  1455. width: 128rpx;
  1456. height: 56rpx;
  1457. line-height: 56rpx;
  1458. padding: 0;
  1459. background: linear-gradient(274deg, #408BF6 0%, #40B4F6 100%);
  1460. border-radius: 156rpx;
  1461. overflow: hidden;
  1462. text-align: center;
  1463. font-size: 24rpx;
  1464. color: #fff;
  1465. .official-account {
  1466. position: absolute;
  1467. z-index: 1000;
  1468. right: -9px;
  1469. top: -38px;
  1470. opacity: 0;
  1471. }
  1472. }
  1473. .close_icon {
  1474. width: 40rpx;
  1475. height: 40rpx;
  1476. background: #FFFFFF;
  1477. opacity: 0.2;
  1478. display: flex;
  1479. align-items: center;
  1480. position: absolute;
  1481. top: 0;
  1482. right: 0;
  1483. color: #fff;
  1484. border-radius: 0rpx 16rpx;
  1485. }
  1486. .icon-close {
  1487. display: flex;
  1488. align-items: center;
  1489. justify-content: center;
  1490. width: 50rpx;
  1491. height: 68rpx;
  1492. font-size: 22rpx;
  1493. color: #7B8284;
  1494. }
  1495. }
  1496. </style>