2023-01-30 14:57:39 +08:00
|
|
|
|
<template>
|
2023-01-31 09:49:26 +08:00
|
|
|
|
<div class="GeneralLawExam">
|
2023-01-30 14:57:39 +08:00
|
|
|
|
<div class="search_box">
|
|
|
|
|
|
<u-search placeholder="请输入需要搜索的考试" bg-color="#FFF" v-model="keyword" :show-action="false"></u-search>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<p class="all_test">全部考试</p>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="card_list">
|
|
|
|
|
|
<div class="card">
|
|
|
|
|
|
<div class="card_top">
|
|
|
|
|
|
<div class="card_title">曲靖规则基本考试</div>
|
|
|
|
|
|
<div class="card_count">
|
|
|
|
|
|
共<span class="col_blue">10</span>题,预计<span class="col_blue">10</span>分钟
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="card_statistics">
|
|
|
|
|
|
<span>264</span>人通过/<span>283</span>人参与
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="result">
|
|
|
|
|
|
<img src="../img/success.png" alt="">
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="grade">98</div>
|
|
|
|
|
|
</div>
|
2023-02-01 18:02:38 +08:00
|
|
|
|
<div class="card_bottom col_blue" @click="handleToTest()">参加考试</div>
|
2023-01-30 14:57:39 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2023-02-02 12:00:35 +08:00
|
|
|
|
|
|
|
|
|
|
<u-popup v-model="showAuth" mode="bottom" border-radius="32">
|
|
|
|
|
|
<div class="auth_box">
|
|
|
|
|
|
<div class="auth_title">居民信息认证</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="auth_form">
|
|
|
|
|
|
<div class="form_name">姓名</div>
|
|
|
|
|
|
<input class="form_value" type="text" placeholder="请输入姓名" v-model="value1"/>
|
|
|
|
|
|
<div class="form_name">身份证号</div>
|
|
|
|
|
|
<input class="form_value" type="idcard" placeholder="请输入18位身份证号" v-model="value2"/>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="auth_btn">
|
|
|
|
|
|
<div class="cancel">取消</div>
|
|
|
|
|
|
<div class="submit">确定</div>
|
2023-02-01 18:02:38 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</u-popup>
|
2023-01-30 14:57:39 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
|
export default {
|
|
|
|
|
|
data() {
|
|
|
|
|
|
return {
|
2023-02-02 12:00:35 +08:00
|
|
|
|
showAuth: false,
|
2023-01-30 14:57:39 +08:00
|
|
|
|
keyword: '',
|
|
|
|
|
|
current: 1,
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
onLoad() {
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
methods: {
|
|
|
|
|
|
getList() {
|
2023-01-31 09:49:26 +08:00
|
|
|
|
console.log('普法考试列表');
|
2023-01-30 17:09:15 +08:00
|
|
|
|
},
|
2023-01-31 16:19:20 +08:00
|
|
|
|
handleToTest() {
|
|
|
|
|
|
this.$emit('toTest')
|
2023-01-30 14:57:39 +08:00
|
|
|
|
}
|
|
|
|
|
|
},
|
2023-01-30 17:09:15 +08:00
|
|
|
|
onReachBottom() {
|
|
|
|
|
|
this.current++;
|
|
|
|
|
|
this.getList()
|
|
|
|
|
|
},
|
2023-01-30 14:57:39 +08:00
|
|
|
|
}
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<style lang="scss" socped>
|
2023-01-31 09:49:26 +08:00
|
|
|
|
.GeneralLawExam {
|
2023-01-30 14:57:39 +08:00
|
|
|
|
.search_box {
|
|
|
|
|
|
margin: 24px 0;
|
|
|
|
|
|
padding: 0 32px;
|
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.all_test {
|
|
|
|
|
|
font-size: 28px;
|
|
|
|
|
|
color: #333333;
|
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
|
padding: 0 32px;
|
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.card_list {
|
|
|
|
|
|
padding: 8px 32px;
|
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
|
|
|
|
|
|
|
.card {
|
|
|
|
|
|
margin-top: 24px;
|
|
|
|
|
|
.card_top,
|
|
|
|
|
|
.card_bottom {
|
|
|
|
|
|
padding: 24px;
|
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
|
background: #FCFCFC;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.card_top {
|
|
|
|
|
|
position: relative;
|
|
|
|
|
|
border-radius: 16px 16px 0 0;
|
|
|
|
|
|
|
|
|
|
|
|
.card_title {
|
|
|
|
|
|
font-weight: 500;
|
2023-01-31 16:19:20 +08:00
|
|
|
|
font-size: 36px;
|
2023-01-30 14:57:39 +08:00
|
|
|
|
color: #333333;
|
2023-01-31 16:19:20 +08:00
|
|
|
|
overflow: hidden;
|
2023-01-30 14:57:39 +08:00
|
|
|
|
text-overflow:ellipsis;
|
|
|
|
|
|
display: -webkit-box;
|
2023-01-31 16:19:20 +08:00
|
|
|
|
-webkit-box-orient: vertical;
|
|
|
|
|
|
-webkit-line-clamp: 2;
|
2023-01-30 14:57:39 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.card_count,
|
|
|
|
|
|
.card_statistics {
|
|
|
|
|
|
font-weight: 400;
|
|
|
|
|
|
font-size: 26px;
|
|
|
|
|
|
color: #999999;
|
|
|
|
|
|
margin-top: 16px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.result {
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
right: 0;
|
|
|
|
|
|
top: 0;
|
|
|
|
|
|
img {
|
|
|
|
|
|
width: 200px;
|
|
|
|
|
|
height: 200px;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.grade {
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
right: 75px;
|
|
|
|
|
|
top: 60px;
|
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
|
font-size: 40px;
|
|
|
|
|
|
color: #0FC484;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.card_bottom {
|
|
|
|
|
|
border-top: 1px solid #EEEEEE;
|
|
|
|
|
|
border-radius: 0 0 16px 16px;
|
|
|
|
|
|
text-align: center;
|
|
|
|
|
|
}
|
|
|
|
|
|
.col_blue {
|
|
|
|
|
|
color: #2D7DFF;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2023-02-02 12:00:35 +08:00
|
|
|
|
|
|
|
|
|
|
.auth_box {
|
|
|
|
|
|
padding: 32px;
|
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
|
|
|
|
|
|
|
.auth_title {
|
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
|
font-size: 34px;
|
|
|
|
|
|
color: #333333;
|
|
|
|
|
|
text-align: center;
|
|
|
|
|
|
}
|
|
|
|
|
|
.auth_form {
|
|
|
|
|
|
margin-top: 30px;
|
|
|
|
|
|
|
|
|
|
|
|
.form_name {
|
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
|
font-size: 28px;
|
|
|
|
|
|
color: #333333;
|
|
|
|
|
|
margin-bottom: 16px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
input {
|
|
|
|
|
|
height: 96px;
|
|
|
|
|
|
background: #F4F5FA;
|
|
|
|
|
|
border-radius: 16px;
|
|
|
|
|
|
margin-bottom: 32px;
|
|
|
|
|
|
padding-left: 24px;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.auth_btn {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
|
height: 100px;
|
|
|
|
|
|
padding: 10px 0;
|
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
|
.cancel {
|
|
|
|
|
|
background: #F2F2F2;
|
|
|
|
|
|
color: #2D7DFF;
|
|
|
|
|
|
}
|
|
|
|
|
|
.submit {
|
|
|
|
|
|
background: #2D7DFF;
|
|
|
|
|
|
color: #FFF;
|
|
|
|
|
|
}
|
|
|
|
|
|
.cancel,
|
|
|
|
|
|
.submit {
|
|
|
|
|
|
width: 48%;
|
|
|
|
|
|
height: 80px;
|
|
|
|
|
|
line-height: 80px;
|
|
|
|
|
|
text-align: center;
|
|
|
|
|
|
border-radius: 16px;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2023-01-30 14:57:39 +08:00
|
|
|
|
}
|
|
|
|
|
|
</style>
|