<template>
	<view class="pages">
		<!-- 收获地址 -->
		<view class="address_box">
			<view class="name_box">
				<text class="name_title">收货人：</text>
				<text class="user_name">名字名字名字名字名字名字名字名字名字名字</text>
				<text class="phone">151753743437</text>
			</view>
			<view class="address">
				<image :src="http_img + 'agreement-tips.png'" mode=""></image>
				<text>长沙县特立西路 长丰星城二栋1楼178号 美团超市侧对面122米处</text>
				<view class="selcet">
					<text>切换</text>
					<u-icon name="arrow-right"></u-icon>
				</view>
			</view>
		</view>
		<!-- 商品信息 -->
		<view class="goods_item">
			<image :src="http_img + 'agreement-tips.png'" mode=""></image>
			<view class="right_box">
				<text class="title">【消毒杀菌】 有效抑制99.9%细菌 300g/瓶</text>
				<view class="center_box">
					<view class="money_box">
						<text class="min red">本网价</text>
						<text class="bigs red">123</text>
						<text class="min red">元</text>
					</view>
					<text>×2</text>
				</view>
				<text class="alt">【规格】 预防感冒家庭常备（全家同享） 、粉色</text>
			</view>
		</view>
		
		<!-- 固定底部 -->
		<view class="btn_moneyNum">
			<view class="moneyNum">
				<text class="text">合计：</text>
				<text class="num">100元</text>
			</view>
			<button class="btn">立即参团</button>
		</view>
	</view>
</template>

<script>
	import config from "@/utils/js/config.js"
	export default {
		data() {
			return {
				http_img: config.img_url,
			}
		},
		methods: {
			
		}
	}
</script>

<style lang="scss" scoped>
	.pages{
		width: 100%;
		height: 100%;
		background-color: #F5F5F5;
	}
.address_box {
		width: 711rpx;
		height: 265rpx;
		margin: 13rpx auto 0;
		border-radius: 14rpx;
		box-shadow: 0 3rpx 6rpx 0 rgba(0, 0, 0, 0.16);
		background-color: #fff;
		.name_box {
			padding-top: 34rpx;
			margin-left: 23rpx;
			display: flex;

			.name_title {
				font-size: 28rpx;
				color: #707070;
				line-height: 74rpx;
			}

			.user_name {
				width: 231rpx;
				height: 74rpx;
				line-height: 74rpx;
				padding-left: 14rpx;
				box-sizing: border-box;
				background-color: #F5F5F5;
				color: #000000;
				font-size: 28rpx;
				white-space: nowrap;
				overflow: hidden;
				text-overflow: ellipsis;
			}

			.phone {
				width: 318rpx;
				height: 74rpx;
				margin-left: 12rpx;
				line-height: 74rpx;
				padding-left: 24rpx;
				box-sizing: border-box;
				background-color: #F5F5F5;
				color: #000000;
				font-size: 28rpx;
			}
		}

		.address {
			display: flex;
			margin-top: 55rpx;
			margin-left: 23rpx;

			image {
				width: 32rpx;
				height: 42rpx;
			}
			
			text {
				display: flex;
				margin-left: 24rpx;
				width: 478rpx;
				font-size: 24rpx;
				color: #707070;
			}
			.selcet{
				width: 148rpx;
				padding-left: 34rpx;
				box-sizing: border-box;
				display: flex;
				align-items: center;
				color: #01AEEA;
				text{
					font-size: 28rpx;
					margin: 0;
					margin-right: 20rpx;
				}
				margin-right: 15rpx;
			}
		}
	}
	
	.goods_item {
		display: flex;
		width: 711rpx;
		margin: 0 auto;
		background-color: #fff;
		border-radius: 24rpx;
		margin-top: 22rpx;
		padding-bottom: 20rpx;
		border-bottom: 1px solid #707070;
		box-shadow: 0 3rpx 6rpx 0 rgba(0, 0, 0, 0.16);
		&:last-child {
			border-bottom: none;
		}
	
		image {
			width: 200rpx;
			height: 200rpx;
			margin: 27rpx 9rpx 17rpx 32rpx;
			border-radius: 20rpx;
		}
	
		.right_box {
			display: flex;
			flex-direction: column;
			font-size: 26rpx;
			margin-top: 27rpx;
			margin-right: 31rpx;
			.title {
				width: 395rpx;
				color: #000;
			}
			
			.center_box {
				display: flex;
				align-items: center;
				justify-content: space-between;
				color: #01AEEA;
				font-size: 32rpx;
				.money_box {
					margin-top: 10rpx;
					margin-bottom: 14rpx;
					margin-left: 19rpx;
					.red {
						color: #DB0618;
					}
	
					.min {
						font-size: 30rpx;
					}
	
					.bigs {
						font-size: 36rpx;
					}
				}
			}
			.alt{
				width: 439rpx;
				font-size: 24rpx;
				color: #6C6C6C;
			}
		}
	}
	.btn_moneyNum{
		position: fixed;
		bottom: 0;
		width: 100%;
		height: 130rpx;
		background-color: #fff;
		display: flex;
		justify-content: space-between;
		align-items: center;
		.moneyNum{
			margin-left: 40rpx;
			.text{
				font-size: 32rpx;
				color: #000;
			}
			.num{
				font-size: 43rpx;
				color: #DB0618;
			}
		}
		.btn{
			width: 377rpx;
			height: 94rpx;
			border-radius: 46rpx;
			font-size: 28rpx;
			font-weight: bold;
			color: #fff;
			background-color: #01AEEA;
			display: flex;
			justify-content: center;
			align-items: center;
			margin: 0;
			margin-right: 15rpx;
		}
	}
</style>
