index.vue 47 KB

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