index.vue 38 KB

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