|
@@ -28,7 +28,7 @@
|
|
|
<!-- 蛋 -->
|
|
|
<egg-dialog ref="eggDialogRef" @eggBtn="eggBtn"></egg-dialog>
|
|
|
<catalogue ref="catalogueRef" :list=zhangList @change-zhang="handleChangeZhang"
|
|
|
- @listSelectJieClick="listSelectJieClick"></catalogue>
|
|
|
+ ></catalogue>
|
|
|
<CustomTabBar :levelId="levelId" :currentTabNumber="0" :subjectId="subjectId" :typeId="typeId"
|
|
|
:tipFlag="tipFlag">
|
|
|
</CustomTabBar>
|
|
@@ -94,6 +94,7 @@
|
|
|
} from "@/utils/common";
|
|
|
import cacheManager from "@/utils/cacheManager.js";
|
|
|
import TipDialog from "../../components/dialog/tipDialog";
|
|
|
+ import {getDataFromStr} from "../../utils/common";
|
|
|
const tipContent = '是否前往开通付费?'; //当前产品
|
|
|
const goPayDialogRef = ref(null);
|
|
|
const youkeDialogRef = ref(null);
|
|
@@ -147,17 +148,6 @@
|
|
|
getLoginInit()
|
|
|
})
|
|
|
|
|
|
- function listSelectJieClick(item, data, index) {
|
|
|
-
|
|
|
- if (cacheManager.get('auth')) {
|
|
|
- cacheManager.updateObject('auth', {
|
|
|
- currentZhang: zhangList.value.findIndex(citem => citem.zhangId == item.zhangId),
|
|
|
- zhangId: item.zhangId
|
|
|
- })
|
|
|
- }
|
|
|
-
|
|
|
- listClick(data, item, index);
|
|
|
- }
|
|
|
|
|
|
function BanbenConfirmBtn() {
|
|
|
const systemInfo = uni.getSystemInfoSync();
|
|
@@ -496,13 +486,16 @@
|
|
|
}
|
|
|
|
|
|
function handleChangeZhang(data) {
|
|
|
- console.log(data);
|
|
|
const authCode = getUserIdentity();
|
|
|
if (authCode !== 'Visitor') {
|
|
|
- cacheManager.updateObject('auth', {
|
|
|
- zhangId: data.zhangId,
|
|
|
- currentZhang: zhangList.value.findIndex(citem => citem.zhangId == data.zhangId),
|
|
|
- })
|
|
|
+ if (currentProduct.value == 2 && typeId.value == 1) {
|
|
|
+ // 专属与新英语切换版本时需要修改levelId 值,重组版本zhangId
|
|
|
+ const authData = cacheManager.get('auth');
|
|
|
+ const levelIdData = getDataFromStr(authData.levelId)[0];
|
|
|
+ cacheManager.updateObject('auth', {levelId: levelIdData+','+data.zhangId})
|
|
|
+ } else {
|
|
|
+ cacheManager.updateObject('zhangInfo', { curZhangId: data.zhangId })
|
|
|
+ }
|
|
|
}
|
|
|
currentDuration.value = 0
|
|
|
setTimeout(() => {
|