index.vue 49 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479
  1. <template>
  2. <view class="learnings">
  3. <u-navbar
  4. :is-back="false"
  5. title="学习中心"
  6. :border-bottom="false"
  7. title-color="#333333"
  8. back-icon-color="#ffffff"
  9. >
  10. <view class="slot-wrap">
  11. <image
  12. :src="logo"
  13. style="width: 178rpx; height: 31rpx; margin-left: 30rpx"
  14. ></image>
  15. </view>
  16. </u-navbar>
  17. <u-line color="#D6D6DB" />
  18. <view class="contents">
  19. <!-- <view class="diatance">
  20. <image class="clock" src="/static/learn/clock.png" mode=""></image>
  21. <text>
  22. 一级建造师,距离考试还有
  23. </text>
  24. <u-count-down :timestamp="leftDays" :show-days="true" separator="zh"
  25. :show-hours="false" :show-minutes="false" :show-seconds="false" font-size="28"
  26. bg-color="#007AFF" separator-color="#fff" color="#fff" separator-size="28">
  27. </u-count-down>
  28. </view> -->
  29. <!-- 有学习的课程 -->
  30. <view v-if="allCourse" class="had_courses">
  31. <!-- 直播 -->
  32. <view v-if="livingLists.length" class="lives">
  33. <view
  34. v-for="(live, l_index) in livingLists"
  35. :key="l_index"
  36. class="live_item"
  37. @click="toLiveLook(live)"
  38. >
  39. <view class="live_con">
  40. <view class="live_status">
  41. <image
  42. v-if="bgShow(live.liveStartTime, live.watchStatus)"
  43. src="/static/learn/living.png"
  44. class="liv_icon"
  45. ></image>
  46. <image
  47. v-else
  48. src="/static/learn/wlive.png"
  49. class="liv_icon"
  50. ></image>
  51. <text class="status_s">{{
  52. live.liveStartTime | liveStatus(live.watchStatus)
  53. }}</text>
  54. <view
  55. class="look_bt"
  56. :class="{
  57. living:
  58. lookTimeStatus(live.liveStartTime, live.watchStatus) == 1,
  59. futuring:
  60. lookTimeStatus(live.liveStartTime, live.watchStatus) == 4,
  61. curring: [2, 3].includes(
  62. lookTimeStatus(live.liveStartTime, live.watchStatus)
  63. ),
  64. }"
  65. >
  66. <text
  67. v-if="
  68. lookTimeStatus(live.liveStartTime, live.watchStatus) == 1
  69. "
  70. >点击观看</text
  71. >
  72. <text
  73. v-if="
  74. lookTimeStatus(live.liveStartTime, live.watchStatus) == 2
  75. "
  76. >即将开播</text
  77. >
  78. <template
  79. v-if="
  80. lookTimeStatus(live.liveStartTime, live.watchStatus) == 3
  81. "
  82. >
  83. 剩余:
  84. <u-count-down
  85. :timestamp="curTimeTamp(live.liveStartTime)"
  86. :show-days="false"
  87. color="#fff"
  88. separator-color="#fff"
  89. font-size="24"
  90. separator-size="24"
  91. bg-color="#FFB102"
  92. >
  93. </u-count-down>
  94. </template>
  95. <template
  96. v-if="
  97. lookTimeStatus(live.liveStartTime, live.watchStatus) == 4
  98. "
  99. >
  100. 剩余:
  101. <u-count-down
  102. :timestamp="curTimeTamp(live.liveStartTime)"
  103. :show-days="true"
  104. separator="zh"
  105. color="#fff"
  106. separator-color="#fff"
  107. bg-color="#007AFF"
  108. :show-hours="false"
  109. :show-minutes="false"
  110. :show-seconds="false"
  111. font-size="24"
  112. separator-size="24"
  113. >
  114. </u-count-down>
  115. <u-count-down
  116. :timestamp="curTimeTamp(live.liveStartTime)"
  117. :show-days="false"
  118. color="#fff"
  119. separator-color="#fff"
  120. bg-color="#007AFF"
  121. font-size="24"
  122. separator-size="24"
  123. >
  124. </u-count-down>
  125. </template>
  126. </view>
  127. </view>
  128. <view class="liv_time">
  129. <text class="timeR">{{
  130. live.liveStartTime | formate("mm月dd日")
  131. }}</text>
  132. <text>{{ live.liveStartTime | formate("hh:mm") }}</text>
  133. </view>
  134. <view class="liv_title">{{ live.name }}</view>
  135. </view>
  136. <image
  137. v-if="bgShow(live.liveStartTime, live.watchStatus)"
  138. src="/static/learn/living_bg.png"
  139. class="my_bg"
  140. ></image>
  141. <image
  142. v-else
  143. src="/static/learn/wlive_bg.png"
  144. class="my_bg"
  145. ></image>
  146. </view>
  147. </view>
  148. <!-- 我的课程 -->
  149. <view v-if="courseLists.length" class="my_courses">
  150. <text class="titles">我的课程</text>
  151. <view
  152. v-for="(item, index) in courseLists"
  153. :key="index"
  154. class="course_item"
  155. >
  156. <view
  157. class="titlews"
  158. @click="studyIn(item.goodsId, item.gradeId, item, index)"
  159. >
  160. <view class="cou_titles">{{ item.goodsName }}</view>
  161. <view
  162. v-if="
  163. item.serviceStartTime &&
  164. item.serviceEndTime &&
  165. !item.externalLinkStatus
  166. "
  167. class="learn_ranges"
  168. >
  169. <image
  170. class="l_range"
  171. src="/static/learn/learn_range.png"
  172. ></image>
  173. 学习周期:
  174. <text class="l_time"
  175. >{{ item.serviceStartTime | formate("yyyy.mm.dd") }}-{{
  176. item.serviceEndTime | formate("yyyy.mm.dd")
  177. }}</text
  178. >
  179. </view>
  180. </view>
  181. <!-- 状态 -->
  182. <view
  183. v-if="item.goodsType == 1"
  184. class="all_status"
  185. @click="studyIn(item.goodsId, item.gradeId, item, index)"
  186. >
  187. <template v-if="!item.externalLinkStatus">
  188. <!-- 不在学习服务期 -->
  189. <template
  190. v-if="
  191. item.serviceStartTime &&
  192. (sysTime < item.serviceStartTime ||
  193. sysTime > item.serviceEndTime)
  194. "
  195. >
  196. <view
  197. class="class-warm"
  198. v-if="item.gradeId != 0 && item.gradeStatus == 1"
  199. >
  200. <view class="class-warm__text">
  201. <view class="date"> 不在学习服务期,不可以学习了哦 </view>
  202. </view>
  203. </view>
  204. </template>
  205. <template v-else>
  206. <!-- 班级有效期过了 -->
  207. <template
  208. v-if="item.classEndTime && item.classEndTime < sysTime"
  209. >
  210. <view class="class-warm">
  211. <u-icon
  212. class="class-warm__icon"
  213. size="30"
  214. color="#FF3B30"
  215. name="error-circle-fill"
  216. >
  217. </u-icon>
  218. <view class="class-warm__text">
  219. <view class="date"
  220. >班级有效期:{{
  221. $method.timestampToTime(
  222. item.classStartTime,
  223. true,
  224. true
  225. )
  226. }}
  227. -
  228. {{
  229. $method.timestampToTime(
  230. item.classEndTime,
  231. true,
  232. true
  233. )
  234. }}</view
  235. >
  236. <view class="date"
  237. >班级状态:已过期,有疑问请联系
  238. <text @click="call()">020-87085982</text></view
  239. >
  240. </view>
  241. </view>
  242. </template>
  243. <!-- 班级有效期之前 -->
  244. <template
  245. v-else-if="
  246. item.classStartTime && item.classStartTime > sysTime
  247. "
  248. >
  249. <view class="class-warm">
  250. <u-icon
  251. class="class-warm__icon"
  252. size="30"
  253. color="#FF3B30"
  254. name="error-circle-fill"
  255. >
  256. </u-icon>
  257. <view class="class-warm__text">
  258. <view class="date"
  259. >班级有效期:{{
  260. $method.timestampToTime(
  261. item.classStartTime,
  262. true,
  263. true
  264. )
  265. }}
  266. -
  267. {{
  268. $method.timestampToTime(
  269. item.classEndTime,
  270. true,
  271. true
  272. )
  273. }}</view
  274. >
  275. <view class="date"
  276. >班级状态:未到学习时间,有疑问请联系
  277. <text @click="call()">020-87085982</text></view
  278. >
  279. </view>
  280. </view>
  281. </template>
  282. <!-- 在班级有效期之间或者没有班级有效期 -->
  283. <template v-else>
  284. <view
  285. class="class-warm"
  286. v-if="
  287. item.gradeId != 0 &&
  288. item.gradeStatus == 1 &&
  289. item.classStatus != null
  290. "
  291. >
  292. <view class="class-warm__text">
  293. <view class="date">
  294. 班级状态:
  295. <text v-if="item.classStatus == 1">已开班</text>
  296. <text v-if="item.classStatus == 0">未开班</text>
  297. </view>
  298. <view class="date" v-if="item.classStatus == 0"
  299. >教务处正在为您开通班级,请耐心等待</view
  300. >
  301. <view
  302. class="date"
  303. v-if="
  304. item.classStatus == 1 &&
  305. item.classStartTime &&
  306. item.classEndTime
  307. "
  308. >
  309. 班级有效期:{{
  310. $method.timestampToTime(
  311. item.classStartTime,
  312. true,
  313. true
  314. )
  315. }}-{{
  316. $method.timestampToTime(
  317. item.classEndTime,
  318. true,
  319. true
  320. )
  321. }}
  322. </view>
  323. </view>
  324. </view>
  325. <!-- 学时审核状态不可审核 -->
  326. <template
  327. v-if="item.periodStatus == -1 || item.periodStatus == 2"
  328. >
  329. <view
  330. class="class-warm"
  331. v-if="
  332. item.classStatus == 1 || item.classStatus === null
  333. "
  334. >
  335. <view class="class-warm__text">
  336. <view class="date">
  337. <template
  338. v-if="
  339. sysTime >= item.serviceStartTime &&
  340. sysTime <= item.serviceEndTime
  341. "
  342. >
  343. 学习状态:
  344. <text v-if="item.stuAllNum + item.recordNum == 0"
  345. >未学习</text
  346. >
  347. <text
  348. v-else-if="
  349. item.stuAllNum + item.recordNum > 0 &&
  350. item.stuAllNum + item.recordNum <
  351. item.secAllNum + item.examNum
  352. "
  353. >学习中</text
  354. >
  355. <text
  356. v-else-if="
  357. item.stuAllNum + item.recordNum >=
  358. item.secAllNum + item.examNum
  359. "
  360. >已学完</text
  361. >
  362. </template>
  363. <template v-else>
  364. <template v-if="item.serviceStartTime"
  365. >已过学习服务期,不可以学习了哦!</template
  366. >
  367. </template>
  368. </view>
  369. </view>
  370. </view>
  371. </template>
  372. <!-- 学时审核状态可以审核 -->
  373. <template v-if="item.periodStatus != -1">
  374. <view class="class-warm">
  375. <view class="class-warm__text">
  376. <view class="date">
  377. <text v-if="item.periodStatus == 0"
  378. >机构审核:学时审核不通过</text
  379. >
  380. <!-- <text v-else-if="item.periodStatus == 2">学时待审核</text> -->
  381. <text v-else-if="item.periodStatus == 3"
  382. >学时审核中</text
  383. >
  384. <text v-else-if="item.periodStatus == 1">
  385. <text v-if="item.periodPlush > 0"
  386. >学时已上报注册中心</text
  387. >
  388. <text v-else>机构审核:学时审核通过</text>
  389. </text>
  390. </view>
  391. </view>
  392. </view>
  393. <view
  394. class="class-warm"
  395. v-if="
  396. item.subscribeId != null && item.periodStatus == 1
  397. "
  398. >
  399. <view class="class-warm__text">
  400. <view class="date">
  401. <view v-if="item.subExamStatus === null"
  402. >待预约考试</view
  403. >
  404. <view
  405. v-else-if="
  406. item.subExamStatus === 0 &&
  407. sysTime <
  408. $method.TimeTotimestamp(
  409. $method.timestampToTime(
  410. item.subApplySiteExamTime,
  411. true
  412. ) +
  413. ' ' +
  414. item.subApplySiteStartTime
  415. )
  416. "
  417. >
  418. 待考试,考试时间:
  419. {{
  420. $method.timestampToTime(
  421. item.subApplySiteExamTime,
  422. true
  423. ) +
  424. " " +
  425. item.subApplySiteStartTime
  426. }}
  427. -
  428. {{
  429. $method.timestampToTime(
  430. item.subApplySiteExamTime,
  431. true
  432. ) +
  433. " " +
  434. item.subApplySiteEndTime
  435. }}
  436. </view>
  437. <view v-else-if="item.subExamStatus === 0"
  438. >待出考试结果</view
  439. >
  440. <view v-else-if="item.subExamStatus === 1">
  441. <text v-if="item.subResult === null"
  442. >待出考试结果</text
  443. >
  444. <text v-if="item.subResult === 0"
  445. >考试结果:不通过,需补考</text
  446. >
  447. <text v-else-if="item.subResult === 1"
  448. >考试结果:通过,考试成绩为{{
  449. item.subPerformance
  450. }}</text
  451. >
  452. </view>
  453. <view v-else-if="item.subExamStatus === 2"
  454. >缺考,无成绩,需补考</view
  455. >
  456. <view v-else-if="item.subExamStatus === 3"
  457. >作弊,无成绩,需补考</view
  458. >
  459. <view v-else-if="item.subExamStatus === 4"
  460. >替考,无成绩,需补考</view
  461. >
  462. </view>
  463. </view>
  464. </view>
  465. </template>
  466. </template>
  467. </template>
  468. </template>
  469. </view>
  470. <view
  471. class="c_downs"
  472. @click="studyIn(item.goodsId, item.gradeId, item, index)"
  473. >
  474. <view class="lefts">
  475. <image
  476. class="lefet_img"
  477. :src="$method.splitImgHost(item.coverUrl, true)"
  478. mode=""
  479. ></image>
  480. <view v-if="item.goodsType == 6" class="live_icon">直播</view>
  481. </view>
  482. <view class="rights">
  483. <template
  484. v-if="
  485. item.externalLinkStatus ||
  486. (item.gradeStatus == 1 &&
  487. item.status == 1 &&
  488. item.serviceEndTime > sysTime &&
  489. item.serviceStartTime < sysTime &&
  490. item.classEndTime &&
  491. item.classEndTime < sysTime &&
  492. (item.periodStatus == 0 || item.periodStatus == -1) &&
  493. item.studyCount > 0)
  494. "
  495. >
  496. </template>
  497. <view v-else class="learn_progress">
  498. <view class="progress_up">
  499. <!-- 学习进度 (已做试卷+已做节)/(试卷数+节数) -->
  500. <view class="classHour">
  501. <text
  502. >{{
  503. item.courseNum || item.courseNum == 0
  504. ? item.courseNum
  505. : "-"
  506. }}课程/</text
  507. >
  508. <text
  509. >{{
  510. item.classHours || item.classHours == 0
  511. ? item.classHours
  512. : "-"
  513. }}学时/</text
  514. >
  515. <text>{{ item.secAllNum + item.examNum || "-" }}节</text>
  516. </view>
  517. <view class="scheduling">
  518. <view class="sche_bar">
  519. 进度:{{ item.stuAllNum + item.recordNum }}/{{
  520. item.secAllNum + item.examNum
  521. }}
  522. </view>
  523. <view class="progress_bar">
  524. <u-line-progress
  525. :showText="false"
  526. height="22"
  527. active-color="#ff9900"
  528. :show-percent="false"
  529. :percent="
  530. ((item.stuAllNum + item.recordNum) /
  531. (item.secAllNum + item.examNum)) *
  532. 100
  533. "
  534. ></u-line-progress>
  535. </view>
  536. </view>
  537. </view>
  538. </view>
  539. </view>
  540. </view>
  541. <!-- 按钮 -->
  542. <view class="study_btns">
  543. <template
  544. v-if="
  545. item.gradeStatus == 1 &&
  546. item.status == 1 &&
  547. item.serviceEndTime > sysTime &&
  548. item.serviceStartTime < sysTime &&
  549. item.classEndTime &&
  550. item.classEndTime < sysTime &&
  551. (item.periodStatus == 0 || item.periodStatus == -1) &&
  552. item.userStudyCount > 0
  553. "
  554. >
  555. <view
  556. class="exam_word ones"
  557. @click.stop="selectClass(item, index)"
  558. >
  559. 选班重学
  560. </view>
  561. </template>
  562. <!-- examApplyGoodsList.length -是判断是否关联指定学员 -->
  563. <view v-else class="exam_btns">
  564. <view
  565. class="box_appoint"
  566. v-if="
  567. item.applyStatus === 1 &&
  568. !(
  569. sysTime <= item.serviceStartTime ||
  570. sysTime >= item.serviceEndTime ||
  571. (item.classStartTime && sysTime <= item.classStartTime) ||
  572. (item.classEndTime && sysTime >= item.classEndTime) ||
  573. item.learningStatus == 2 ||
  574. item.classStatus == 0 ||
  575. (item.learningStatus == 3 &&
  576. sysTime < item.learningTimeStart) ||
  577. !item.examApplyGoodsList.length
  578. )
  579. "
  580. @click="appointment(item, appoint)"
  581. >
  582. <view class="exam_word ones">预约考试</view>
  583. </view>
  584. <view
  585. class="box_appoint"
  586. v-if="
  587. item.beforeStatus === 1 &&
  588. !(
  589. sysTime <= item.serviceStartTime ||
  590. sysTime >= item.serviceEndTime ||
  591. (item.classStartTime && sysTime <= item.classStartTime) ||
  592. (item.classEndTime && sysTime >= item.classEndTime) ||
  593. item.learningStatus == 2 ||
  594. item.classStatus == 0 ||
  595. (item.learningStatus == 3 &&
  596. sysTime < item.learningTimeStart)
  597. )
  598. "
  599. @click="appBeforeAddress(item.goodsId, item)"
  600. >
  601. <view class="exam_word ones">进入刷题</view>
  602. </view>
  603. </view>
  604. <view
  605. class="box_appoint"
  606. @click="studyIn(item.goodsId, item.gradeId, item, index)"
  607. >
  608. <view class="exam_word intos">进入学习</view>
  609. </view>
  610. </view>
  611. </view>
  612. </view>
  613. </view>
  614. <!-- 没有学习的课程 -->
  615. <view v-if="!allLoading && !allCourse" class="no_datas">
  616. <image
  617. class="courses"
  618. src="/static/learn/no_course.png"
  619. mode=""
  620. ></image>
  621. <view class="no_learns">您目前没有可学习的课程</view>
  622. <view class="choose" @click="toChoose()">立即去选购</view>
  623. </view>
  624. </view>
  625. <!-- 弹窗 -->
  626. <u-popup
  627. v-model="selectClassModal"
  628. @close="gradeValue = -1"
  629. mode="bottom"
  630. border-radius="40"
  631. >
  632. <view class="popup_box">
  633. <view style="margin-bottom: 20rpx">
  634. <view class="line1"></view>
  635. <view class="grade">选择班级</view>
  636. </view>
  637. <u-line color="#D6D6DB" />
  638. <view>
  639. <scroll-view scroll-y="true" style="height: 500rpx">
  640. <view>
  641. <u-radio-group v-model="gradeValue" @change="radioGroupChange">
  642. <view v-for="(item, index) in gradeList" :key="index">
  643. <view
  644. style="display: flex; align-items: center; padding: 20rpx"
  645. >
  646. <view>
  647. <u-radio
  648. shape="circle"
  649. :name="index"
  650. :disabled="
  651. item.studentNum > 0 &&
  652. item.studentNum == item.studentUpper
  653. "
  654. >
  655. <view
  656. :class="
  657. item.checked ? 'white-box blue-box' : 'white-box'
  658. "
  659. >
  660. <view>
  661. <view class="blackTxt">{{ item.className }}</view>
  662. <view class="redTxt" v-if="item.classEndTime">
  663. 有效期至:{{
  664. $method.timestampToTime(
  665. item.classEndTime,
  666. true,
  667. true
  668. )
  669. }}
  670. </view>
  671. <view class="redTxt" v-if="item.classEndTime">
  672. 本班还剩{{
  673. $method.GetRTime(item.classEndTime)
  674. }}天将结束学习</view
  675. >
  676. </view>
  677. </view>
  678. </u-radio>
  679. </view>
  680. </view>
  681. </view>
  682. </u-radio-group>
  683. </view>
  684. </scroll-view>
  685. </view>
  686. <view class="confrim-btn">
  687. <view class="okBtn" @click="okPopup()">确定</view>
  688. </view>
  689. </view>
  690. </u-popup>
  691. <u-modal
  692. v-model="showUserConfirmInfo"
  693. @confirm="confirmUserConfirm"
  694. ref="uModal"
  695. :async-close="true"
  696. @cancel="cancelUserConfirm"
  697. :confirm-text="
  698. '确认' + (confirmCount > 0 ? '(' + confirmCount + ')' : '')
  699. "
  700. :confirm-color="confirmCount > 0 ? '#999' : '#2979ff'"
  701. class="confirm-modal"
  702. title="实名验证确认"
  703. cancel="取消"
  704. :show-cancel-button="true"
  705. >
  706. <view class="slot-content">
  707. <view class="content">
  708. 为避免个人信息不正确导致您的学习时长无效,请认真核对以下信息是否正确,如信息有误请取消当前操作,立刻联系020-38946666
  709. <view class="msg-list" v-if="userInfo">
  710. <view class="item">
  711. <text class="item__left">姓名:</text>
  712. <text class="item__right">{{ userInfo.realname }}</text>
  713. </view>
  714. <view class="item">
  715. <text class="item__left">手机号:</text>
  716. <text class="item__right">{{ userInfo.telphone }}</text>
  717. </view>
  718. <view class="item">
  719. <text class="item__left">身份号:</text>
  720. <text class="item__right">{{ userInfo.idCard }}</text>
  721. </view>
  722. <view class="item">
  723. <u-checkbox v-model="confirmChecked" :label-disabled="false"
  724. >确认个人信息无误</u-checkbox
  725. >
  726. </view>
  727. </view>
  728. </view>
  729. </view>
  730. </u-modal>
  731. <!-- 多个预约考试时的弹窗 -->
  732. <u-popup v-model="appointTestShow" mode="bottom" border-radius="40">
  733. <view class="popuptest_box">
  734. <view class="check_head">
  735. <view class="headers">
  736. <view class="grade">切换课程</view>
  737. <u-icon
  738. name="close"
  739. color="#9C9C9C"
  740. size="40"
  741. @click="closePop()"
  742. ></u-icon>
  743. </view>
  744. </view>
  745. <view class="check_con">
  746. <scroll-view scroll-y="true" style="height: 700rpx">
  747. <view
  748. class="course_items"
  749. v-for="(appoint, index) in appointTestList"
  750. :key="index"
  751. >
  752. <view class="course_lefts">
  753. <view class="course_title">{{ appoint.applyName }}</view>
  754. </view>
  755. <view
  756. class="course_rights"
  757. @click="jumpTest(appointItemIndex, appoint)"
  758. >
  759. <view class="intoStudy">预约</view>
  760. </view>
  761. </view>
  762. </scroll-view>
  763. </view>
  764. </view>
  765. </u-popup>
  766. </view>
  767. </template>
  768. <script>
  769. var curTime = new Date().getTime(); // 当前时间的时间戳
  770. import { mapGetters, mapActions } from "vuex";
  771. import config from "@/common/config";
  772. export default {
  773. data() {
  774. return {
  775. logo: config.TOP_LOGO,
  776. leftDays: 0,
  777. paramC: {
  778. pageNum: 1,
  779. pageSize: 10,
  780. },
  781. activeItem: {},
  782. itemIndex: "",
  783. confirmTimer: null,
  784. confirmCount: 10,
  785. confirmChecked: false,
  786. showUserConfirmInfo: false,
  787. selectItem: {},
  788. selectClassModal: false,
  789. gradeList: [],
  790. gradeValue: -1,
  791. sysTime: 0,
  792. courseLists: [], // 课程列表
  793. total: 0,
  794. livingLists: [], // 直播列表
  795. allLoading: false, // 加载样式
  796. current: 2,
  797. appointTestShow: false, //预约考试弹窗
  798. appointTestList: [],
  799. appointItemIndex: {}, // 点击了哪项课程
  800. };
  801. },
  802. filters: {
  803. liveStatus(liveTime, watchStatus) {
  804. let value = liveTime * 1000;
  805. if (curTime < value) {
  806. // 判断当前时间和直播开始时间
  807. return " 未开播";
  808. } else {
  809. return watchStatus == "live" ? "正在直播中" : "即将开播";
  810. }
  811. },
  812. },
  813. computed: {
  814. ...mapGetters(["userInfo"]),
  815. allCourse() {
  816. return this.courseLists.length || this.livingLists.length ? true : false;
  817. },
  818. },
  819. onLoad() {
  820. // 1668873600 ,2022.11.20的时间戳
  821. this.leftDays = 1668873600 - parseInt(curTime / 1000);
  822. this.sysTime = +this.$method.timest();
  823. },
  824. async onShow() {
  825. uni.pageScrollTo({
  826. duration: 0,
  827. scrollTop: 0, // number number number!
  828. });
  829. this.getCourseLiveQues();
  830. // await this.commonSystemTime()
  831. },
  832. onPullDownRefresh() {
  833. this.getCourseLiveQues();
  834. },
  835. onReachBottom() {
  836. if (this.courseLists.length <= this.total) {
  837. this.paramC.pageNum++;
  838. this.getCourseList();
  839. }
  840. },
  841. methods: {
  842. ...mapActions(["getUserInfo"]),
  843. bgShow(liveTime, watchStatus) {
  844. let value = liveTime * 1000;
  845. if (curTime > value) {
  846. // 判断当前时间和直播开始时间
  847. return watchStatus == "live" ? true : false;
  848. }
  849. },
  850. lookTimeStatus(liveTime, watchStatus) {
  851. if (liveTime) {
  852. let value = new Date(liveTime * 1000);
  853. var Y = value.getFullYear();
  854. var M =
  855. value.getMonth() + 1 < 10
  856. ? "0" + (value.getMonth() + 1)
  857. : value.getMonth() + 1;
  858. var D = value.getDate() < 10 ? "0" + value.getDate() : value.getDate();
  859. var valZ = Y + "/" + M + "/" + D;
  860. let curZeroTime = new Date(valZ).getTime(); // 获取开始直播时间当天的零点时间戳
  861. if (curTime > value) {
  862. // 判断当前时间和直播开始时间
  863. if (watchStatus == "live") {
  864. //
  865. return 1;
  866. } else {
  867. return 2;
  868. }
  869. } else {
  870. if (curZeroTime <= curTime && curTime <= value) {
  871. //当天
  872. return 3;
  873. } else {
  874. return 4;
  875. }
  876. }
  877. }
  878. },
  879. curTimeTamp(liveTime) {
  880. let min = liveTime - parseInt(curTime / 1000);
  881. return min;
  882. },
  883. toChoose() {
  884. uni.switchTab({
  885. url: "/pages/course/index",
  886. });
  887. },
  888. // 查询直播课
  889. getCourseLiveQues() {
  890. if (!this.$method.isLogin()) {
  891. return;
  892. }
  893. this.allLoading = true;
  894. this.paramC.pageNum = 1;
  895. let arrs = [
  896. this.$api.listUserVideoLive(this.paramC), // 查询用户拥有视频+直播商品 /goods/listUserVideoLive
  897. this.$api.getgoodsLiveList({
  898. pageNum: 1,
  899. pageSize: 3, // 默认3条
  900. }),
  901. ];
  902. wx.stopPullDownRefresh();
  903. Promise.all(arrs)
  904. .then((res) => {
  905. // if (res.data.code == 200) {
  906. const [{ data: res1 }, { data: res2 }] = res;
  907. if (res1.code == 200) {
  908. this.total = res1.total;
  909. this.courseLists = res1.rows || [];
  910. }
  911. // if (res2.code == 200) {
  912. // this.questionLists = res2.rows || []
  913. // }
  914. if (res2.code == 200) {
  915. this.livingLists = res2.rows || [];
  916. } else {
  917. this.$u.toast(res2.msg);
  918. }
  919. this.allLoading = false;
  920. this.sysTime = +this.$method.timest();
  921. // }
  922. uni.hideLoading();
  923. })
  924. .catch((err) => {
  925. uni.hideLoading();
  926. this.allLoading = false;
  927. });
  928. },
  929. getCourseList() {
  930. this.$api
  931. .listUserVideoLive(this.paramC)
  932. .then((res) => {
  933. this.courseLists.push(...res.data.rows);
  934. })
  935. .finally((e) => {
  936. uni.hideLoading();
  937. });
  938. },
  939. // 看直播
  940. toLiveLook(item) {
  941. let moduleId = item.moduleId || 0;
  942. let chapterId = item.chapterId || 0;
  943. let sectionId = item.sectionId || item.menuId;
  944. let uuid = new Date().valueOf() + "";
  945. // buyCourse 是否购买课程:1是 0否
  946. let encode = encodeURIComponent(
  947. config.WEBVIEW_URL +
  948. "pages/live/index?token=" +
  949. uni.getStorageSync("token") +
  950. "&userInfo=" +
  951. JSON.stringify(this.userInfo) +
  952. "&channelId=" +
  953. item.liveUrl +
  954. "&gradeId=" +
  955. 0 +
  956. "&courseId=" +
  957. item.courseId +
  958. "&goodsId=" +
  959. item.goodsId +
  960. "&orderGoodsId=" +
  961. item.orderGoodsId +
  962. "&sectionId=" +
  963. sectionId +
  964. "&chapterId=" +
  965. chapterId +
  966. "&moduleId=" +
  967. moduleId +
  968. "&buyCourse=1" +
  969. "&ident=" +
  970. uuid +
  971. "&sectionType=2"
  972. );
  973. uni.navigateTo({
  974. url: `../../pages/webview/index?url=` + encode,
  975. });
  976. },
  977. toLive(item) {
  978. this.$api
  979. .courseCourseList({
  980. pageNum: 1,
  981. pageSize: 1,
  982. goodsId: item.goodsId,
  983. gradeId: 0,
  984. orderGoodsId: item.orderGoodsId,
  985. })
  986. .then((res) => {
  987. if (res.data.code == 200) {
  988. if (res.data.total > 1) {
  989. // uni.navigateTo({
  990. // url:'/pages5/liveDetail/course?orderGoodsId='+item.orderGoodsId+'&goodsId='+item.goodsId+'&gradeId=0'
  991. // })
  992. uni.navigateTo({
  993. url:
  994. "/pages3/live/detail?orderGoodsId=" +
  995. item.orderGoodsId +
  996. "&goodsId=" +
  997. item.goodsId +
  998. '&gradeId=0&courseId=""',
  999. });
  1000. } else if (res.data.total == 1) {
  1001. uni.navigateTo({
  1002. url:
  1003. "/pages3/live/detail?orderGoodsId=" +
  1004. item.orderGoodsId +
  1005. "&goodsId=" +
  1006. item.goodsId +
  1007. "&gradeId=0&courseId=" +
  1008. res.data.rows[0].courseId,
  1009. });
  1010. } else {
  1011. uni.showToast({
  1012. icon: "none",
  1013. title: "暂无可观看的直播课程",
  1014. });
  1015. }
  1016. }
  1017. });
  1018. },
  1019. async studyIn(v, i, item, index) {
  1020. if (item.externalLinkStatus) {
  1021. this.$method.toLink(item.externalLink);
  1022. return;
  1023. }
  1024. if (item.goodsType == 6) {
  1025. // 进入直播课
  1026. this.toLive(item);
  1027. return;
  1028. }
  1029. // 进入视频课
  1030. this.activeItem = item;
  1031. if (item.interfaceAccountId > 0) {
  1032. //学习账号已开通
  1033. if (item.learnStatus > 0) {
  1034. //跳转第三方h5
  1035. uni.navigateTo({
  1036. url: `/pages3/polyv/detail?goodsId=${item.goodsId}&orderGoodsId=${item.orderGoodsId}&gradeId=${item.gradeId}&isOther=1`,
  1037. });
  1038. return;
  1039. } else {
  1040. uni.showModal({
  1041. showCancel: false,
  1042. content:
  1043. "您的学习账号未开通,请稍后再尝试,有疑问,请联系020-87085982!",
  1044. });
  1045. return;
  1046. }
  1047. return;
  1048. }
  1049. if (
  1050. item.serviceStartTime &&
  1051. (this.sysTime <= item.serviceStartTime ||
  1052. this.sysTime >= item.serviceEndTime)
  1053. ) {
  1054. uni.showToast({
  1055. icon: "none",
  1056. title: "不在学习服务期,不能进入学习",
  1057. });
  1058. return;
  1059. }
  1060. if (
  1061. (item.classStartTime && this.sysTime <= item.classStartTime) ||
  1062. (item.classEndTime && this.sysTime >= item.classEndTime)
  1063. ) {
  1064. uni.showToast({
  1065. icon: "none",
  1066. title: "不在班级有效期,不能进入学习",
  1067. });
  1068. return;
  1069. }
  1070. // learningStatus: 1即刻,2待定,3不在日期内
  1071. if (item.learningStatus == 2) {
  1072. uni.showToast({
  1073. icon: "none",
  1074. title: "开放学习时间待定,不能进入学习",
  1075. });
  1076. return;
  1077. }
  1078. if (item.classStatus == 0) {
  1079. uni.showToast({
  1080. icon: "none",
  1081. title: "尚未开班,不能进入学习",
  1082. });
  1083. return;
  1084. }
  1085. if (item.learningStatus == 3 && this.sysTime < item.learningTimeStart) {
  1086. uni.showToast({
  1087. icon: "none",
  1088. title: "不在开放学习时间,不能进入学习",
  1089. });
  1090. return;
  1091. }
  1092. uni.showLoading({
  1093. title: "拼命加载中...",
  1094. mask: true,
  1095. });
  1096. var confirmDetail = true;
  1097. if (item.educationName == "继续教育") {
  1098. if (
  1099. item.officialName &&
  1100. item.businessName == "二级" &&
  1101. item.projectName == "建造师"
  1102. ) {
  1103. confirmDetail = await this.userConfirmInfoDetail();
  1104. }
  1105. }
  1106. if (!confirmDetail) {
  1107. return;
  1108. }
  1109. this.itemIndex = index;
  1110. if (
  1111. item.gradeStatus == 1 &&
  1112. item.status == 1 &&
  1113. item.serviceEndTime > this.sysTime &&
  1114. item.classEndTime &&
  1115. item.classEndTime < this.sysTime &&
  1116. (item.periodStatus == 0 || item.periodStatus == -1) &&
  1117. item.studyCount > 0
  1118. ) {
  1119. this.selectClass(item, index, "loading");
  1120. return;
  1121. }
  1122. // /course/goodsRebuildStatus查询用户商品重修状态
  1123. let rebuildStatus = await this.courseGoodsRebuildStatus(
  1124. item.goodsId,
  1125. item.gradeId
  1126. );
  1127. if (rebuildStatus == 0) {
  1128. uni.hideLoading();
  1129. this.$navTo.togo("/pages2/learn/details", {
  1130. gradeId: item.gradeId,
  1131. goodsId: item.goodsId,
  1132. orderGoodsId: item.orderGoodsId,
  1133. });
  1134. return;
  1135. }
  1136. // /lock/lockStatus
  1137. this.$api
  1138. .lockLockStatus({
  1139. action: "jxjy",
  1140. uuid: this.$method.getUuid(),
  1141. })
  1142. .then((res) => {
  1143. if (res.data.code == 200) {
  1144. //有其他端在操作,不能学习
  1145. uni.showToast({
  1146. icon: "none",
  1147. title: res.data.msg,
  1148. mask: true,
  1149. duration: 3000,
  1150. });
  1151. } else if (res.data.code == 500) {
  1152. //可以学习
  1153. this.$http({
  1154. url: "/course/courseList",
  1155. method: "get",
  1156. data: {
  1157. pageNum: 1,
  1158. pageSize: 100,
  1159. goodsId: item.goodsId,
  1160. gradeId: item.gradeId,
  1161. orderGoodsId: item.orderGoodsId,
  1162. },
  1163. noLoading: true,
  1164. }).then((res) => {
  1165. if (res.data.code == 200) {
  1166. if (res.data.total > 1) {
  1167. // this.$navTo.togo(`/pages2/wd/course?id=${v}&gid=${i}&orderGoodsId=${item.orderGoodsId}`);
  1168. uni.navigateTo({
  1169. url: `/pages3/polyv/detail?id=''&goodsId=${item.goodsId}&orderGoodsId=${item.orderGoodsId}&gradeId=${item.gradeId}`,
  1170. });
  1171. } else if (res.data.total == 1) {
  1172. uni.navigateTo({
  1173. url: `/pages3/polyv/detail?id=${res.data.rows[0].courseId}&goodsId=${item.goodsId}&orderGoodsId=${item.orderGoodsId}&gradeId=${item.gradeId}`,
  1174. });
  1175. } else {
  1176. uni.showToast({
  1177. icon: "none",
  1178. title: "暂无可观看的视频课程",
  1179. });
  1180. }
  1181. }
  1182. });
  1183. return;
  1184. }
  1185. });
  1186. },
  1187. /**
  1188. * @param {Object} goodsId 商品id
  1189. * 查询商品重修状态
  1190. */
  1191. courseGoodsRebuildStatus(goodsId, gradeId) {
  1192. return new Promise((resolve) => {
  1193. this.$http({
  1194. url: "/course/goodsRebuildStatus",
  1195. method: "get",
  1196. data: {
  1197. goodsId: goodsId,
  1198. gradeId: gradeId,
  1199. },
  1200. noLoading: true,
  1201. compleLoading: true, // 请求成功是否还要继续显示加载中
  1202. }).then((res) => {
  1203. resolve(res.data.data);
  1204. });
  1205. });
  1206. },
  1207. userConfirmInfoDetail() {
  1208. return new Promise((resolve) => {
  1209. this.$http({
  1210. url: "/user/confirm/info/detail",
  1211. method: "get",
  1212. data: { orderGoodsId: this.activeItem.orderGoodsId },
  1213. noLoading: true,
  1214. }).then((res) => {
  1215. if (!res.data.data) {
  1216. clearInterval(this.confirmTimer);
  1217. this.confirmCount = 10;
  1218. this.showUserConfirmInfo = true;
  1219. this.confirmTimer = setInterval(() => {
  1220. if (this.confirmCount > 0) {
  1221. this.confirmCount--;
  1222. } else {
  1223. clearInterval(this.confirmTimer);
  1224. }
  1225. }, 1000);
  1226. } else {
  1227. if (res.data.data.pushInfo) {
  1228. resolve(true);
  1229. } else {
  1230. uni.showModal({
  1231. showCancel: false,
  1232. title: "提示",
  1233. content:
  1234. "开通信息推送不成功,无法进入学习,请联系020-87085982!",
  1235. });
  1236. resolve(false);
  1237. }
  1238. }
  1239. });
  1240. });
  1241. },
  1242. selectClass(item, index, load) {
  1243. this.itemIndex = index;
  1244. this.selectItem = item;
  1245. this.selectClassModal = true;
  1246. this.goodsGradeList(item.goodsId, load);
  1247. },
  1248. goodsGradeList(id, load) {
  1249. this.$http({
  1250. url: "/grade/grade/list",
  1251. method: "get",
  1252. data: { goodsId: id },
  1253. noLoading: load ? true : false,
  1254. }).then((res) => {
  1255. if (res.data.code == 200) {
  1256. this.gradeList = res.data.rows;
  1257. if (this.gradeList.length == 0) {
  1258. let item = {
  1259. className: "系统分班",
  1260. gradeId: 0,
  1261. };
  1262. this.gradeList.push(item);
  1263. } else {
  1264. let isGradeFull = this.gradeList.every(
  1265. (item) =>
  1266. item.studentNum > 0 && item.studentNum == item.studentUpper
  1267. );
  1268. //所有班级都满了
  1269. if (isGradeFull) {
  1270. let item = {
  1271. className: "系统分班",
  1272. gradeId: 0,
  1273. };
  1274. this.gradeList.unshift(item);
  1275. }
  1276. }
  1277. }
  1278. });
  1279. },
  1280. radioGroupChange(e) {
  1281. // console.log(e)
  1282. },
  1283. okPopup() {
  1284. if (this.gradeValue == -1) {
  1285. uni.showToast({
  1286. icon: "none",
  1287. title: "请选择班级",
  1288. });
  1289. return;
  1290. }
  1291. this.$api
  1292. .changeGrade({
  1293. goodsId: this.selectItem.goodsId,
  1294. gradeId: this.gradeValue,
  1295. oldGradeId: this.selectItem.gradeId,
  1296. orderGoodsId: this.selectItem.orderGoodsId,
  1297. userId: this.selectItem.userId,
  1298. })
  1299. .then((res) => {
  1300. if (res.data.code == 200) {
  1301. if (this.itemIndex !== "") {
  1302. this.refreshByIndex();
  1303. }
  1304. this.selectClassModal = false;
  1305. uni.showToast({
  1306. title: "选班成功",
  1307. });
  1308. } else {
  1309. uni.showToast({
  1310. icon: "none",
  1311. title: res.data.msg,
  1312. });
  1313. }
  1314. });
  1315. },
  1316. /**
  1317. * 返回刷新之前进入的课程数据
  1318. */
  1319. refreshByIndex() {
  1320. this.$api
  1321. .listUserVideoLive({
  1322. pageNum: this.itemIndex + 1,
  1323. pageSize: 1,
  1324. })
  1325. .then((res) => {
  1326. if (res.data.code == 200) {
  1327. this.$set(this.courseLists, this.itemIndex, res.data.rows[0]);
  1328. }
  1329. });
  1330. },
  1331. confirmUserConfirm() {
  1332. this.$refs.uModal.clearLoading();
  1333. if (this.confirmCount <= 0) {
  1334. if (this.confirmChecked) {
  1335. let infoJson = {
  1336. realname: this.userInfo.realname,
  1337. idCard: this.userInfo.idCard,
  1338. telphone: this.userInfo.telphone,
  1339. };
  1340. this.$api
  1341. .userConfirminfo({
  1342. orderGoodsId: this.activeItem.orderGoodsId,
  1343. infoJson: JSON.stringify(infoJson),
  1344. })
  1345. .then((res) => {
  1346. if (res.data.data.pushInfo) {
  1347. uni.showToast({
  1348. icon: "none",
  1349. title: "提交成功",
  1350. });
  1351. } else {
  1352. uni.showModal({
  1353. showCancel: false,
  1354. title: "提示",
  1355. content:
  1356. "开通信息推送不成功,无法进入学习,请联系020-87085982!",
  1357. });
  1358. }
  1359. this.showUserConfirmInfo = false;
  1360. });
  1361. } else {
  1362. uni.showToast({
  1363. icon: "none",
  1364. title: "请勾选确认个人信息无误",
  1365. });
  1366. }
  1367. } else {
  1368. return;
  1369. }
  1370. },
  1371. cancelUserConfirm() {
  1372. clearInterval(this.confirmTimer);
  1373. },
  1374. call() {
  1375. uni.makePhoneCall({
  1376. phoneNumber: "020-87085982", //仅为示例
  1377. });
  1378. },
  1379. closePop() {
  1380. this.appointTestShow = false;
  1381. },
  1382. jumpTest(item, appoint) {
  1383. this.appoint_an(item, appoint);
  1384. this.appointTestShow = false;
  1385. },
  1386. appointment(item, appoint) {
  1387. this.appointItemIndex = item;
  1388. if (item.examApplyGoodsList.length > 1) {
  1389. // 多个考试预约
  1390. this.appointTestList = item.examApplyGoodsList;
  1391. this.appointTestShow = true;
  1392. return;
  1393. }
  1394. let appoint_item = item.examApplyGoodsList[0];
  1395. this.appoint_an(item, appoint_item);
  1396. },
  1397. appoint_an(item, appoint) {
  1398. var data = {
  1399. goodsId: item.goodsId,
  1400. gradeId: item.gradeId,
  1401. applyId: appoint.applyId,
  1402. orderGoodsId: item.orderGoodsId,
  1403. };
  1404. this.$api.getApplysubscribe(data).then((res) => {
  1405. if (res.data.code === 500) {
  1406. uni.showModal({
  1407. showCancel: false,
  1408. content: res.data.msg,
  1409. });
  1410. }
  1411. if (res.data.code === 200) {
  1412. this.$navTo.togo("/pages2/appointment/index", {
  1413. goodsId: item.goodsId,
  1414. gradeId: item.gradeId,
  1415. orderGoodsId: item.orderGoodsId,
  1416. applyId: appoint.applyId,
  1417. });
  1418. }
  1419. });
  1420. },
  1421. // 进入刷题,调整小程序
  1422. appBeforeAddress(goodsId, item) {
  1423. this.$api
  1424. .appBeforeAddress({
  1425. orderGoodsId: item.orderGoodsId,
  1426. })
  1427. .then((res) => {
  1428. if (res.data.code == 200) {
  1429. uni.navigateToMiniProgram({
  1430. appId: res.data.data.url,
  1431. success(res) {
  1432. // 打开成功
  1433. },
  1434. });
  1435. } else {
  1436. uni.showModal({
  1437. title: "提示",
  1438. content: res.data.msg,
  1439. showCancel: false,
  1440. });
  1441. }
  1442. });
  1443. },
  1444. },
  1445. };
  1446. </script>
  1447. <style>
  1448. page {
  1449. background: #eaeef1;
  1450. }
  1451. </style>
  1452. <style lang="scss" scoped>
  1453. @import "./index.scss";
  1454. </style>