index.vue 47 KB

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