<template>
	<view class="pageBgImg ">
		<topNavbar title="我的合同"></topNavbar>
		<view class="pad">
			<view class="card">
				<image  :src="pdfUrl"   mode="widthFix"></image>
				<nodata v-if="!pdfUrl" style="margin-bottom: 40rpx;">暂无合同</nodata>
			</view>
		</view>
	</view>
</template>

<script>
	import { selectContractPdfBase64 } from '@/config/api.js'
	export default {
		
		data() {
			return {
				pdfUrl: ''
			}
		},
		onLoad() {
			this.selectContractPdfBase64Fn()
		},
		methods: {
			async selectContractPdfBase64Fn() {
				const {data: res} = await selectContractPdfBase64({studentId: this.studentId})
				this.pdfUrl = res
				console.log('this.pdfUrl')
				console.log(this.pdfUrl)
			},
			
		}
	}
</script>

<style lang="scss" scoped>
	.card {
		padding: 8rpx;
		margin-bottom: 40rpx;
	}
</style>