zengh
2022-05-09 52c39f5e2711e5535b689b66dfa5e100c7882b7f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<template>
    <view>
        <view class="subTitle">
            考试信息
        </view>
        <view class="examContent">
            <view>考试名称:<text>{{examItem.name}}</text> </view>
            <view>考试总分:<text>{{examItem.examScore}}</text>分</view>
            <view v-if="examItem.examTime>0">考试时长:<text>{{examItem.examTime}}</text>分钟</view>
            <view v-else>考试时长:<text>不限时长</text></view>
        </view>
        <view class="subTitle">考试须知</view>
        <view class="tipsArea">
            <ul>
                <li>1、答题时要注意“剩余时间”提示,当剩余时间为0时,系统将自动交卷。</li>
                <li>2、答题完成后,点击“交卷”按钮进行交卷,否则考试无效。</li>
                <li>3、答题时需注意模拟考试不能修改答案。</li>
                <li>4、如果你准备好了,就点击“进入考场”吧,预祝取得好的成绩。</li>
            </ul>
        </view>
        <view class="btnArea">
            <u-button class="btnClass" type="success" shape="circle" @click="enterExam">进入考试</u-button>
            <u-button class="btnClass" type="error" shape="circle" @click="exitExam">退出考试</u-button>
        </view>
        <u-toast ref="uToast" />
    </view>
</template>
 
<script>
    export default {
        data() {
            return {
                examItem: {}
            }
        },
        methods: {
            enterExam() {
 
                uni.navigateTo({
                    url: '/pages/exam/examTextPage'
                })
 
            },
            exitExam() {
                // 退出考试
                uni.navigateBack({
                    delta: 1
                })
            }
        },
        computed: {},
        onLoad(options) {
            // 页面跳转 传递对象 传对象
            options = {
                name: '保安员模拟考试',
                examScore: 100,
                examTime: 60,
                checkFace: 1
            }
            this.examItem = options
        }
    }
</script>
 
<style lang="scss">
    .tipsArea {
        padding: 0 40rpx;
        margin-left: -30rpx;
        line-height: 64rpx;
 
    }
 
    .subTitle {
        font-size: $uni-font-size-title;
        font-weight: bold;
        color: #103289;
        text-align: center;
        margin: 40rpx auto 20rpx auto;
    }
 
    .examContent {
        line-height: 56rpx;
        margin-left: 180rpx;
 
        text {
            font-weight: bold;
        }
    }
 
    .btnArea {
        display: flex;
        margin-top: 50rpx;
 
        .btnClass {
            width: 300rpx;
        }
    }
</style>