index.vue 39 KB

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