<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>