This commit is contained in:
zoujiandong 2025-03-25 14:00:46 +08:00
parent 478fa93d89
commit 2caf0690fc
2 changed files with 7 additions and 4 deletions

View File

@ -1,5 +1,5 @@
<template>
<div class="main casemain" :class="{on: step == pageIndex }" :id="'pagemain'+pageIndex" v-show="step == pageIndex" :style="{height:step == pageIndex?'100%':'0px'}" >
<div class="main casemain" :class="{on: step == pageIndex }" :id="'pagemain'+pageIndex" :style="{height:step == pageIndex?'100%':'0px'}" >
<img src="../assets/bg.png" alt="" class="bg" />
<div class="dealbox" style="position: relative;z-index:1;background:transparent;">
<div class="prev" @click="switchPage(pageIndex - 1)">上一步</div>

View File

@ -19,7 +19,7 @@
</div>
</div>
<caseDetail v-for="(item, index) in pageList" :pageIndex="index" :step="step" @switchPage="switchPage" :pageItem="item" :pageNum="pageList.length" @getAllAnswer="getAllAnswer" :start_time="start_time" :case_id="case_id" :key="item.case_item_id">{{ item.case_item_id }}</caseDetail>
<caseDetail v-for="(item, index) in pageList" :pageIndex="index" :step="step" @switchPage="switchPage" :pageItem="item" :pageNum="pageList.length" @getAllAnswer="getAllAnswer" :start_time="start_time" :case_id="case_id" :key="item.case_item_id" v-show="step == index"></caseDetail>
<comment v-show="!showIntro && step==pageList.length" ref="commentRef" :countTime="countTime" @initPage="initPage" :start_time="entry_time" :allAnswer="allAnswer" :is_welfare="is_welfare"></comment>
<totop></totop>
<back :project_id="caseObj.project_id"></back>
@ -163,13 +163,16 @@ const handleCount = () => {
const initPage=()=>{
// step.value =-1;
// showIntro.value=true;
step.value = 0;
showIntro.value = false;
document.documentElement.scrollTop = 0;
document.body.scrollTop = 0;
if(caseObj.case_item.length<=1) {
commentRef.value.init(caseObj.case_id,caseObj.project_id)
}
setTimeout(()=>{
step.value = 0;
showIntro.value = false;
},0)
}
const handleStart = () => {
step.value = 0;