index.vue 38 KB

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