|
@@ -7,19 +7,21 @@
|
|
</view>
|
|
</view>
|
|
|
|
|
|
<view class="shiti-frame-box">
|
|
<view class="shiti-frame-box">
|
|
- <w-swiper :list="list" :positionIndex="current" class="ezy-exam-swiper">
|
|
|
|
|
|
+ <w-swiper :list="list" :current="current" class="ezy-exam-swiper" @change="onSwiperChange">
|
|
<template v-slot:default="{item}">
|
|
<template v-slot:default="{item}">
|
|
<view class="body" v-if="item.mta_show">
|
|
<view class="body" v-if="item.mta_show">
|
|
<danxuan :question="item" v-if="item.type == '1'"></danxuan>
|
|
<danxuan :question="item" v-if="item.type == '1'"></danxuan>
|
|
- <panduan :question="item" v-if="item.type == '2'"></panduan>
|
|
|
|
|
|
+ <!-- <panduan :question="item" v-if="item.type == '2'"></panduan> -->
|
|
<!-- <tiankong :question="item" v-if="item.type == '3'"></tiankong> -->
|
|
<!-- <tiankong :question="item" v-if="item.type == '3'"></tiankong> -->
|
|
</view>
|
|
</view>
|
|
</template>
|
|
</template>
|
|
</w-swiper>
|
|
</w-swiper>
|
|
- <view class="exam-submit-btn" v-if="isLast"
|
|
|
|
|
|
+ <view class="exam-submit-btn" v-if="current === list.length-1"
|
|
@click="handleSubmit(uniPointsRef)"></view>
|
|
@click="handleSubmit(uniPointsRef)"></view>
|
|
</view>
|
|
</view>
|
|
- <view class="exam-tip-box">左右滑动查看更多题目</view>
|
|
|
|
|
|
+
|
|
|
|
+ <!-- 左右滑动 -->
|
|
|
|
+ <view class="exam-tip-box" @click="handleCloseTishi" v-if="showTishi">左右滑动查看更多题目</view>
|
|
|
|
|
|
<!-- 答卷 -->
|
|
<!-- 答卷 -->
|
|
<chengji ref="chengjiRef" :list="list" :jieId="jieId" :zhangId="zhangId"
|
|
<chengji ref="chengjiRef" :list="list" :jieId="jieId" :zhangId="zhangId"
|
|
@@ -56,10 +58,10 @@
|
|
} from "vue";
|
|
} from "vue";
|
|
|
|
|
|
const {setStudyStorage} = useStudyRouteParams();
|
|
const {setStudyStorage} = useStudyRouteParams();
|
|
|
|
+
|
|
|
|
+ const showTishi = ref(true);
|
|
|
|
|
|
const {
|
|
const {
|
|
- isFirst,
|
|
|
|
- isLast,
|
|
|
|
count,
|
|
count,
|
|
total,
|
|
total,
|
|
current,
|
|
current,
|
|
@@ -69,12 +71,9 @@
|
|
jifen,
|
|
jifen,
|
|
zhangId,
|
|
zhangId,
|
|
jieId,
|
|
jieId,
|
|
- nextZhang,
|
|
|
|
nianji,
|
|
nianji,
|
|
xueqi,
|
|
xueqi,
|
|
|
|
|
|
- nextQuestion,
|
|
|
|
- prevQuestion,
|
|
|
|
handleSubmit,
|
|
handleSubmit,
|
|
initPage
|
|
initPage
|
|
} = useExam();
|
|
} = useExam();
|
|
@@ -106,6 +105,21 @@
|
|
url: `/pages/study/index?nianji=${nianji.value}&xueqi=${xueqi.value}&zhangId=${zhangId.value}&jieId=${jieId.value}`
|
|
url: `/pages/study/index?nianji=${nianji.value}&xueqi=${xueqi.value}&zhangId=${zhangId.value}&jieId=${jieId.value}`
|
|
})
|
|
})
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ function onSwiperChange(index) {
|
|
|
|
+ current.value = index;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ // 大鹅关闭追加缓存 --- 单独针对当前手机的缓存提示
|
|
|
|
+ function handleCloseTishi() {
|
|
|
|
+ uni.setStorageSync('isShowTishi','has');
|
|
|
|
+ showTishi.value = false;
|
|
|
|
+ }
|
|
|
|
+ // 大鹅显示追加缓存 --- 单独针对当前手机的缓存提示
|
|
|
|
+ function handleShowTishi() {
|
|
|
|
+ const isNotShow = Boolean(uni.getStorageSync('isShowTishi'));
|
|
|
|
+ showTishi.value = !isNotShow;
|
|
|
|
+ }
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|