index.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662
  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. } else if (currentProduct.value == 2 && typeId.value == 1) {
  159. // 英语新(超级单词)
  160. productTipImg.value = 'static/images/study/jstx/yingyu-tip.gif'
  161. getBj('yingyuNew');
  162. }
  163. }
  164. function getBj(data) {
  165. let bjType = cacheManager.get('dao-tip')[data];
  166. if (cacheManager.get('auth')) {
  167. // 非游客
  168. if (bjType !== 'has') {
  169. nextTick(() => {
  170. daoTipDialogRef.value.handleShow();
  171. })
  172. }
  173. } else {
  174. // 游客
  175. if (tipFlag.value === '0') {
  176. nextTick(() => {
  177. daoTipDialogRef.value.handleShow();
  178. })
  179. }
  180. }
  181. }
  182. function daoTipClose() {
  183. if (cacheManager.get('auth')) {
  184. // 非游客 记缓存
  185. if (currentProduct.value == 1 && typeId.value == 2) {
  186. // 数学
  187. cacheManager.updateObject('dao-tip', {
  188. shuxue: 'has'
  189. })
  190. } else if (currentProduct.value == 2 && typeId.value == 2) {
  191. // 英语
  192. cacheManager.updateObject('dao-tip', {
  193. yingyu: 'has'
  194. })
  195. } else if (currentProduct.value == 1 && typeId.value == 1) {
  196. // 数学新(计算特训)
  197. cacheManager.updateObject('dao-tip', {
  198. shuxueNew: 'has'
  199. })
  200. } else if (currentProduct.value == 2 && typeId.value == 1) {
  201. // 英语新(超级单词)
  202. cacheManager.updateObject('dao-tip', {
  203. yingyuNew: 'has'
  204. })
  205. }
  206. } else {
  207. //游客
  208. tipFlag.value = '1';
  209. }
  210. }
  211. function onChangeTab(e) {
  212. console.log('e', e);
  213. console.log(e.detail.current);
  214. if (cacheManager.get('auth')) {
  215. // 新的英语人教版
  216. if (currentProduct.value == 2 && typeId.value == 1) {
  217. infoData.zhangId = cacheManager.get('zhangInfo').zhangList[0].zhangId
  218. cacheManager.updateObject('auth', {
  219. currentZhang: e.detail.current,
  220. zhangId: infoData.zhangId
  221. })
  222. } else {
  223. // 旧的数学 英语 新的数学
  224. infoData.zhangId = cacheManager.get('zhangInfo').zhangList[e.detail.current].zhangId
  225. cacheManager.updateObject('auth', {
  226. currentZhang: e.detail.current,
  227. zhangId: infoData.zhangId
  228. })
  229. }
  230. }
  231. }
  232. function init(options) {
  233. if (cacheManager.get('auth')) {
  234. localAuth.value = cacheManager.get('auth');
  235. currentProduct.value = localAuth.value.subjectId;
  236. typeId.value = localAuth.value.typeId;
  237. console.log(localAuth.value);
  238. // 已登录
  239. if (localAuth.value.firstLogin) {
  240. nextTick(() => {
  241. eggDialogRef.value.eggShow();
  242. })
  243. }
  244. if (!cacheManager.get('daoPageCache').isCache) {
  245. console.log('不实用换葱');
  246. chooseMethodNoCache()
  247. } else {
  248. console.log('shiyonghuancun');
  249. chooseMethodUseCache()
  250. }
  251. // 已登录付费未支付选择返回 -> 恢复弹窗
  252. if (options.studyWithCatalgue) {
  253. // 展开弹窗
  254. nextTick(() => {
  255. catalogueRef.value.showPopup({
  256. zhangId: infoData.zhangId
  257. });
  258. })
  259. }
  260. } else {
  261. chooseMethodYouke(options)
  262. }
  263. }
  264. function chooseMethodNoCache() {
  265. // 新的英语 (人教版 之类的 新结构)
  266. if (currentProduct.value == 2 && typeId.value == 1) {
  267. getZhangInfoNewYingyu()
  268. } else {
  269. // 之前 旧的岛 数学英语 和新的数学
  270. getZhangInfo()
  271. }
  272. }
  273. function chooseMethodUseCache() {
  274. // 新的英语 (人教版 之类的 新结构)
  275. if (currentProduct.value == 2 && typeId.value == 1) {
  276. translateData(cacheManager.get('zhangInfo'))
  277. zhangList.value = cacheManager.get('zhangInfo').zhangList[0].zList
  278. zhangName.value = cacheManager.get('zhangInfo').zhangList[0].zhangName
  279. current.value = cacheManager.get('auth').currentZhang
  280. infoData.zhangId = cacheManager.get('zhangInfo').zhangList[0].zhangId
  281. recordZhangJie()
  282. } else {
  283. // 之前 旧的岛 数学英语 和新的数学
  284. translateData(cacheManager.get('zhangInfo'))
  285. zhangList.value = cacheManager.get('zhangInfo').zhangList
  286. current.value = cacheManager.get('auth').currentZhang
  287. infoData.zhangId = cacheManager.get('zhangInfo').zhangList[current.value].zhangId
  288. recordZhangJie()
  289. }
  290. }
  291. function chooseMethodYouke(options) {
  292. subjectId.value = options.subjectId
  293. typeId.value = options.typeId
  294. levelId.value = options.levelId
  295. tipFlag.value = options.tipFlag;
  296. currentProduct.value = options.subjectId
  297. youkeZhangId.value = options.youkeZhangId
  298. if (subjectId.value == 2 && typeId.value == 1) {
  299. // 新英语
  300. getCommonZhangNewYingyu(options)
  301. } else {
  302. // 未登录 游客 旧的数学 英语 新数学
  303. getCommonZhang(options)
  304. }
  305. getProjectImg()
  306. }
  307. // 新的英语 (人教版 之类的 新结构)
  308. function getZhangInfoNewYingyu(data) {
  309. let req = {
  310. levelId: localAuth.value.levelId,
  311. // levelId: 31,
  312. zhangId: localAuth.value.zhangId
  313. // zhangId: 195
  314. }
  315. userZhangInfo(req).then(res => {
  316. cacheManager.set('zhangInfo', res.data)
  317. let zhang = cacheManager.get('zhangInfo').zhangList[0].zList.findIndex(zhang => zhang.zid == localAuth
  318. .value.zhangId);
  319. console.log('zhang', zhang);
  320. if (zhang != -1) {
  321. cacheManager.updateObject('auth', {
  322. currentZhang: zhang
  323. })
  324. } else {
  325. cacheManager.updateObject('auth', {
  326. currentZhang: 0
  327. })
  328. }
  329. cacheManager.set('daoPageCache', {
  330. isCache: true
  331. })
  332. nextTick(() => {
  333. translateData(res.data)
  334. zhangList.value = res.data.zhangList[0].zList
  335. zhangName.value = res.data.zhangList[0].zhangName
  336. current.value = cacheManager.get('auth').currentZhang
  337. infoData.zhangId = res.data.zhangList[0].zhangId
  338. recordZhangJie()
  339. })
  340. }).catch((err) => {
  341. toast('数据异常,请重新登录!')
  342. cacheManager.clearAll();
  343. uni.reLaunch({
  344. url: '/pages/login/index'
  345. });
  346. })
  347. }
  348. //旧的岛 数学英语 和新的数学
  349. function getZhangInfo(data) {
  350. let req = {
  351. levelId: localAuth.value.levelId
  352. }
  353. userZhangInfo(req).then(res => {
  354. cacheManager.set('zhangInfo', res.data)
  355. let zhang = cacheManager.get('zhangInfo').zhangList.findIndex(zhang => zhang.zhangId == localAuth
  356. .value.zhangId);
  357. console.log('zhang', zhang);
  358. if (zhang != -1) {
  359. cacheManager.updateObject('auth', {
  360. currentZhang: zhang
  361. })
  362. } else {
  363. cacheManager.updateObject('auth', {
  364. currentZhang: 0
  365. })
  366. }
  367. cacheManager.set('daoPageCache', {
  368. isCache: true
  369. })
  370. nextTick(() => {
  371. translateData(res.data)
  372. zhangList.value = res.data.zhangList
  373. current.value = cacheManager.get('auth').currentZhang
  374. infoData.zhangId = res.data.zhangList[current.value].zhangId
  375. recordZhangJie()
  376. })
  377. }).catch((err) => {
  378. toast('数据异常,请重新登录!')
  379. cacheManager.clearAll();
  380. uni.reLaunch({
  381. url: '/pages/login/index'
  382. });
  383. })
  384. }
  385. function getCommonZhangNewYingyu(data) {
  386. let req = {
  387. levelId: data.levelId,
  388. zhangId: data.youkeZhangId
  389. }
  390. getCommonZhangInfo(req).then(res => {
  391. translateData(res.data)
  392. youkeImage.value = res.data.icon
  393. youkeImageBook.value = res.data.zhangIcon
  394. zhangList.value = res.data.zhangList[0].zList
  395. zhangName.value = res.data.zhangList[0].zhangName
  396. current.value = 0
  397. }).catch((err) => {
  398. toast('数据异常,请重新登录!')
  399. cacheManager.clearAll();
  400. uni.reLaunch({
  401. url: '/pages/login/index'
  402. });
  403. })
  404. }
  405. function getCommonZhang(data) {
  406. let req = {
  407. levelId: data.levelId,
  408. }
  409. getCommonZhangInfo(req).then(res => {
  410. translateData(res.data)
  411. youkeImage.value = res.data.icon
  412. zhangList.value = res.data.zhangList
  413. current.value = 0
  414. }).catch((err) => {
  415. toast('数据异常,请重新登录!')
  416. cacheManager.clearAll();
  417. uni.reLaunch({
  418. url: '/pages/login/index'
  419. });
  420. })
  421. }
  422. function recordZhangJie() {
  423. let req = {
  424. levelId: localAuth.value.levelId,
  425. userId: localAuth.value.userId,
  426. zhangId: infoData.zhangId,
  427. subjectId: currentProduct.value
  428. }
  429. userLocate(req).then(res => {
  430. })
  431. }
  432. function goPayPage() {
  433. let zhangInfoLocal = cacheManager.get('zhangInfo')
  434. if (!zhangInfoLocal.cardId) {
  435. toast("cardId 丢失请重新选择学科LevelId");
  436. return false
  437. }
  438. uni.redirectTo({
  439. url: '/pages/mall/mallPage?cardId=' + zhangInfoLocal.cardId + '&from=daoPage' + '&subjectId=' +
  440. zhangInfoLocal.subjectId
  441. })
  442. }
  443. function handleChangeZhang(data) {
  444. console.log(data);
  445. const authCode = getUserIdentity();
  446. if (authCode !== 'Visitor') {
  447. cacheManager.updateObject('auth', {
  448. zhangId: data.zhangId,
  449. currentZhang: zhangList.value.findIndex(citem => citem.zhangId == data.zhangId),
  450. })
  451. }
  452. currentDuration.value = 0
  453. setTimeout(() => {
  454. current.value = data.number - 1
  455. nextTick(() => {
  456. currentDuration.value = 500
  457. })
  458. }, 100)
  459. // init()
  460. }
  461. function goKaoshi(data) {
  462. uni.redirectTo({
  463. // url: `/pages/unitTest/index?jieNumber=` + data.number
  464. url: `/pages/unitTest/index?jieId=` + data.jieId
  465. })
  466. }
  467. function goDanciList(data, index) {
  468. if (!cacheManager.get('auth')) {
  469. let youkeData = {
  470. subjectId: subjectId.value,
  471. typeId: typeId.value,
  472. levelId: levelId.value,
  473. tipFlag: tipFlag.value,
  474. youkeZhangId: youkeZhangId.value,
  475. jieId: data.jieId
  476. }
  477. uni.redirectTo({
  478. url: '/pages/wordList/wordList?youkePageData=' + JSON.stringify(youkeData)
  479. })
  480. } else {
  481. uni.redirectTo({
  482. url: '/pages/wordList/wordList?jieId=' + data.jieId
  483. })
  484. }
  485. }
  486. function goLookShipin(data, index) {
  487. if (!cacheManager.get('auth')) {
  488. console.log('zhangList.value[0].jieList', zhangList.value[0].jieList);
  489. console.log('zhangList.value[0].jieList.index', zhangList.value[0].jieList[index]);
  490. let youkeData = {
  491. levelId: levelId.value,
  492. typeId: typeId.value,
  493. subjectId: subjectId.value,
  494. tipFlag: tipFlag.value,
  495. jieList: zhangList.value[0].jieList[index],
  496. jieName: zhangList.value[0].jieList[index].jieName
  497. }
  498. if (youkeData.typeId == 1) {
  499. if (!data.videoId) {
  500. toast("videoId 丢失!");
  501. return false
  502. }
  503. uni.redirectTo({
  504. url: '/pages/study/lookShipinNew?youkePageData=' + JSON.stringify(youkeData)
  505. })
  506. } else {
  507. if (!data.videoId) {
  508. toast("videoId 丢失!");
  509. return false
  510. }
  511. uni.redirectTo({
  512. url: '/pages/study/lookShipin?youkePageData=' + JSON.stringify(youkeData)
  513. })
  514. }
  515. } else {
  516. if (typeId.value == 1) {
  517. // 1新 2旧
  518. if (!data.videoId) {
  519. toast("videoId 丢失!");
  520. return false
  521. }
  522. uni.redirectTo({
  523. url: '/pages/study/lookShipinNew?jieId=' + data.jieId
  524. })
  525. } else {
  526. if (!data.videoId) {
  527. toast("videoId 丢失!");
  528. return false
  529. }
  530. uni.redirectTo({
  531. url: '/pages/study/lookShipin?jieId=' + data.jieId
  532. })
  533. }
  534. }
  535. }
  536. function translateData(data) {
  537. // gradeTerm.value = termMapping[data.subjectId] +' · '+ data.levelName
  538. gradeTerm.value = data.levelName
  539. }
  540. function listClick(data, data2, index) {
  541. //console.log('data', data); // 节内容
  542. // console.log('data2', data2); //章内容
  543. chooseMethodListClick(data, data2, index)
  544. }
  545. function chooseMethodListClick(data, data2, index) {
  546. console.log('data', data); // 节内容
  547. console.log('data2', data2); //章内容
  548. const authCode = getUserIdentity();
  549. if (currentProduct.value == 2 && typeId.value == 1) {
  550. const isFirst = data.jieName == data2.jieList[0].jieName
  551. if (!cacheManager.get('auth') && !isFirst) {
  552. youkeDialogRef.value.handleShow();
  553. return false;
  554. }
  555. console.log('authCode', authCode);
  556. if (!(authCode == 'VIP' || isFirst)) {
  557. goPayDialogRef.value.handleShow();
  558. return false
  559. }
  560. goDanciList(data, index)
  561. } else {
  562. if (!cacheManager.get('auth') && data.firstFlag != 1) {
  563. youkeDialogRef.value.handleShow();
  564. return;
  565. }
  566. console.log('authCode', authCode);
  567. if (!(authCode == 'VIP' || data.firstFlag == 1)) {
  568. // debugger
  569. goPayDialogRef.value.handleShow();
  570. return false
  571. }
  572. if (data.type == 2) {
  573. // 最后一项
  574. goKaoshi(data, index)
  575. } else {
  576. goLookShipin(data, index)
  577. }
  578. }
  579. }
  580. function handleCheckCatalogue(item) {
  581. catalogueRef.value.showPopup(item);
  582. }
  583. function clickGradeTerm() {
  584. // if(cacheManager.get('auth')){
  585. // cacheManager.updateObject('auth', {
  586. // currentZhang: 0
  587. // })
  588. // }
  589. uni.navigateTo({
  590. url: `/pages/selectGradesTerms/index?tipFlag=${tipFlag.value}&from=daoPage&productId=${levelId.value}&xuekeId=${subjectId.value}`
  591. })
  592. }
  593. // 游客弹窗---确定
  594. function ykConfirm() {
  595. uni.redirectTo({
  596. url: '/pages/login/index'
  597. });
  598. }
  599. function eggBtn() {
  600. console.log('点击:开启提分之旅');
  601. getProjectImg();
  602. cacheManager.updateObject('auth', {
  603. firstLogin: false
  604. })
  605. }
  606. </script>
  607. <style>
  608. </style>