142 lines
2.8 KiB
Vue
Raw Normal View History

2024-05-19 19:15:30 +08:00
<template>
2024-05-21 01:19:28 +08:00
<view class="main-content">
<headers :showBack="true" :themeType="true">
<view class="headerName">
考试结果
</view>
</headers>
<view class="examresult" v-if="!pageData.isPass">
<view class="text">
<text>{{pageData.score}}</text>
</view>
<view class="image-tip">
<image src="/static/exam/examError.png" mode=""></image>
</view>
<view class="text-box1">
<text>很遗憾,成绩不合格</text>
<text>对于成绩不满意可再次考试</text>
</view>
<button type="primary" class="btn"
2024-05-24 19:01:59 +08:00
@click="goHiidden('/personLocation/exam/beginexam/beginexam')">再考一次</button>
2024-05-21 01:19:28 +08:00
<button type="primary" class="btn1" plain="true"
@click="goHiidden('/personLocation/exam/index/index')">返回</button>
2024-05-19 19:15:30 +08:00
</view>
2024-05-21 01:19:28 +08:00
<view class="examresult" v-else>
<view class="text-success">
2024-05-24 19:01:59 +08:00
<text>80</text>
2024-05-21 01:19:28 +08:00
</view>
<view class="image-tip">
<image src="/static/exam/examSuccess.png" mode=""></image>
</view>
<view class="text-box1">
<text>恭喜您通过考试</text>
</view>
<button type="primary" class="btn"
2024-05-24 19:01:59 +08:00
@click="goHiidden('/personLocation/exam/beginexam/beginexam')">返回</button>
2024-05-19 19:15:30 +08:00
</view>
2024-05-23 20:06:14 +08:00
<levitatedsphere :x="100" :y="80"></levitatedsphere>
2024-05-19 19:15:30 +08:00
</view>
</template>
<script>
2024-05-23 20:06:14 +08:00
import levitatedsphere from "@/components/levitatedsphere/levitatedsphere.vue"
2024-05-19 19:15:30 +08:00
export default {
data() {
return {
2024-05-21 01:19:28 +08:00
isPass: false,
pageData: {}
2024-05-19 19:15:30 +08:00
}
},
2024-05-21 01:19:28 +08:00
onLoad(options) {
this.pageData = JSON.parse(options.examData)
2024-05-19 19:15:30 +08:00
},
methods: {
goHiidden(url) {
2024-05-24 19:01:59 +08:00
uni.navigateTo({
2024-05-19 19:15:30 +08:00
url: `/pages${url}`
});
},
}
}
</script>
2024-05-21 01:19:28 +08:00
<style scoped lang="scss">
2024-05-19 19:15:30 +08:00
.examresult {
padding: 61rpx 40rpx;
text-align: center;
2024-05-24 19:01:59 +08:00
.text {
font-size: 182.69rpx;
color: #EA3941;
}
.text-success {
font-size: 182.69rpx;
color: #07CC88;
}
2024-05-21 01:19:28 +08:00
}
2024-05-19 19:15:30 +08:00
2024-05-21 01:19:28 +08:00
.image-tip {
2024-05-19 19:15:30 +08:00
width: 145.52rpx;
height: 145.52rpx;
2024-05-21 18:03:30 +08:00
/* background-image: url(/static/signin-error.png);
2024-05-19 19:15:30 +08:00
background-repeat: no-repeat;
2024-05-21 18:03:30 +08:00
background-size: 100% 100%; */
2024-05-19 19:15:30 +08:00
display: flex;
justify-content: center;
align-items: center;
margin: 0 auto;
2024-05-24 19:01:59 +08:00
image {
2024-05-21 01:19:28 +08:00
width: 150rpx;
height: 150rpx;
margin-top: 40rpx;
}
2024-05-19 19:15:30 +08:00
}
.text-box1 {
2024-05-21 01:19:28 +08:00
margin-top: 40rpx;
2024-05-19 19:15:30 +08:00
display: flex;
flex-direction: column;
}
2024-05-21 01:19:28 +08:00
.text-box1 text:nth-child(1) {
font-family: Source Han Sans CN, Source Han Sans CN;
font-weight: 500;
font-size: 40rpx;
color: #000000;
2024-05-19 19:15:30 +08:00
}
2024-05-21 01:19:28 +08:00
.text-box1 text:nth-child(2) {
font-family: Source Han Sans CN, Source Han Sans CN;
font-weight: 400;
font-size: 28rpx;
2024-05-19 19:15:30 +08:00
color: #272D45;
2024-05-21 01:19:28 +08:00
}
2024-05-19 19:15:30 +08:00
.btn {
margin-top: 73.08rpx;
}
2024-05-21 01:19:28 +08:00
2024-05-19 19:15:30 +08:00
.btn1 {
margin-top: 30.77rpx;
}
2024-05-21 01:19:28 +08:00
2024-05-19 19:15:30 +08:00
.text-box2 {
margin-top: 17.31rpx;
font-size: 30.77rpx;
}
2024-05-21 01:19:28 +08:00
2024-05-19 19:15:30 +08:00
.text-box2 text:last-child {
color: #979797;
}
2024-05-21 01:19:28 +08:00
2024-05-19 19:15:30 +08:00
.btn2 {
background-color: white;
color: #5181F6;
}
2024-05-21 01:19:28 +08:00
2024-05-19 19:15:30 +08:00
.btn2::after {
border: none;
}
</style>