<template>
	<view class="pop_detail" style="height:80%">
		<com-item :dataContent="dataContent"></com-item>
		<u-line></u-line>
		<scroll-view style="height:320px ">
			<detail-item-info :dataContent="dataContent"></detail-item-info>
			<u-line></u-line>
			<detail-recommend-info :dataContent="dataContent"></detail-recommend-info>
			<u-line></u-line>
			<view v-if="dataContent.record!=undefined">
				<detail-handle-info :dataContent="dataContent">
				</detail-handle-info>
				<u-line></u-line>
			</view>
			<slot>
				<!-- 每个任务的详情 -->
			</slot>
		</scroll-view>

		<view class="uni-flex u-row-center ">
			<view class="close_button" @click="closePopup">
				关闭</view>
			<!-- button 滚动不好使 -->
		</view>
	</view>
</template>

<script>
	import comItem from '@/mycomponents/item/item.vue'
	import detailItemInfo from '@/mycomponents/detail/detailItemInfo.vue'
	import detailRecommendInfo from '@/mycomponents/detail/detailRecommendInfo.vue'
	import detailHandleInfo from '@/mycomponents/detail/detailHandleInfo.vue'

	export default {
		emits: ['onClose'],
		components: {
			comItem,
			detailItemInfo,
			detailRecommendInfo,
			detailHandleInfo
		},
		data() {
			return {}
		},

		mounted() {},
		props: {
			dataContent: {
				type: Object,
				default: {}
			}
		},

		methods: {
			closePopup() {
				this.$emit('onClose')
			},
		}
	}
</script>

<style>


</style>
