|
@@ -1,4 +1,5 @@
|
|
<template>
|
|
<template>
|
|
|
|
+ <view>
|
|
<swiper :circular="true" @change="onChangeTab" :duration="currentDuration"
|
|
<swiper :circular="true" @change="onChangeTab" :duration="currentDuration"
|
|
:current="current" class="ezy-study-swiper" :class="'ezy-study-swiper'+ currentProduct" >
|
|
:current="current" class="ezy-study-swiper" :class="'ezy-study-swiper'+ currentProduct" >
|
|
<swiper-item v-for="(item,index) in zhangList" :key="index">
|
|
<swiper-item v-for="(item,index) in zhangList" :key="index">
|
|
@@ -13,11 +14,12 @@
|
|
</swiper>
|
|
</swiper>
|
|
<!-- 蛋 -->
|
|
<!-- 蛋 -->
|
|
<egg-dialog ref="eggDialogRef" @eggBtn="eggBtn"></egg-dialog>
|
|
<egg-dialog ref="eggDialogRef" @eggBtn="eggBtn"></egg-dialog>
|
|
- <catalogue ref="catalogueRef" :list=zhangList @change-zhang="handleChangeZhang"></catalogue>
|
|
|
|
|
|
+ <catalogue ref="catalogueRef" :list=zhangList @change-zhang="handleChangeZhang" @listSelectJieClick="listSelectJieClick"></catalogue>
|
|
<CustomTabBar :cardId="cardId" :currentTabNumber="0" :nianji="nianji" :zhangId="zhangId" :tipFlag="tipFlag"></CustomTabBar>
|
|
<CustomTabBar :cardId="cardId" :currentTabNumber="0" :nianji="nianji" :zhangId="zhangId" :tipFlag="tipFlag"></CustomTabBar>
|
|
<tip-small-dialog ref="goPayDialogRef" @confirm-btn="goPayPage" :content="tipContent"></tip-small-dialog>
|
|
<tip-small-dialog ref="goPayDialogRef" @confirm-btn="goPayPage" :content="tipContent"></tip-small-dialog>
|
|
<tip-middle-dialog ref="youkeDialogRef" @confirm-btn="ykConfirm" :content="YouKeContent"></tip-middle-dialog>
|
|
<tip-middle-dialog ref="youkeDialogRef" @confirm-btn="ykConfirm" :content="YouKeContent"></tip-middle-dialog>
|
|
<dao-tip-dialog ref="daoTipDialogRef" v-if="showDaoTip" :productTip="productTipImg" @dao-tip-close="daoTipClose"></dao-tip-dialog>
|
|
<dao-tip-dialog ref="daoTipDialogRef" v-if="showDaoTip" :productTip="productTipImg" @dao-tip-close="daoTipClose"></dao-tip-dialog>
|
|
|
|
+ </view>
|
|
</template>
|
|
</template>
|
|
<script setup>
|
|
<script setup>
|
|
import daoTipDialog from './daoTipDialog.vue';
|
|
import daoTipDialog from './daoTipDialog.vue';
|
|
@@ -105,6 +107,17 @@
|
|
onLoad((options) => {
|
|
onLoad((options) => {
|
|
init(options);
|
|
init(options);
|
|
})
|
|
})
|
|
|
|
+
|
|
|
|
+ function listSelectJieClick(item,jie) {
|
|
|
|
+ if( cacheManager.get('auth')){
|
|
|
|
+ cacheManager.updateObject('auth', {
|
|
|
|
+ currentZhang: zhangList.value.findIndex(citem => citem.zhangId == item.zhangId),
|
|
|
|
+ zhangId: item.zhangId
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ listClick(jie);
|
|
|
|
+ }
|
|
|
|
+
|
|
function getProjectImg(){
|
|
function getProjectImg(){
|
|
if(currentProduct.value ==1){
|
|
if(currentProduct.value ==1){
|
|
// 数学
|
|
// 数学
|
|
@@ -186,6 +199,14 @@
|
|
infoData.zhangId = cacheManager.get('zhangInfo').zhangList[current.value].zhangId
|
|
infoData.zhangId = cacheManager.get('zhangInfo').zhangList[current.value].zhangId
|
|
recordZhangJie()
|
|
recordZhangJie()
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ // 已登录付费未支付选择返回 -> 恢复弹窗
|
|
|
|
+ if (options.studyWithCatalgue) {
|
|
|
|
+ // 展开弹窗
|
|
|
|
+ nextTick(() => {
|
|
|
|
+ catalogueRef.value.showPopup({zhangId: infoData.zhangId});
|
|
|
|
+ })
|
|
|
|
+ }
|
|
} else {
|
|
} else {
|
|
zhangId.value = options.zhangId
|
|
zhangId.value = options.zhangId
|
|
nianji.value = options.nianji
|
|
nianji.value = options.nianji
|
|
@@ -318,7 +339,6 @@
|
|
}
|
|
}
|
|
|
|
|
|
function listClick(data) {
|
|
function listClick(data) {
|
|
- console.log('data', data);
|
|
|
|
if (!cacheManager.get('auth') && data.firstFlag != 1) {
|
|
if (!cacheManager.get('auth') && data.firstFlag != 1) {
|
|
youkeDialogRef.value.handleShow();
|
|
youkeDialogRef.value.handleShow();
|
|
return;
|
|
return;
|