Commit b0650fc2 authored by 罗超's avatar 罗超

1

parent 30a32cb2
This diff is collapsed.
This diff is collapsed.
......@@ -11,6 +11,9 @@
</view>
<swiper
class="swiper-box"
:style="{
height: `calc(100vh - 300rpx - ${statusBarHeight}px)`,
}"
:autoplay="autoplay"
:current="current"
@change="onchange"
......@@ -71,6 +74,7 @@ export default {
sortTotal: props.sortTotal,
current: 1, //默认从第几个开始-用于从快捷菜单点入
ExamIndex: 1, //第几题
statusBarHeight: 0,
});
if (props.startIndex) {
data.current = props.startIndex;
......@@ -102,6 +106,12 @@ export default {
}
},
};
onMounted(() => {
if (props.isLast) {
data.current = props.paperData.DetailsList.length;
}
data.statusBarHeight = uni.getSystemInfoSync().statusBarHeight;
});
return {
...toRefs(data),
...methods,
......@@ -120,8 +130,8 @@ export default {
align-items: center;
justify-content: space-between;
}
.ExamIndex_Box{
margin-right:20px;
.ExamIndex_Box {
margin-right: 20px;
}
.Single_Before {
font-size: 28rpx;
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
......@@ -16,6 +16,9 @@
</view>
<swiper
class="swiper-box"
:style="{
height: `calc(100vh - 300rpx - ${statusBarHeight}px)`,
}"
:autoplay="autoplay"
:current="current"
@change="onchange"
......@@ -170,6 +173,7 @@ export default {
ExamIndex: 1, //第几题
audioTime: 999,
isPlay: true,
statusBarHeight: 0,
});
data.data.DetailsList.map((item) => {
let arr = item.Title.split(" "); //按空格分段
......@@ -287,6 +291,7 @@ export default {
if (props.isLast) {
data.current = props.paperData.DetailsList.length;
}
data.statusBarHeight = uni.getSystemInfoSync().statusBarHeight;
});
onUnmounted(() => {
innerAudioContext.stop();
......
This diff is collapsed.
......@@ -17,6 +17,9 @@
</view>
<swiper
class="swiper-box"
:style="{
height: `calc(100vh - 300rpx - ${statusBarHeight}px)`,
}"
:autoplay="autoplay"
:current="current"
@change="onchange"
......@@ -77,6 +80,7 @@ export default {
sortTotal: props.sortTotal,
current: 1, //默认从第几个开始-用于从快捷菜单点入
ExamIndex: 1, //第几题
statusBarHeight: 0,
});
if (props.startIndex) {
data.current = props.startIndex;
......@@ -103,11 +107,11 @@ export default {
}
},
sendData(item) {
if(item.Answer&&item.Answer!=''){
item.IsRes = true;
}else{
item.IsRes = false;
}
if (item.Answer && item.Answer != "") {
item.IsRes = true;
} else {
item.IsRes = false;
}
context.emit("answerChange", data.data);
},
};
......@@ -115,6 +119,7 @@ export default {
if (props.isLast) {
data.current = props.paperData.DetailsList.length;
}
data.statusBarHeight = uni.getSystemInfoSync().statusBarHeight;
});
let that = methods;
return {
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
......@@ -17,6 +17,9 @@
</view>
<swiper
class="swiper-box"
:style="{
height: `calc(100vh - 300rpx - ${statusBarHeight}px)`,
}"
:autoplay="autoplay"
:current="current"
@change="onchange"
......@@ -77,6 +80,7 @@ export default {
sortTotal: props.sortTotal,
current: 1, //默认从第几个开始-用于从快捷菜单点入
ExamIndex: 1, //第几题
statusBarHeight: 0,
});
if (props.startIndex) {
data.current = props.startIndex;
......@@ -103,11 +107,11 @@ export default {
}
},
sendData(item1) {
if(item1.Answer&&item1.Answer!=''){
item1.IsRes = true;
}else{
item1.IsRes = false;
}
if (item1.Answer && item1.Answer != "") {
item1.IsRes = true;
} else {
item1.IsRes = false;
}
context.emit("answerChange", data.data);
},
};
......@@ -115,6 +119,7 @@ export default {
if (props.isLast) {
data.current = props.paperData.DetailsList.length;
}
data.statusBarHeight = uni.getSystemInfoSync().statusBarHeight;
});
let that = methods;
return {
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
......@@ -16,6 +16,9 @@
</view>
<swiper
class="swiper-box"
:style="{
height: `calc(100vh - 300rpx - ${statusBarHeight}px)`,
}"
:autoplay="autoplay"
:current="current"
@change="onchange"
......@@ -166,6 +169,7 @@ export default {
questionH: 500, //问题区域高度
timer: null,
timeOutEvent: false,
statusBarHeight: 0,
});
if (props.startIndex) {
data.current = props.startIndex;
......@@ -249,6 +253,7 @@ export default {
if (props.isLast) {
data.current = props.paperData.DetailsList.length;
}
data.statusBarHeight = uni.getSystemInfoSync().statusBarHeight;
});
let that = methods;
return {
......
This diff is collapsed.
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