Commit 915430b5 authored by zhengke's avatar zhengke

修改

parent 548f7fa2
......@@ -4,7 +4,7 @@
<view class="item" style="padding: 0 20px">
<van-nav-bar fixed>
<template #left>
<van-icon name="cross" size="32rpx" @click="goBack()" />
<van-icon name="cross" size="40rpx" @click="goBack()" />
</template>
<template #title>
<text class="Exam_Current">{{current+1}}</text><text class="Exam_Count">/{{Count}}</text>
......@@ -119,7 +119,7 @@
onUnmounted,
} from "vue";
const innerAudioContext = uni.createInnerAudioContext();
innerAudioContext.autoplay = true;
innerAudioContext.autoplay = false;
const bgAudioManager = uni.getBackgroundAudioManager();
import {
SetStudentPractice
......
......@@ -4,14 +4,14 @@
<view class="item">
<van-nav-bar fixed>
<template #left>
<van-icon name="cross" size="32rpx" @click="goBack()" />
<van-icon name="cross" size="40rpx" @click="goBack()" />
</template>
<template #title>
<text class="Exam_Current">{{current+1}}</text><text class="Exam_Count">/{{Count}}</text>
</template>
</van-nav-bar>
<swiper class="swiper-box" :style="{height: `calc(100vh - 280rpx)`}" :current="current" @change="onchange">
<swiper-item v-for="(item1, index1) in dataList" :key="index1">
<swiper class="swiper-box" :style="{height: `calc(100vh - 320rpx)`}" :current="current" @change="onchange">
<swiper-item v-for="(item1, index1) in dataList" :key="index1" :catchtouchmove="true">
<view class="item1">
<view class="flex" style="max-height:520rpx;overflow:auto;">
<view class="num readTitle" v-html="item1.Title"></view>
......
......@@ -2,7 +2,7 @@
<view>
<van-nav-bar fixed>
<template #left>
<van-icon name="cross" style="font-size: 32rpx; color: #111" @click="back" />
<van-icon name="cross" style="font-size: 40rpx; color: #111" @click="back" />
</template>
<template #title>
<view style="
......@@ -118,7 +118,7 @@
padding: 30rpx;
height: calc(100vh - 300rpx);
overflow-y: auto;
margin-top: 100rpx;
margin-top: 140rpx;
}
.name,
......
......@@ -159,6 +159,11 @@
onMounted(() => {
data.statusBarHeight = uni.getSystemInfoSync().statusBarHeight;
});
onUnmounted(() => {
innerAudioContext.stop();
data.isPlay = false;
});
let that = methods;
return {
...toRefs(data),
......@@ -248,7 +253,7 @@
.item {
position: relative;
margin-top: 210rpx;
margin-top: 225rpx;
}
.item1 {
......
......@@ -173,7 +173,7 @@
.item {
position: relative;
margin-top:210rpx;
margin-top:225rpx;
}
.name {
......
......@@ -144,7 +144,7 @@
}
.item {
margin-top: 210rpx;
margin-top: 225rpx;
}
.item1 {
......
......@@ -4,7 +4,7 @@
<view class="item" style="padding: 0 20px">
<van-nav-bar fixed>
<template #left>
<van-icon name="cross" size="32rpx" @click="goBack()" />
<van-icon name="cross" size="40rpx" @click="goBack()" />
</template>
<template #title>
<text class="Exam_Current">{{current+1}}</text><text class="Exam_Count">/{{Count}}</text>
......@@ -101,10 +101,16 @@
data.dataList = [...data.dataList, ...val];
})
let methods = {
stopTouchMove(){
return true
},
goBack() {
uni.navigateBack();
},
onchange(e) {
// if(data.dataList[]){
// }
data.current = e.detail.current;
if(data.current+1==data.dataList.length){
console.log('翻页');
......@@ -175,7 +181,11 @@
};
</script>
<style scoped>
.To_Trans{
width:100%;
height:100vh;
background-color: transparent;
}
.isRightAnswer{
background-color: green!important;
color:#fff!important;
......
......@@ -4,7 +4,7 @@
<view class="item" style="padding: 0 20px" v-if="!isShowAnswer">
<van-nav-bar fixed>
<template #left>
<van-icon name="cross" size="32rpx" @click="goBack()" />
<van-icon name="cross" size="40rpx" @click="goBack()" />
</template>
<template #title>
<text class="Exam_Current">{{current+1}}</text><text class="Exam_Count">/{{Count}}</text>
......@@ -12,7 +12,8 @@
</van-nav-bar>
<i class="iconfont icon-caidanzu answerSheet" style="
position: absolute;
right: 30rpx;
right: 50rpx;
font-size:40rpx;
z-index: 999;
" :style="{ top: `calc(${statusBarHeight}px + 105rpx)` }" @click="showAnswerSheet"></i>
<swiper class="swiper-box" style="height:100vh" :current="current" @change="onchange">
......@@ -52,6 +53,8 @@
SetStudentStartExam,
SetPracticeReview
} from "../../api/exam";
const innerAudioContext = uni.createInnerAudioContext();
export default {
components: {
singlenumber,
......@@ -252,7 +255,7 @@
}
this.CommonType = options.Type;
}
}
}
};
</script>
<style scoped>
......
......@@ -3,7 +3,7 @@
<view style="height: 100rpx"></view>
<van-nav-bar fixed>
<template #left>
<van-icon name="cross" size="32rpx" @click="goBack()" />
<van-icon name="cross" size="40rpx" @click="goBack()" />
</template>
<template #title>
</template>
......
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