<template>
	<view class="bg">
		<image v-if="headImg" :src="showImg(headImg)" class="topImg" mode="widthFix"></image>
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				headImg: '',
			}
		},
		onLoad(option) {
			
		},
		onReady() {
			this.getHeadImg(2392)
			
		},
		methods: {
			getHeadImg (id) {
				this.Post({id},'/api/multimedia/detail').then(res => {
					this.headImg = res.data.head_img
					uni.setNavigationBarTitle({
						title:res.data.title
					})
				});	
			},
			
			
			
			
		},
		onPageScroll(res) {
			
		}
	}
</script>

<style lang="scss" scoped>
	.bg {
		width: 750rpx;
		min-height: 100vh;
	}
	
	.topImg {
		width: 100%;
	}
</style>