<template>
	<view>
		<view class="adContainer">
		<ad v-if="flowtype == 2" :unit-id="banner_id"></ad>
		<ad v-if="flowtype == 3" :unit-id="video_banner_id" ad-type="video" ad-theme="white"></ad>
		<ad-custom v-if="flowtype == 4" :unit-id="native_id"></ad-custom>
		</view>
	</view>
</template>

<script>
	export default {
		name:"wike-flow-main",
		data() {
			return {
			};
		},
		props:{
		flowtype: {
			type:Number,
			default:4,
		},
		banner_id: {
			type:String,
			default: ''
		},
		video_banner_id: {
			type:String,
			default: ''
		},
		native_id: {
			type:String,
			default: ''
		}
		},
		methods:{
			
		}
	}
</script>

<style lang="scss">
.adContainer{
	width: 100%;
	// margin-top: 30rpx;
	// padding: 30rpx;
	// margin: 0 30rpx 30rpx;
}
</style>