<template>
    <view class="listItem">
        <video v-if="type == '2'" :src="url" :show-fullscreen-btn="true"></video>
        <image v-else :src="url" mode="aspectFill"></image>
    </view>
</template>
<style lang="scss" scoped>
.listItem{
    width: 365rpx;
    height: 500rpx;
	overflow: hidden;
    >image,video{
        width: 100%;
        height: 100%;
		margin-bottom: 20rpx;
    }
}
</style>
<script>
export default {
    name:"listItem",
    data(){
        return {

        }
    },
    props:['url','type']
}
</script>