Commit 915430b5 authored by zhengke's avatar zhengke

修改

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