<template>
	<view class="activity">
		<image :src="banner" mode="widthFix"></image>
	</view>
</template>

<script>
	export default {
	    data() {
	        return {
				banner:'',
	        }
	    },
		onLoad() {
			
		},
		methods:{
			GetHomeLiveAdvertising(){
				this.CommonService.GetHomeLiveAdvertising().then(response =>{
					this.banner = response.data
				}).catch(error =>{
					this.$util.msg(error.msg,3000);
				})
			}
		},
		onPullDownRefresh() {
			setTimeout(() => {
				this.GetHomeLiveAdvertising()
				uni.stopPullDownRefresh()
			}, 200)
		},
		onShow() {
			this.GetHomeLiveAdvertising()
		}
	}
</script>
	
<style lang="scss">
	.activity{
		width: 100%;
		height: auto;
		image{
			width: 100%;
			height: auto;
		}
	}
</style>
