index.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653
  1. <template>
  2. <view>
  3. <swiper :circular="true" @change="onChangeTab" :duration="currentDuration" :current="current"
  4. class="ezy-study-swiper" :class="'ezy-study-swiper'+ currentProduct">
  5. <swiper-item v-for="(item,index) in zhangList" :key="index">
  6. <!-- 旧的数学 -->
  7. <shuxueZhangjie v-if="currentProduct ==1&&typeId==2" @clickGradeTerm="clickGradeTerm"
  8. @handleCheckCatalogue="handleCheckCatalogue(item)" @listClick="listClick" :gradeTerm='gradeTerm'
  9. :options="item" :youkeImage="youkeImage">
  10. </shuxueZhangjie>
  11. <!-- 旧的英语 -->
  12. <yingyuZhangjie v-if="currentProduct ==2&&typeId==2" @clickGradeTerm="clickGradeTerm"
  13. @handleCheckCatalogue="handleCheckCatalogue(item)" @listClick="listClick" :gradeTerm='gradeTerm'
  14. :options="item" :youkeImage="youkeImage">
  15. </yingyuZhangjie>
  16. <!-- 新的数学 -->
  17. <shuxueNewZhangjie v-if="currentProduct ==1&&typeId==1" @clickGradeTerm="clickGradeTerm"
  18. @handleCheckCatalogue="handleCheckCatalogue(item)" @listClick="listClick" :gradeTerm='gradeTerm'
  19. :options="item" :youkeImage="youkeImage">
  20. </shuxueNewZhangjie>
  21. <!-- 新的英语(人教版等等) -->
  22. <yingyuNewZhangjie v-if="currentProduct ==2&&typeId==1" @clickGradeTerm="clickGradeTerm"
  23. @handleCheckCatalogue="handleCheckCatalogue(item)" @listClick="listClick" :gradeTerm='gradeTerm'
  24. :options="item" :zhangName="zhangName" :youkeImage="youkeImage" :youkeImageBook="youkeImageBook">
  25. </yingyuNewZhangjie>
  26. </swiper-item>
  27. </swiper>
  28. <!-- 蛋 -->
  29. <egg-dialog ref="eggDialogRef" @eggBtn="eggBtn"></egg-dialog>
  30. <catalogue ref="catalogueRef" :list=zhangList @change-zhang="handleChangeZhang"
  31. @listSelectJieClick="listSelectJieClick"></catalogue>
  32. <CustomTabBar :levelId="levelId" :currentTabNumber="0" :subjectId="subjectId" :typeId="typeId"
  33. :tipFlag="tipFlag">
  34. </CustomTabBar>
  35. <tip-small-dialog ref="goPayDialogRef" @confirm-btn="goPayPage" :content="tipContent"></tip-small-dialog>
  36. <tip-big-dialog ref="youkeDialogRef" @confirm-btn="ykConfirm" :imgShow="true"></tip-big-dialog>
  37. <dao-tip-dialog ref="daoTipDialogRef" v-if="showDaoTip" :productTip="productTipImg"
  38. @dao-tip-close="daoTipClose"></dao-tip-dialog>
  39. <tip-dialog ref="tipDialogRef" :title="tipTitle" :content="tipContentVersion"></tip-dialog>
  40. </view>
  41. </template>
  42. <script setup>
  43. import daoTipDialog from './daoTipDialog.vue';
  44. import {
  45. userZhangInfo,
  46. userLocate,
  47. userZhangForntInfo,
  48. userZhangNextInfo,
  49. getCommonZhangInfo
  50. } from "@/api/learnPlan.js"
  51. import {
  52. getVersion
  53. } from "@/api/login.js"
  54. import {
  55. reactive,
  56. ref,
  57. nextTick,
  58. getCurrentInstance,
  59. onMounted
  60. } from "vue";
  61. import {
  62. onLoad
  63. } from '@dcloudio/uni-app';
  64. import catalogue from "@/components/catalogue/catalogue.vue";
  65. import CustomTabBar from '@/components/custom-tabbar/custom-tabbar.vue';
  66. import tipSmallDialog from '@/components/dialog/tipSmallDialog.vue'
  67. import tipBigDialog from '@/components/dialog/tipBigDialog.vue';
  68. import tipMiddleDialog from '@/components/dialog/tipMiddleDialog.vue';
  69. import dSwiper from '@/components/wSwiper/DSwiper.vue';
  70. import shuxueZhangjie from './product/shuxue.vue';
  71. import shuxueNewZhangjie from './product/shuxueNew.vue';
  72. import yingyuZhangjie from './product/yingyu.vue';
  73. import yingyuNewZhangjie from './product/yingyuNew.vue';
  74. import {
  75. useTabBarHistory
  76. } from '@/utils/emitEvents.js';
  77. import eggDialog from './eggDialog.vue'
  78. import tipDialog from '@/components/dialog/tipDialog.vue';
  79. import config from '../../config.js'
  80. import {
  81. toast,
  82. getUserIdentity
  83. } from "@/utils/common";
  84. import cacheManager from "@/utils/cacheManager.js";
  85. const tipContent = '是否前往开通付费?'; //当前产品
  86. const goPayDialogRef = ref(null);
  87. const youkeDialogRef = ref(null);
  88. const dSwiperRef = ref(null);
  89. const eggDialogRef = ref(null);
  90. const current = ref(0);
  91. const currentDuration = ref(500)
  92. const YouKeContent = '您当前的身份是游客,想要体验完整内容需注册成用户!';
  93. const tipFlag = ref(null) //游客使用
  94. const catalogueRef = ref(null);
  95. const youkeImage = ref(null);
  96. const youkeImageBook = ref(null);
  97. const currentProduct = ref(null);
  98. const localAuth = ref(null);
  99. const levelId = ref(null); //游客使用
  100. const subjectId = ref(null); //游客使用
  101. const youkeZhangId = ref(null); //游客使用
  102. const zhangName = ref(null);
  103. const typeId = ref(null);
  104. const zhangList = ref(null);
  105. const gradeTerm = ref(null);
  106. let infoData = reactive({
  107. jieList: [],
  108. haveFlag: '',
  109. number: '',
  110. zhangId: '',
  111. zhangName: '',
  112. numberStr: '',
  113. });
  114. const termMapping = {
  115. 1: ' 数学',
  116. 2: ' 英语'
  117. };
  118. const daoTipDialogRef = ref(null);
  119. const showDaoTip = ref(true);
  120. const productTipImg = ref('');
  121. const version = config.appInfo.version;
  122. const tipDialogRef = ref(null);
  123. const tipTitle = '升级提醒';
  124. const tipContentVersion = '您的APP不是最新版本,部分功能不能使用,请升级至最新版本!';
  125. onLoad((options) => {
  126. init(options);
  127. getLoginInit()
  128. })
  129. function listSelectJieClick(item, data, index) {
  130. if (cacheManager.get('auth')) {
  131. cacheManager.updateObject('auth', {
  132. currentZhang: zhangList.value.findIndex(citem => citem.zhangId == item.zhangId),
  133. zhangId: item.zhangId
  134. })
  135. }
  136. listClick(data, item, index);
  137. }
  138. function getLoginInit() {
  139. getVersion({}).then(res => {
  140. if (version != res.data.version) {
  141. tipDialogRef.value.handleShow();
  142. }
  143. })
  144. }
  145. function getProjectImg() {
  146. if (currentProduct.value == 1 && typeId.value == 2) {
  147. // 数学
  148. productTipImg.value = 'static/images/study/shuxue/shuxue-tip.gif';
  149. getBj('shuxue')
  150. } else if (currentProduct.value == 2 && typeId.value == 2) {
  151. // 英语
  152. productTipImg.value = 'static/images/study/yingyu/yingyu-tip.gif'
  153. getBj('yingyu');
  154. } else if (currentProduct.value == 1 && typeId.value == 1) {
  155. // 计算特训
  156. productTipImg.value = 'static/images/study/jstx/jstx-tip.gif'
  157. getBj('shuxueNew');
  158. }
  159. }
  160. function getBj(data) {
  161. let bjType = cacheManager.get('dao-tip')[data];
  162. if (cacheManager.get('auth')) {
  163. // 非游客
  164. if (bjType !== 'has') {
  165. nextTick(() => {
  166. daoTipDialogRef.value.handleShow();
  167. })
  168. }
  169. } else {
  170. // 游客
  171. if (tipFlag.value === '0') {
  172. nextTick(() => {
  173. daoTipDialogRef.value.handleShow();
  174. })
  175. }
  176. }
  177. }
  178. function daoTipClose() {
  179. if (cacheManager.get('auth')) {
  180. // 非游客 记缓存
  181. if (currentProduct.value == 1 && typeId.value == 2) {
  182. // 数学
  183. cacheManager.updateObject('dao-tip', {
  184. shuxue: 'has'
  185. })
  186. } else if (currentProduct.value == 2 && typeId.value == 2) {
  187. // 英语
  188. cacheManager.updateObject('dao-tip', {
  189. yingyu: 'has'
  190. })
  191. } else if (currentProduct.value == 1 && typeId.value == 1) {
  192. // 英语
  193. cacheManager.updateObject('dao-tip', {
  194. shuxueNew: 'has'
  195. })
  196. }
  197. } else {
  198. //游客
  199. tipFlag.value = '1';
  200. }
  201. }
  202. function onChangeTab(e) {
  203. console.log('e', e);
  204. console.log(e.detail.current);
  205. if (cacheManager.get('auth')) {
  206. // 新的英语人教版
  207. if (currentProduct.value == 2 && typeId.value == 1) {
  208. infoData.zhangId = cacheManager.get('zhangInfo').zhangList[0].zhangId
  209. cacheManager.updateObject('auth', {
  210. currentZhang: e.detail.current,
  211. zhangId: infoData.zhangId
  212. })
  213. } else {
  214. // 旧的数学 英语 新的数学
  215. infoData.zhangId = cacheManager.get('zhangInfo').zhangList[e.detail.current].zhangId
  216. cacheManager.updateObject('auth', {
  217. currentZhang: e.detail.current,
  218. zhangId: infoData.zhangId
  219. })
  220. }
  221. }
  222. }
  223. function init(options) {
  224. if (cacheManager.get('auth')) {
  225. localAuth.value = cacheManager.get('auth');
  226. currentProduct.value = localAuth.value.subjectId;
  227. typeId.value = localAuth.value.typeId;
  228. console.log(localAuth.value);
  229. // 已登录
  230. if (localAuth.value.firstLogin) {
  231. nextTick(() => {
  232. eggDialogRef.value.eggShow();
  233. })
  234. }
  235. if (!cacheManager.get('daoPageCache').isCache) {
  236. console.log('不实用换葱');
  237. chooseMethodNoCache()
  238. } else {
  239. console.log('shiyonghuancun');
  240. chooseMethodUseCache()
  241. }
  242. // 已登录付费未支付选择返回 -> 恢复弹窗
  243. if (options.studyWithCatalgue) {
  244. // 展开弹窗
  245. nextTick(() => {
  246. catalogueRef.value.showPopup({
  247. zhangId: infoData.zhangId
  248. });
  249. })
  250. }
  251. } else {
  252. chooseMethodYouke(options)
  253. }
  254. }
  255. function chooseMethodNoCache() {
  256. // 新的英语 (人教版 之类的 新结构)
  257. if (currentProduct.value == 2 && typeId.value == 1) {
  258. getZhangInfoNewYingyu()
  259. } else {
  260. // 之前 旧的岛 数学英语 和新的数学
  261. getZhangInfo()
  262. }
  263. }
  264. function chooseMethodUseCache() {
  265. // 新的英语 (人教版 之类的 新结构)
  266. if (currentProduct.value == 2 && typeId.value == 1) {
  267. translateData(cacheManager.get('zhangInfo'))
  268. zhangList.value = cacheManager.get('zhangInfo').zhangList[0].zList
  269. zhangName.value = cacheManager.get('zhangInfo').zhangList[0].zhangName
  270. current.value = cacheManager.get('auth').currentZhang
  271. infoData.zhangId = cacheManager.get('zhangInfo').zhangList[0].zhangId
  272. recordZhangJie()
  273. } else {
  274. // 之前 旧的岛 数学英语 和新的数学
  275. translateData(cacheManager.get('zhangInfo'))
  276. zhangList.value = cacheManager.get('zhangInfo').zhangList
  277. current.value = cacheManager.get('auth').currentZhang
  278. infoData.zhangId = cacheManager.get('zhangInfo').zhangList[current.value].zhangId
  279. recordZhangJie()
  280. }
  281. }
  282. function chooseMethodYouke(options) {
  283. subjectId.value = options.subjectId
  284. typeId.value = options.typeId
  285. levelId.value = options.levelId
  286. tipFlag.value = options.tipFlag;
  287. currentProduct.value = options.subjectId
  288. youkeZhangId.value = options.youkeZhangId
  289. if (subjectId.value == 2 && typeId.value == 1) {
  290. // 新英语
  291. getCommonZhangNewYingyu(options)
  292. } else {
  293. // 未登录 游客 旧的数学 英语 新数学
  294. getCommonZhang(options)
  295. }
  296. getProjectImg()
  297. }
  298. // 新的英语 (人教版 之类的 新结构)
  299. function getZhangInfoNewYingyu(data) {
  300. let req = {
  301. levelId: localAuth.value.levelId,
  302. // levelId: 31,
  303. zhangId: localAuth.value.zhangId
  304. // zhangId: 195
  305. }
  306. userZhangInfo(req).then(res => {
  307. cacheManager.set('zhangInfo', res.data)
  308. let zhang = cacheManager.get('zhangInfo').zhangList[0].zList.findIndex(zhang => zhang.zid == localAuth
  309. .value.zhangId);
  310. console.log('zhang', zhang);
  311. if (zhang != -1) {
  312. cacheManager.updateObject('auth', {
  313. currentZhang: zhang
  314. })
  315. } else {
  316. cacheManager.updateObject('auth', {
  317. currentZhang: 0
  318. })
  319. }
  320. cacheManager.set('daoPageCache', {
  321. isCache: true
  322. })
  323. nextTick(() => {
  324. translateData(res.data)
  325. zhangList.value = res.data.zhangList[0].zList
  326. zhangName.value = res.data.zhangList[0].zhangName
  327. current.value = cacheManager.get('auth').currentZhang
  328. infoData.zhangId = res.data.zhangList[0].zhangId
  329. recordZhangJie()
  330. })
  331. }).catch((err) => {
  332. toast('数据异常,请重新登录!')
  333. cacheManager.clearAll();
  334. uni.reLaunch({
  335. url: '/pages/login/index'
  336. });
  337. })
  338. }
  339. //旧的岛 数学英语 和新的数学
  340. function getZhangInfo(data) {
  341. let req = {
  342. levelId: localAuth.value.levelId
  343. }
  344. userZhangInfo(req).then(res => {
  345. cacheManager.set('zhangInfo', res.data)
  346. let zhang = cacheManager.get('zhangInfo').zhangList.findIndex(zhang => zhang.zhangId == localAuth
  347. .value.zhangId);
  348. console.log('zhang', zhang);
  349. if (zhang != -1) {
  350. cacheManager.updateObject('auth', {
  351. currentZhang: zhang
  352. })
  353. } else {
  354. cacheManager.updateObject('auth', {
  355. currentZhang: 0
  356. })
  357. }
  358. cacheManager.set('daoPageCache', {
  359. isCache: true
  360. })
  361. nextTick(() => {
  362. translateData(res.data)
  363. zhangList.value = res.data.zhangList
  364. current.value = cacheManager.get('auth').currentZhang
  365. infoData.zhangId = res.data.zhangList[current.value].zhangId
  366. recordZhangJie()
  367. })
  368. }).catch((err) => {
  369. toast('数据异常,请重新登录!')
  370. cacheManager.clearAll();
  371. uni.reLaunch({
  372. url: '/pages/login/index'
  373. });
  374. })
  375. }
  376. function getCommonZhangNewYingyu(data) {
  377. let req = {
  378. levelId: data.levelId,
  379. zhangId: data.youkeZhangId
  380. }
  381. getCommonZhangInfo(req).then(res => {
  382. translateData(res.data)
  383. youkeImage.value = res.data.icon
  384. youkeImageBook.value = res.data.zhangIcon
  385. zhangList.value = res.data.zhangList[0].zList
  386. zhangName.value = res.data.zhangList[0].zhangName
  387. current.value = 0
  388. }).catch((err) => {
  389. toast('数据异常,请重新登录!')
  390. cacheManager.clearAll();
  391. uni.reLaunch({
  392. url: '/pages/login/index'
  393. });
  394. })
  395. }
  396. function getCommonZhang(data) {
  397. let req = {
  398. levelId: data.levelId,
  399. }
  400. getCommonZhangInfo(req).then(res => {
  401. translateData(res.data)
  402. youkeImage.value = res.data.icon
  403. zhangList.value = res.data.zhangList
  404. current.value = 0
  405. }).catch((err) => {
  406. toast('数据异常,请重新登录!')
  407. cacheManager.clearAll();
  408. uni.reLaunch({
  409. url: '/pages/login/index'
  410. });
  411. })
  412. }
  413. function recordZhangJie() {
  414. let req = {
  415. levelId: localAuth.value.levelId,
  416. userId: localAuth.value.userId,
  417. zhangId: infoData.zhangId,
  418. subjectId: currentProduct.value
  419. }
  420. userLocate(req).then(res => {
  421. })
  422. }
  423. function goPayPage() {
  424. let zhangInfoLocal = cacheManager.get('zhangInfo')
  425. if (!zhangInfoLocal.cardId) {
  426. toast("cardId 丢失请重新选择学科LevelId");
  427. return false
  428. }
  429. uni.redirectTo({
  430. url: '/pages/mall/mallPage?cardId=' + zhangInfoLocal.cardId + '&from=daoPage' + '&subjectId=' +
  431. zhangInfoLocal.subjectId
  432. })
  433. }
  434. function handleChangeZhang(data) {
  435. console.log(data);
  436. const authCode = getUserIdentity();
  437. if (authCode !== 'Visitor') {
  438. cacheManager.updateObject('auth', {
  439. zhangId: data.zhangId,
  440. currentZhang: zhangList.value.findIndex(citem => citem.zhangId == data.zhangId),
  441. })
  442. }
  443. currentDuration.value = 0
  444. setTimeout(() => {
  445. current.value = data.number - 1
  446. nextTick(() => {
  447. currentDuration.value = 500
  448. })
  449. }, 100)
  450. // init()
  451. }
  452. function goKaoshi(data) {
  453. uni.redirectTo({
  454. // url: `/pages/unitTest/index?jieNumber=` + data.number
  455. url: `/pages/unitTest/index?jieId=` + data.jieId
  456. })
  457. }
  458. function goDanciList(data, index) {
  459. if (!cacheManager.get('auth')) {
  460. let youkeData = {
  461. subjectId: subjectId.value,
  462. typeId: typeId.value,
  463. levelId: levelId.value,
  464. tipFlag: tipFlag.value,
  465. youkeZhangId: youkeZhangId.value,
  466. jieId: data.jieId
  467. }
  468. uni.redirectTo({
  469. url: '/pages/wordList/wordList?youkePageData=' + JSON.stringify(youkeData)
  470. })
  471. } else {
  472. uni.redirectTo({
  473. url: '/pages/wordList/wordList?jieId=' + data.jieId
  474. })
  475. }
  476. }
  477. function goLookShipin(data, index) {
  478. if (!cacheManager.get('auth')) {
  479. console.log('zhangList.value[0].jieList', zhangList.value[0].jieList);
  480. console.log('zhangList.value[0].jieList.index', zhangList.value[0].jieList[index]);
  481. let youkeData = {
  482. levelId: levelId.value,
  483. typeId: typeId.value,
  484. subjectId: subjectId.value,
  485. tipFlag: tipFlag.value,
  486. jieList: zhangList.value[0].jieList[index],
  487. jieName: zhangList.value[0].jieList[index].jieName
  488. }
  489. if (youkeData.typeId == 1) {
  490. if (!data.videoId) {
  491. toast("videoId 丢失!");
  492. return false
  493. }
  494. uni.redirectTo({
  495. url: '/pages/study/lookShipinNew?youkePageData=' + JSON.stringify(youkeData)
  496. })
  497. } else {
  498. if (!data.videoId) {
  499. toast("videoId 丢失!");
  500. return false
  501. }
  502. uni.redirectTo({
  503. url: '/pages/study/lookShipin?youkePageData=' + JSON.stringify(youkeData)
  504. })
  505. }
  506. } else {
  507. if (typeId.value == 1) {
  508. // 1新 2旧
  509. if (!data.videoId) {
  510. toast("videoId 丢失!");
  511. return false
  512. }
  513. uni.redirectTo({
  514. url: '/pages/study/lookShipinNew?jieId=' + data.jieId
  515. })
  516. } else {
  517. if (!data.videoId) {
  518. toast("videoId 丢失!");
  519. return false
  520. }
  521. uni.redirectTo({
  522. url: '/pages/study/lookShipin?jieId=' + data.jieId
  523. })
  524. }
  525. }
  526. }
  527. function translateData(data) {
  528. // gradeTerm.value = termMapping[data.subjectId] +' · '+ data.levelName
  529. gradeTerm.value = data.levelName
  530. }
  531. function listClick(data, data2, index) {
  532. //console.log('data', data); // 节内容
  533. // console.log('data2', data2); //章内容
  534. chooseMethodListClick(data, data2, index)
  535. }
  536. function chooseMethodListClick(data, data2, index) {
  537. console.log('data', data); // 节内容
  538. console.log('data2', data2); //章内容
  539. const authCode = getUserIdentity();
  540. if (currentProduct.value == 2 && typeId.value == 1) {
  541. const isFirst = data.jieName == data2.jieList[0].jieName
  542. if (!cacheManager.get('auth') && !isFirst) {
  543. youkeDialogRef.value.handleShow();
  544. return false;
  545. }
  546. console.log('authCode', authCode);
  547. if (!(authCode == 'VIP' || isFirst)) {
  548. goPayDialogRef.value.handleShow();
  549. return false
  550. }
  551. goDanciList(data, index)
  552. } else {
  553. if (!cacheManager.get('auth') && data.firstFlag != 1) {
  554. youkeDialogRef.value.handleShow();
  555. return;
  556. }
  557. console.log('authCode', authCode);
  558. if (!(authCode == 'VIP' || data.firstFlag == 1)) {
  559. // debugger
  560. goPayDialogRef.value.handleShow();
  561. return false
  562. }
  563. if (data.type == 2) {
  564. // 最后一项
  565. goKaoshi(data, index)
  566. } else {
  567. goLookShipin(data, index)
  568. }
  569. }
  570. }
  571. function handleCheckCatalogue(item) {
  572. catalogueRef.value.showPopup(item);
  573. }
  574. function clickGradeTerm() {
  575. // if(cacheManager.get('auth')){
  576. // cacheManager.updateObject('auth', {
  577. // currentZhang: 0
  578. // })
  579. // }
  580. uni.navigateTo({
  581. url: `/pages/selectGradesTerms/index?tipFlag=${tipFlag.value}&from=daoPage&productId=${levelId.value}&xuekeId=${subjectId.value}`
  582. })
  583. }
  584. // 游客弹窗---确定
  585. function ykConfirm() {
  586. uni.redirectTo({
  587. url: '/pages/login/index'
  588. });
  589. }
  590. function eggBtn() {
  591. console.log('点击:开启提分之旅');
  592. getProjectImg();
  593. cacheManager.updateObject('auth', {
  594. firstLogin: false
  595. })
  596. }
  597. </script>
  598. <style>
  599. </style>