<template>
	<u-popup  :show="showPop" :round="20" @close="showPop=false">
		<view class="son-wrap">
			<view class="head">
				<view class="head1">
					<view style="flex: 1;text-align: center;">
						购买须知
					</view>
					<u-icon name="close" @click="showPop=false"></u-icon>
				</view>
				<view class="head2">
					{{buyKnowData.name}}
				</view>

				<view class="head3">
					挂牌价：￥{{buyKnowData.originalPrice}}
				</view>
				
			</view>
			
			<view style="flex: 1;overflow-y: scroll;">
				<view class="middle">
					<view class="middle-list" v-for="(item,a) of buyKnowData.productTitleResVos" :key="a">
						<view class="middle-title">
							{{item.title}}
						</view>
						<view class="middle-content" v-for="(items,b) of item.productChildTitleData" :key="b">
							<text>
								{{items.title}}
							</text>
				
							<view>
								<!--<text>随买随用</text>-->
								<text v-for="(itemss,c) of items.contentList" :key="c" class="content-child">
									{{itemss.content}}
								</text>
							</view>
						</view>
				
					</view>
				</view>
				
				<view class="bottom">
					<text class="bottom-left">
						¥ <text>{{buyKnowData.sellingPrice}}</text>
					</text>
					<view class="bottom-right">
						<text class="btn" @click="showPop=false">
							去预订
						</text>
					</view>
				</view>
			</view>
			
		</view>
	</u-popup>
</template>

<script>
export default {
  props: ['buyKnowData'],
  data() {
    return {
      showPop: false, //控制弹窗显示隐藏
    }
  },
  methods: {
  }
}
</script>

<style scoped="scoped">
.son-wrap{
	position: relative;
	height:85vh;
	display: flex;
	flex-direction:column;
}
.head{
	padding: 0 24rpx;
}
.head1{
	display: flex;
	font-size: 32rpx;
	font-weight: bold;
	padding: 30rpx 0;
	border-radius: 20rpx 20rpx 0 0;
}
.head2{
	font-weight: bolder;
	font-size: 32rpx;
	line-height: 40rpx;
}
.head3{
	font-size: 28rpx;
	margin-top: 20rpx;
	color: #666666;
	border-bottom: 1px solid #e6e6e6;
	padding-bottom: 30rpx;
}
.middle {
	padding-bottom: 100rpx;
	font-size: 28rpx;
}
.middle-list {
	margin: 30rpx 24rpx;
	padding-bottom: 24rpx;
	border-bottom: 1px solid #E6E6E6;
}
.middle-title{
	font-size: 32rpx;
	font-weight: bold;
}
.middle-content {
	display: flex;
	margin-top: 30rpx;
	position: relative;
}
.middle-content>text {
	color: #666666;
	margin-right: 30rpx;
	width: 120rpx;
	display: inline-block;
	white-space: nowrap;
	text-overflow: ellipsis;
	overflow: hidden;
	flex-shrink: 0;
	font-size: 26rpx;
	position: relative;
}
.middle-content view {
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.bottom {
	display: flex;
	justify-content: space-between;
	padding: 0 24rpx;
	height: 100rpx;
	align-items: center;
	position: fixed;
	bottom: 0;
	width: 100%;
	z-index: 9;
	background: #FFFFFF;
	box-sizing: border-box;
}

.bottom-left{
	color: #f9690e;
}

.bottom-left text {
	font-size: 36rpx;
	font-weight: bolder;
}

.bottom view {
	display: flex;
	align-items: center;
}
.btn{
	padding: 16rpx 48rpx;
	border-radius: 20rpx;
	font-size: 32rpx;
}
</style>
