index.vue 38 KB

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