考试记录
This commit is contained in:
@@ -74,12 +74,12 @@ export default {
|
|||||||
path: "./testList",
|
path: "./testList",
|
||||||
type: 'token'
|
type: 'token'
|
||||||
},
|
},
|
||||||
{
|
// {
|
||||||
icon: 'https://cdn.cunwuyun.cn/qujing/wdzs.png',
|
// icon: 'https://cdn.cunwuyun.cn/qujing/wdzs.png',
|
||||||
label: "我的证书",
|
// label: "我的证书",
|
||||||
path: "/mods/AppHometown/AppHometown",
|
// path: "/mods/AppHometown/AppHometown",
|
||||||
type: 'token'
|
// type: 'token'
|
||||||
}
|
// }
|
||||||
],
|
],
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -154,8 +154,7 @@ export default {
|
|||||||
|
|
||||||
.header-bg {
|
.header-bg {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 424px;
|
height: 512px;
|
||||||
position: relative;
|
|
||||||
|
|
||||||
.header-info {
|
.header-info {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
@@ -163,7 +162,7 @@ export default {
|
|||||||
background: url("https://cdn.cunwuyun.cn/qujing/header-banner.png") no-repeat no-repeat;
|
background: url("https://cdn.cunwuyun.cn/qujing/header-banner.png") no-repeat no-repeat;
|
||||||
background-size: 100% 100%;
|
background-size: 100% 100%;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
padding: 240px 0 0 48px;
|
padding: 240px 32px 0 48px;
|
||||||
|
|
||||||
.wrap {
|
.wrap {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
@@ -264,6 +263,7 @@ export default {
|
|||||||
.list-wrap {
|
.list-wrap {
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
padding: 32px;
|
padding: 32px;
|
||||||
|
margin-top: -130px;
|
||||||
|
|
||||||
.card {
|
.card {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|||||||
@@ -1,18 +1,18 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="page">
|
<div class="page">
|
||||||
<div class="list">
|
<div class="list">
|
||||||
<div class="item">
|
<div class="item" v-for="(item, index) in list" :key="index">
|
||||||
<div class="top">
|
<div class="top" @click="toTestResult(item.id)">
|
||||||
<div class="flex-left">
|
<div class="flex-left">
|
||||||
<h3>曲靖规则基本考试</h3>
|
<h3>{{item.examinationName}}</h3>
|
||||||
<p class="mar-b16">共<span>10</span>题,预计<span>10</span>分钟</p>
|
<p class="mar-b16">共<span>{{item.allSubjectNumber}}</span>题,预计<span>10</span>分钟</p>
|
||||||
<p>264人通过/283人参与</p>
|
<p>{{item.passNumber}}人通过/{{item.examinationNumber}}人参与</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex-right">
|
<div class="flex-right">
|
||||||
<img src="https://cdn.cunwuyun.cn/img/qrcode-sign-fail.png" alt="">
|
<img :src="statusImgList[item.assessmentType]" alt="" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="bottom">重新考试</div>
|
<div class="bottom" @click="toTestForm(item.id)">重新考试</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -25,7 +25,11 @@ export default {
|
|||||||
appName: "考试记录",
|
appName: "考试记录",
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
current: 1,
|
||||||
|
pages: 2,
|
||||||
|
list: [],
|
||||||
|
statusImgList: ['https://cdn.cunwuyun.cn/qujing/youxiu.png', 'https://cdn.cunwuyun.cn/qujing/lianghao.png',
|
||||||
|
'https://cdn.cunwuyun.cn/qujing/jige.png', 'https://cdn.cunwuyun.cn/qujing/bujige.png']
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@@ -39,9 +43,28 @@ export default {
|
|||||||
frontColor: "#000000",
|
frontColor: "#000000",
|
||||||
backgroundColor: "#F4F6FA",
|
backgroundColor: "#F4F6FA",
|
||||||
})
|
})
|
||||||
|
this.getList()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
getList() {
|
||||||
|
if(this.current > this.pages) return
|
||||||
|
this.$instance.post(`/app/appexaminationinfo/myExamination?size=20¤t=${this.current}`).then(res => {
|
||||||
|
if (res.code == 0) {
|
||||||
|
this.pages = res.data.pages
|
||||||
|
this.list = this.current > 1 ? [...this.list, ...res.data.records] : res.data.records
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
toTestForm(id) {
|
||||||
|
uni.navigateTo({url: `../AppLegalLearning/testForm?id=${id}`})
|
||||||
|
},
|
||||||
|
toTestResult(id) {
|
||||||
|
uni.navigateTo({url: `../AppLegalLearning/result?id=${id}`})
|
||||||
|
},
|
||||||
|
},
|
||||||
|
onReachBottom() {
|
||||||
|
this.current ++
|
||||||
|
this.getList()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user