<template>
	<view class="uni-flex uni-row space-between center" style="background-color:#fff;">
		<view>
			<item :dataContent="dataContent"></item>
		</view>
		<view>
			<balanceQty v-if="showItemQty" :dataContent="dataContent"></balanceQty>
			<compare-qty v-else :dataContent="dataContent" :recommendQty="Number(dataContent.qty)"
				:handleQty="Number(handleQty)" :isShowStatus="false">
			</compare-qty>
		</view>
		<!-- 	<view v-else>
			<recommend-qty v-if="handleQty==0" :dataContent="dataContent" :isShowStatus="false"></recommend-qty>
			<compare-qty v-else :dataContent="dataContent" :recommendQty="Number(dataContent.qty)"
				:handleQty="Number(handleQty)" :isShowStatus="false">
			</compare-qty>
		</view> -->
	</view>
</template>
<script>
	import item from '@/mycomponents/item/item.vue'
	import balanceQty from '@/mycomponents/qty/balanceQty.vue'

	export default {
		components: {
			item,
			balanceQty
		},
		data() {
			return {

			};
		},
		// 此处定义传入的数据
		props: {
			dataContent: {
				type: Object,
				default: {}
			},
			handleQty: {
				type: Number,
				default: 0
			},
			showItemQty: {
				type: Boolean,
				default: true
			}
		},
		watch: {

		},
		methods: {

		},
	}
</script>

<style>
</style>
