You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
765 B
42 lines
765 B
<template>
|
|
<view class="pageBgImg">
|
|
<topNavbar title="信息资讯"></topNavbar>
|
|
<view class="ul">
|
|
<view class="card" v-for="(item,index) in infoList" :key="index">
|
|
<newItem :item="item"></newItem>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
import newItem from '../comp/newItem'
|
|
export default {
|
|
components: { newItem },
|
|
data() {
|
|
return {
|
|
infoList: [],
|
|
id: ''
|
|
}
|
|
},
|
|
onLoad(options) {
|
|
this.id = options.id
|
|
this.getExamSiteInfoFn()
|
|
},
|
|
methods: {
|
|
async getExamSiteInfoFn() {
|
|
const {data: res} = await getExamSiteInfo({id: this.id,pageNo: 1,pageSize: 2, })
|
|
this.infoList = res.list
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
.ul {
|
|
padding: 28rpx;
|
|
}
|
|
.card {
|
|
margin-bottom: 20rpx;
|
|
}
|
|
</style>
|