<template>
	<view>
		<view class="top">
			<view class="top-list">
				<view class="list-left">
					收件人
					<text>*</text>
				</view>
				<input  placeholder="收件人姓名" placeholder-class="plaClass" />
			</view>
			<view class="top-list">
				<view class="list-left">
					手机号
					<text>*</text>
				</view>
				<input  placeholder="手机号" placeholder-class="plaClass" />
			</view>
			<view class="top-list">
				<view class="list-left">
					所在地区
					<text>*</text>
				</view>
				<input  placeholder="所在地区" placeholder-class="plaClass" />
			</view>
			<view class="top-list">
				<view class="list-left">
					详细地址
					<text>*</text>
				</view>
				<input  placeholder="详细地址" placeholder-class="plaClass" />
			</view>
			<view class="top-list">
				<view class="list-left">
					设为默认地址
				</view>
				<u-switch v-model="defaultDddress" size='50' activeColor='#FC6703'></u-switch>
			</view>
		</view>
		
		<view class="bottom">
			<text>保存</text>
		</view>
	</view>
</template>

<script>
export default {
  data() {
    return {
      defaultDddress:false	
    }
  },
  methods: {
			
  }
}
</script>

<style scoped lang="scss">
.top{
	background: #ffffff;
	margin-top: 20rpx;
}
.top-list{
	padding: 30rpx 40rpx;
	border-bottom:1px solid #eaeaea;
	display: flex;
	align-items: center;
	justify-content: space-between;
	input{
		text-align: right;
		flex: 1;
	}
}
.list-left{
	font-weight: bold;
	text{
		color: #ff0000;
	}
}
.bottom{
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 128rpx;
	z-index: 1;
	background: #ffffff;
	display: flex;
	align-items: center;
	padding: 0 40rpx;
	text{
		display: inline-block;
		width: 100%;
		text-align: center;
		height: 88rpx;
		line-height: 88rpx;
		background:$red;
		color: #ffffff;
		font-size: 32rpx;
		border-radius:44rpx;
	}
}
// 设置了scoped必须加上/deep/才有效
/deep/ .plaClass{
	text-align: right;
}
</style>
