Commit 3fe967b4 authored by zhengke's avatar zhengke

修改

parent 1185e629
......@@ -8,10 +8,10 @@
<text>(共{{data.DetailsList.length}}道,{{Score}}分)</text>
</view>
<view>
<text class="Single_Before">2</text>/<text class="Exam_Total">{{data.DetailsList.length}}</text>
<text class="Single_Before">{{ExamIndex}}</text>/<text class="Exam_Total">{{data.DetailsList.length}}</text>
</view>
</view>
<swiper class="swiper-box" :autoplay="autoplay">
<swiper class="swiper-box" :autoplay="autoplay" :current="current" @change="onchange">
<swiper-item
v-for="(item1, index1) in data.DetailsList"
:key="item1.id"
......@@ -68,7 +68,9 @@ export default {
autoplay: false,
data: props.paperData,
Score: 0
Score: 0, //总分
current: 0 ,//默认从第几个开始-用于从快捷菜单点入
ExamIndex: 1, //第几题
});
let methods = {
......@@ -92,6 +94,9 @@ export default {
data.data.DetailsList.forEach(x=>{
data.Score+=x.Score
})
},
onchange(e){
data.ExamIndex = e.detail.current+1;
}
};
onMounted(()=>{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment