<template>
	<!-- 寄快递 -->
	<view class="" style="padding: 0 24rpx;">
		<view style="position: relative;padding-bottom: 20rpx;">
			<!-- 自定义导航栏 -->
			<image src="/static/images/index/back.png"
				style="width: 750rpx;height: 1200rpx;position: absolute;top: 0;z-index: -1;left:-24rpx;" mode="">
			</image>
			<u-navbar :autoBack='true' title='寄快递' bgColor="rgba(248, 50, 36, 0.2)" :placeholder='true'
				:safeAreaInsetTop="true" style="position: absolute;z-index: 110;background-color: rgba(0,0,0,0);">
				<view class="u-nav-slot" slot="left" style="display: flex;">
					<u-icon name="arrow-left" color="rgba(0, 0, 0, 1)" size="24" @click="uni.navigateBack()"></u-icon>
				</view>
			</u-navbar>
			<!-- 地址 -->
			<view class="address">
				<view class="left u-flex" style="display: flex;" @click="send">
					<view class="u-row-between left" style="display: flex;flex-direction: column;">
						<image src="/static/express/ji.png" style='width: 40rpx;;height:40rpx ;' mode=""></image>
						<image src="/static/express/change.png" style='width: 40rpx;;height:40rpx ;' mode="">
						</image>
					</view>
					<view class=" u-row-between left"
						style="flex: 1;margin-left: 28rpx;border-bottom:2rpx solid rgba(151, 151, 151, 0.08) ;display: flex;">
						<view class="u-row-between " style="">
							<view class="pople">{{i18n.sender}}</view>
							<view class="jiadd" style="margin-top: 14rpx;">{{i18n.informat}}</view>
						</view>
						<view class="u-flex">
							<view class="" style="color: rgba(151, 151, 151, 1);">|</view>
							<text class="right">{{i18n.addressbook}}</text>
						</view>
					</view>
				</view>
				<view class="left u-flex"
					style="display: flex;margin-top: 26rpx;border-bottom:2rpx solid rgba(151, 151, 151, 0.08)"
					@click="recipe">
					<view class="u-row-between left" style="display: flex;flex-direction: column;">
						<image src="/static/express/shou.png" style='width: 40rpx;;height:40rpx ;' mode=""></image>
						<!-- <image src="../../static/express/change.png" style='width: 40rpx;;height:40rpx ;' mode=""> -->
						</image>
					</view>
					<view class=" u-row-between left" style="flex: 1;margin-left: 28rpx;display: flex;">
						<view class="u-row-between " style="">
							<view class="pople">{{i18n.recipient}}</view>
							<view class="jiadd" style="margin-top: 14rpx;">{{i18n.informat}}</view>
						</view>
						<view class="u-flex">
							<view class="" style="color: rgba(151, 151, 151, 1);">|</view>
							<text class="right">{{i18n.addressbook}}</text>
						</view>
					</view>
				</view>
			</view>
			<view class="wup">
				<!-- 物品信息 -->
				<view class="info u-flex u-row-between" @click='goods'>
					<view class="u-flex">
						<text class="wupin">{{i18n.item}}</text>
						<view class="mast">{{i18n.required}}</view>
					</view>
					<view class="u-flex">
						<text class="change">{{i18n.select}}</text>
						<image src="/static/express/next1.png" style="width: 28rpx;height: 28rpx;margin-left: 6rpx;"
							mode=""></image>
					</view>
				</view>
				<!-- 跨境物流 -->
				<view class="info u-flex u-row-between" @click="logshow=true">
					<view class="u-flex">
						<text class="wupin">{{i18n.flow}}</text>
					</view>
					<view class="u-flex">
						<text class="change" style="color: rgba(248, 50, 36, 1);">{{i18n.selection}}</text>
						<image src="/static/express/next1.png" style="width: 28rpx;height: 28rpx;margin-left: 6rpx;"
							mode=""></image>
					</view>
				</view>
			</view>
			<!-- 下一步 -->
			<view class="next  u-flex-between" style="display: flex;">
				<view class="" style="flex: 1;">
					<view class="sum">
						<text>{{i18n.Estimatedprice}}</text>
						<text style="color: rgba(248, 50, 36, 1);">¥ - -</text>
					</view>
					<view class="deal u-flex" style="margin-top: 16rpx;">
						<u-checkbox-group shape='circle' v-model="checkboxValue1" placement="column"
							@change="checkboxChange">
							<u-checkbox :customStyle="{marginBottom: '8px',marginTop:'5px'}" :name="deal">
							</u-checkbox>
						</u-checkbox-group>
						<text>{{i18n.readandagree}}</text>
						<text style="color: rgba(248, 50, 36, 1);">《{{i18n.International}}》</text>
					</view>
				</view>
				<view class="tonext " style="" @click="next">
					{{i18n.next}}
				</view>
			</view>
		</view>
		<u-popup round='28' :show="logshow" @close="close">
			<view class="pop">
				<kj-flow @success='success' @close='logshow=false'></kj-flow>
			</view>
		</u-popup>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				deal: -1,
				checkboxValue1: [],
				logshow: false, //物流选择
			}
		},
		onLoad(options) {

		},
		computed: {
			i18n() {
				return this.$t('index')
			}
		},
		methods: {
			close() {
				this.logshow = true
			},
			goods() {
				uni.navigateTo({
					url: '/pageB/goods'
				})
			},
			send() {
				uni.navigateTo({
					url: '/pageB/Senderinfor'
				})
			},
			recipe() {
				uni.navigateTo({
					url: '/pageB/recipientinfo'
				})
			},
			checkboxChange(n) {
				console.log('change', n);
			},
			next() {
				uni.navigateTo({
					url: '/pageB/end'
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.pop {
		font-family: PingFangSC, PingFang SC;
		font-weight: 500;
		font-size: 36rpx;
		color: #333333;
		line-height: 50rpx;
		text-align: left;
		font-style: normal;
		padding: 32rpx 28rpx 0 0;
		box-sizing: border-box;
	}
	.sum {
		font-family: PingFangSC, PingFang SC;
		font-weight: 500;
		font-size: 24rpx;
		color: #222222;
		line-height: 34rpx;
		text-align: left;
		font-style: normal;
	}

	.deal {
		font-family: PingFangSC, PingFang SC;
		font-weight: 400;
		font-size: 20rpx;
		color: #666666;
		line-height: 28rpx;
		text-align: left;
		font-style: normal;
	}

	.tonext {
		width: 286rpx;
		height: 88rpx;
		background: #F83224;
		box-shadow: 0rpx 16rpx 40rpx -12rpx rgba(255, 21, 21, 0.5);
		border-radius: 44rpx;
		font-family: PingFangSC, PingFang SC;
		font-weight: 500;
		font-size: 32rpx;
		color: #FFFFFF;
		line-height: 88rpx;
		text-align: center;
		font-style: normal;
	}

	.next {
		width: 750rpx;
		height: 166rpx;
		background: #FFFFFF;
		position: fixed;
		bottom: 0;
		left: 0;
		padding: 12rpx 24rpx;
		box-sizing: border-box;
	}

	.wup {
		width: 704rpx;
		height: 220rpx;
		background: #FFFFFF;
		border-radius: 16rpx;
		margin-top: 20rpx;
		padding: 0rpx 20rpx;
		box-sizing: border-box;
	}

	.info {
		height: 100rpx;
		border-bottom: 2rpx solid rgba(151, 151, 151, 0.08);



		.wupin {
			font-family: PingFangSC, PingFang SC;
			font-weight: 400;
			font-size: 28rpx;
			color: #333333;
			line-height: 40rpx;
			text-align: left;
			font-style: normal;
		}

		.change {
			font-family: PingFangSC, PingFang SC;
			font-weight: 400;
			font-size: 28rpx;
			color: #666666;
			line-height: 40rpx;
			text-align: left;
			font-style: normal;
		}

		.mast {
			width: 62rpx;
			height: 30rpx;
			border-radius: 16rpx;
			border: 1rpx solid #F83224;
			font-family: PingFangSC, PingFang SC;
			font-weight: 400;
			font-size: 20rpx;
			color: #FF1515;
			line-height: 30rpx;
			text-align: center;
			font-style: normal;
			margin-left: 12rpx;
		}
	}

	.mon {
		font-family: HarmonyOS_Sans_Medium;
		font-size: 20rpx;
		color: #F83224;
		line-height: 26rpx;
		text-align: left;
		font-style: normal;
	}

	.bigtitle {
		font-family: PingFangSC, PingFang SC;
		font-weight: 600;
		font-size: 28rpx;
		color: #222222;
		line-height: 40rpx;
		text-align: left;
		font-style: normal;
	}

	.timeb {
		font-family: PingFangSC, PingFang SC;
		font-weight: 400;
		font-size: 22rpx;
		color: #666666;
		line-height: 32rpx;
		text-align: left;
		font-style: normal;
	}

	.timea {
		font-family: PingFangSC, PingFang SC;
		font-weight: 400;
		font-size: 22rpx;
		color: #555555;
		line-height: 32rpx;
		text-align: left;
		font-style: normal;
	}

	.pinb {
		width: 148rpx;
		height: 64rpx;
		background: #FF1515;
		border-radius: 42rpx;
		font-family: PingFangSC, PingFang SC;
		font-weight: 500;
		font-size: 28rpx;
		color: #FFFFFF;
		line-height: 64rpx;
		text-align: center;
		font-style: normal;
	}

	.label {
		margin-top: 20rpx;
		width: 702rpx;
		height: 288rpx;
		background: #FFFFFF;
		border-radius: 16rpx;
		padding: 32rpx 20rpx;
		box-sizing: border-box;

		.left {
			width: 144rpx;
			height: 144rpx;
			background: #F5F5F5;
			border-radius: 8rpx;

			.bourn {
				font-family: PingFangSC, PingFang SC;
				font-weight: 400;
				font-size: 20rpx;
				color: #222222;
				line-height: 28rpx;
				text-align: left;
				font-style: normal;
			}

			.addres {
				font-family: PingFangSC, PingFang SC;
				font-weight: 500;
				font-size: 28rpx;
				color: #222222;
				line-height: 40rpx;
				text-align: left;
				font-style: normal;
			}
		}
	}

	.flexc {
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
	}

	.hai {
		font-family: PingFangSC, PingFang SC;
		font-weight: 600;
		font-size: 32rpx;
		color: #222222;
		line-height: 44rpx;
		text-align: left;
		font-style: normal;
		margin-right: 10rpx;
	}

	.more {
		font-family: PingFangSC, PingFang SC;
		font-weight: 400;
		font-size: 24rpx;
		color: #F83224;
		line-height: 34rpx;
		text-align: left;
		font-style: normal;
	}

	.parcel {
		width: 702rpx;
		height: 260rpx;
		background: #FFFFFF;
		border-radius: 16rpx;
		margin-top: 20rpx;
		padding: 24rpx;
		box-sizing: border-box;

		.myparcel {
			font-family: PingFangSC, PingFang SC;
			font-weight: 600;
			font-size: 28rpx;
			color: #222222;
			line-height: 40rpx;
			text-align: left;
			font-style: normal;
		}

		.add {
			width: 240rpx;
			height: 48rpx;
			background: rgba(248, 50, 36, 0.06);
			border-radius: 24rpx;

			.addtext {
				font-family: PingFangSC, PingFang SC;
				font-weight: 600;
				font-size: 20rpx;
				color: #000000;
				line-height: 28rpx;
				text-align: left;
				font-style: normal;
			}
		}
	}

	.address {
		width: 702rpx;
		// height: 776rpx;
		background: #FFFFFF;
		border-radius: 20rpx;
		padding: 48rpx 24rpx 36rpx;
		box-sizing: border-box;
		margin-top: 38rpx;

		.bottom {
			padding: 0 76rpx;
			box-sizing: border-box;
			margin-top: 48rpx;

			.friend {
				font-family: PingFangSC, PingFang SC;
				font-weight: 400;
				font-size: 28rpx;
				color: #555555;
				line-height: 40rpx;
				text-align: left;
				font-style: normal;
				margin-left: 12rpx;
			}
		}

		.mail {
			width: 646rpx;
			height: 84rpx;
			background: #F83224;
			box-shadow: 0rpx 16rpx 40rpx -12rpx rgba(255, 21, 21, 0.5);
			border-radius: 44rpx;
			font-family: PingFangSC, PingFang SC;
			font-weight: 500;
			font-size: 32rpx;
			color: #FFFFFF;
			line-height: 84rpx;
			text-align: center;
			font-style: normal;
		}



		.left {
			height: 128rpx;

			.pople {
				font-family: PingFangSC, PingFang SC;
				font-weight: 500;
				font-size: 30rpx;
				color: #222222;
				line-height: 42rpx;
				text-align: left;
				font-style: normal;
			}

			.jiadd {
				font-family: PingFangSC, PingFang SC;
				font-weight: 400;
				font-size: 26rpx;
				color: #777777;
				line-height: 36rpx;
				text-align: left;
				font-style: normal;
			}

			.right {
				font-family: PingFangSC, PingFang SC;
				font-weight: 500;
				font-size: 26rpx;
				color: #222222;
				line-height: 36rpx;
				text-align: left;
				font-style: normal;
				margin-left: 18rpx;
			}
		}
	}

	::v-deep .u-navbar__content.data-v-1194bf80 {
		background-color: rgba(0, 0, 0, 0) !important;
	}

	::v-deep .u-status-bar.data-v-13f16680 {
		background-color: rgba(0, 0, 0, 0) !important;
	}

	::v-deep .u-subsection--button.data-v-b14d3440 {
		/* padding: 6rpx 34rpx !important; */
		border-radius: 64rpx !important;
	}

	::v-deep .u-subsection--button__bar.data-v-b14d3440 {
		border-radius: 32rpx !important;
	}
</style>