index.vue 49 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486
  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.externalLink
  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.externalLink">
  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.externalLink ||
  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.externalLink) {
  1021. // #ifdef MP-WEIXIN
  1022. uni.navigateTo({
  1023. url: `/pages/webview/sdlink?url=` + item.externalLink,
  1024. });
  1025. // #endif
  1026. // #ifdef H5
  1027. window.location.href = item.externalLink;
  1028. // #endif
  1029. return;
  1030. }
  1031. if (item.goodsType == 6) {
  1032. // 进入直播课
  1033. this.toLive(item);
  1034. return;
  1035. }
  1036. // 进入视频课
  1037. this.activeItem = item;
  1038. if (item.interfaceAccountId > 0) {
  1039. //学习账号已开通
  1040. if (item.learnStatus > 0) {
  1041. //跳转第三方h5
  1042. uni.navigateTo({
  1043. url: `/pages3/polyv/detail?goodsId=${item.goodsId}&orderGoodsId=${item.orderGoodsId}&gradeId=${item.gradeId}&isOther=1`,
  1044. });
  1045. return;
  1046. } else {
  1047. uni.showModal({
  1048. showCancel: false,
  1049. content:
  1050. "您的学习账号未开通,请稍后再尝试,有疑问,请联系020-87085982!",
  1051. });
  1052. return;
  1053. }
  1054. return;
  1055. }
  1056. if (
  1057. item.serviceStartTime &&
  1058. (this.sysTime <= item.serviceStartTime ||
  1059. this.sysTime >= item.serviceEndTime)
  1060. ) {
  1061. uni.showToast({
  1062. icon: "none",
  1063. title: "不在学习服务期,不能进入学习",
  1064. });
  1065. return;
  1066. }
  1067. if (
  1068. (item.classStartTime && this.sysTime <= item.classStartTime) ||
  1069. (item.classEndTime && this.sysTime >= item.classEndTime)
  1070. ) {
  1071. uni.showToast({
  1072. icon: "none",
  1073. title: "不在班级有效期,不能进入学习",
  1074. });
  1075. return;
  1076. }
  1077. // learningStatus: 1即刻,2待定,3不在日期内
  1078. if (item.learningStatus == 2) {
  1079. uni.showToast({
  1080. icon: "none",
  1081. title: "开放学习时间待定,不能进入学习",
  1082. });
  1083. return;
  1084. }
  1085. if (item.classStatus == 0) {
  1086. uni.showToast({
  1087. icon: "none",
  1088. title: "尚未开班,不能进入学习",
  1089. });
  1090. return;
  1091. }
  1092. if (item.learningStatus == 3 && this.sysTime < item.learningTimeStart) {
  1093. uni.showToast({
  1094. icon: "none",
  1095. title: "不在开放学习时间,不能进入学习",
  1096. });
  1097. return;
  1098. }
  1099. uni.showLoading({
  1100. title: "拼命加载中...",
  1101. mask: true,
  1102. });
  1103. var confirmDetail = true;
  1104. if (item.educationName == "继续教育") {
  1105. if (
  1106. item.officialName &&
  1107. item.businessName == "二级" &&
  1108. item.projectName == "建造师"
  1109. ) {
  1110. confirmDetail = await this.userConfirmInfoDetail();
  1111. }
  1112. }
  1113. if (!confirmDetail) {
  1114. return;
  1115. }
  1116. this.itemIndex = index;
  1117. if (
  1118. item.gradeStatus == 1 &&
  1119. item.status == 1 &&
  1120. item.serviceEndTime > this.sysTime &&
  1121. item.classEndTime &&
  1122. item.classEndTime < this.sysTime &&
  1123. (item.periodStatus == 0 || item.periodStatus == -1) &&
  1124. item.studyCount > 0
  1125. ) {
  1126. this.selectClass(item, index, "loading");
  1127. return;
  1128. }
  1129. // /course/goodsRebuildStatus查询用户商品重修状态
  1130. let rebuildStatus = await this.courseGoodsRebuildStatus(
  1131. item.goodsId,
  1132. item.gradeId
  1133. );
  1134. if (rebuildStatus == 0) {
  1135. uni.hideLoading();
  1136. this.$navTo.togo("/pages2/learn/details", {
  1137. gradeId: item.gradeId,
  1138. goodsId: item.goodsId,
  1139. orderGoodsId: item.orderGoodsId,
  1140. });
  1141. return;
  1142. }
  1143. // /lock/lockStatus
  1144. this.$api
  1145. .lockLockStatus({
  1146. action: "jxjy",
  1147. uuid: this.$method.getUuid(),
  1148. })
  1149. .then((res) => {
  1150. if (res.data.code == 200) {
  1151. //有其他端在操作,不能学习
  1152. uni.showToast({
  1153. icon: "none",
  1154. title: res.data.msg,
  1155. mask: true,
  1156. duration: 3000,
  1157. });
  1158. } else if (res.data.code == 500) {
  1159. //可以学习
  1160. this.$http({
  1161. url: "/course/courseList",
  1162. method: "get",
  1163. data: {
  1164. pageNum: 1,
  1165. pageSize: 100,
  1166. goodsId: item.goodsId,
  1167. gradeId: item.gradeId,
  1168. orderGoodsId: item.orderGoodsId,
  1169. },
  1170. noLoading: true,
  1171. }).then((res) => {
  1172. if (res.data.code == 200) {
  1173. if (res.data.total > 1) {
  1174. // this.$navTo.togo(`/pages2/wd/course?id=${v}&gid=${i}&orderGoodsId=${item.orderGoodsId}`);
  1175. uni.navigateTo({
  1176. url: `/pages3/polyv/detail?id=''&goodsId=${item.goodsId}&orderGoodsId=${item.orderGoodsId}&gradeId=${item.gradeId}`,
  1177. });
  1178. } else if (res.data.total == 1) {
  1179. uni.navigateTo({
  1180. url: `/pages3/polyv/detail?id=${res.data.rows[0].courseId}&goodsId=${item.goodsId}&orderGoodsId=${item.orderGoodsId}&gradeId=${item.gradeId}`,
  1181. });
  1182. } else {
  1183. uni.showToast({
  1184. icon: "none",
  1185. title: "暂无可观看的视频课程",
  1186. });
  1187. }
  1188. }
  1189. });
  1190. return;
  1191. }
  1192. });
  1193. },
  1194. /**
  1195. * @param {Object} goodsId 商品id
  1196. * 查询商品重修状态
  1197. */
  1198. courseGoodsRebuildStatus(goodsId, gradeId) {
  1199. return new Promise((resolve) => {
  1200. this.$http({
  1201. url: "/course/goodsRebuildStatus",
  1202. method: "get",
  1203. data: {
  1204. goodsId: goodsId,
  1205. gradeId: gradeId,
  1206. },
  1207. noLoading: true,
  1208. compleLoading: true, // 请求成功是否还要继续显示加载中
  1209. }).then((res) => {
  1210. resolve(res.data.data);
  1211. });
  1212. });
  1213. },
  1214. userConfirmInfoDetail() {
  1215. return new Promise((resolve) => {
  1216. this.$http({
  1217. url: "/user/confirm/info/detail",
  1218. method: "get",
  1219. data: { orderGoodsId: this.activeItem.orderGoodsId },
  1220. noLoading: true,
  1221. }).then((res) => {
  1222. if (!res.data.data) {
  1223. clearInterval(this.confirmTimer);
  1224. this.confirmCount = 10;
  1225. this.showUserConfirmInfo = true;
  1226. this.confirmTimer = setInterval(() => {
  1227. if (this.confirmCount > 0) {
  1228. this.confirmCount--;
  1229. } else {
  1230. clearInterval(this.confirmTimer);
  1231. }
  1232. }, 1000);
  1233. } else {
  1234. if (res.data.data.pushInfo) {
  1235. resolve(true);
  1236. } else {
  1237. uni.showModal({
  1238. showCancel: false,
  1239. title: "提示",
  1240. content:
  1241. "开通信息推送不成功,无法进入学习,请联系020-87085982!",
  1242. });
  1243. resolve(false);
  1244. }
  1245. }
  1246. });
  1247. });
  1248. },
  1249. selectClass(item, index, load) {
  1250. this.itemIndex = index;
  1251. this.selectItem = item;
  1252. this.selectClassModal = true;
  1253. this.goodsGradeList(item.goodsId, load);
  1254. },
  1255. goodsGradeList(id, load) {
  1256. this.$http({
  1257. url: "/grade/grade/list",
  1258. method: "get",
  1259. data: { goodsId: id },
  1260. noLoading: load ? true : false,
  1261. }).then((res) => {
  1262. if (res.data.code == 200) {
  1263. this.gradeList = res.data.rows;
  1264. if (this.gradeList.length == 0) {
  1265. let item = {
  1266. className: "系统分班",
  1267. gradeId: 0,
  1268. };
  1269. this.gradeList.push(item);
  1270. } else {
  1271. let isGradeFull = this.gradeList.every(
  1272. (item) =>
  1273. item.studentNum > 0 && item.studentNum == item.studentUpper
  1274. );
  1275. //所有班级都满了
  1276. if (isGradeFull) {
  1277. let item = {
  1278. className: "系统分班",
  1279. gradeId: 0,
  1280. };
  1281. this.gradeList.unshift(item);
  1282. }
  1283. }
  1284. }
  1285. });
  1286. },
  1287. radioGroupChange(e) {
  1288. // console.log(e)
  1289. },
  1290. okPopup() {
  1291. if (this.gradeValue == -1) {
  1292. uni.showToast({
  1293. icon: "none",
  1294. title: "请选择班级",
  1295. });
  1296. return;
  1297. }
  1298. this.$api
  1299. .changeGrade({
  1300. goodsId: this.selectItem.goodsId,
  1301. gradeId: this.gradeValue,
  1302. oldGradeId: this.selectItem.gradeId,
  1303. orderGoodsId: this.selectItem.orderGoodsId,
  1304. userId: this.selectItem.userId,
  1305. })
  1306. .then((res) => {
  1307. if (res.data.code == 200) {
  1308. if (this.itemIndex !== "") {
  1309. this.refreshByIndex();
  1310. }
  1311. this.selectClassModal = false;
  1312. uni.showToast({
  1313. title: "选班成功",
  1314. });
  1315. } else {
  1316. uni.showToast({
  1317. icon: "none",
  1318. title: res.data.msg,
  1319. });
  1320. }
  1321. });
  1322. },
  1323. /**
  1324. * 返回刷新之前进入的课程数据
  1325. */
  1326. refreshByIndex() {
  1327. this.$api
  1328. .listUserVideoLive({
  1329. pageNum: this.itemIndex + 1,
  1330. pageSize: 1,
  1331. })
  1332. .then((res) => {
  1333. if (res.data.code == 200) {
  1334. this.$set(this.courseLists, this.itemIndex, res.data.rows[0]);
  1335. }
  1336. });
  1337. },
  1338. confirmUserConfirm() {
  1339. this.$refs.uModal.clearLoading();
  1340. if (this.confirmCount <= 0) {
  1341. if (this.confirmChecked) {
  1342. let infoJson = {
  1343. realname: this.userInfo.realname,
  1344. idCard: this.userInfo.idCard,
  1345. telphone: this.userInfo.telphone,
  1346. };
  1347. this.$api
  1348. .userConfirminfo({
  1349. orderGoodsId: this.activeItem.orderGoodsId,
  1350. infoJson: JSON.stringify(infoJson),
  1351. })
  1352. .then((res) => {
  1353. if (res.data.data.pushInfo) {
  1354. uni.showToast({
  1355. icon: "none",
  1356. title: "提交成功",
  1357. });
  1358. } else {
  1359. uni.showModal({
  1360. showCancel: false,
  1361. title: "提示",
  1362. content:
  1363. "开通信息推送不成功,无法进入学习,请联系020-87085982!",
  1364. });
  1365. }
  1366. this.showUserConfirmInfo = false;
  1367. });
  1368. } else {
  1369. uni.showToast({
  1370. icon: "none",
  1371. title: "请勾选确认个人信息无误",
  1372. });
  1373. }
  1374. } else {
  1375. return;
  1376. }
  1377. },
  1378. cancelUserConfirm() {
  1379. clearInterval(this.confirmTimer);
  1380. },
  1381. call() {
  1382. uni.makePhoneCall({
  1383. phoneNumber: "020-87085982", //仅为示例
  1384. });
  1385. },
  1386. closePop() {
  1387. this.appointTestShow = false;
  1388. },
  1389. jumpTest(item, appoint) {
  1390. this.appoint_an(item, appoint);
  1391. this.appointTestShow = false;
  1392. },
  1393. appointment(item, appoint) {
  1394. this.appointItemIndex = item;
  1395. if (item.examApplyGoodsList.length > 1) {
  1396. // 多个考试预约
  1397. this.appointTestList = item.examApplyGoodsList;
  1398. this.appointTestShow = true;
  1399. return;
  1400. }
  1401. let appoint_item = item.examApplyGoodsList[0];
  1402. this.appoint_an(item, appoint_item);
  1403. },
  1404. appoint_an(item, appoint) {
  1405. var data = {
  1406. goodsId: item.goodsId,
  1407. gradeId: item.gradeId,
  1408. applyId: appoint.applyId,
  1409. orderGoodsId: item.orderGoodsId,
  1410. };
  1411. this.$api.getApplysubscribe(data).then((res) => {
  1412. if (res.data.code === 500) {
  1413. uni.showModal({
  1414. showCancel: false,
  1415. content: res.data.msg,
  1416. });
  1417. }
  1418. if (res.data.code === 200) {
  1419. this.$navTo.togo("/pages2/appointment/index", {
  1420. goodsId: item.goodsId,
  1421. gradeId: item.gradeId,
  1422. orderGoodsId: item.orderGoodsId,
  1423. applyId: appoint.applyId,
  1424. });
  1425. }
  1426. });
  1427. },
  1428. // 进入刷题,调整小程序
  1429. appBeforeAddress(goodsId, item) {
  1430. this.$api
  1431. .appBeforeAddress({
  1432. orderGoodsId: item.orderGoodsId,
  1433. })
  1434. .then((res) => {
  1435. if (res.data.code == 200) {
  1436. uni.navigateToMiniProgram({
  1437. appId: res.data.data.url,
  1438. success(res) {
  1439. // 打开成功
  1440. },
  1441. });
  1442. } else {
  1443. uni.showModal({
  1444. title: "提示",
  1445. content: res.data.msg,
  1446. showCancel: false,
  1447. });
  1448. }
  1449. });
  1450. },
  1451. },
  1452. };
  1453. </script>
  1454. <style>
  1455. page {
  1456. background: #eaeef1;
  1457. }
  1458. </style>
  1459. <style lang="scss" scoped>
  1460. @import "./index.scss";
  1461. </style>