<template>
    	<view v-if="isShowReturnCar" class="return-box">
			<view class="return-item">
				<view class="return-title flex-row flex-between">
					<view>还车到门店</view>
					<view @tap="closeShowReturnCar" class="close-view"><img style="width: 24rpx;height: 24rpx;" src="https://qiniu.bms16.com/FoWVlo-Nmx6wTDpsL2Rf9_BamU7L" alt=""></view>
				</view>
				<view class="return-text">系统会根据您的定位判断您是否已到还车位置，如您已经到达门店，请点击「我已到店」按钮，待门店确认还车后，即可还车成功。</view>
				<view class="return-btn flex-row">
					<view @tap="navStore">导航到店</view>
					<view @tap="immediatelyReturn">我已到店</view>
				</view>
			</view>
		</view>
</template>

<script>
export default {
    data() {
        return {
		};
    },
    /**
     * 组件的属性列表
     */
    props: {
        isShowReturnCar: {
			type: Boolean,
			default: false
		},
    },
    /**
     * 组件的方法列表
     */
    methods: {
		navStore() {
            this.$emit('navStoreBtn')
		},
        immediatelyReturn() {
            this.$emit('immediatelyReturnBtn')
		},
        closeShowReturnCar() {
            this.$emit('closeShowReturnCarBtn')
		}
	}
};
</script>
<style  scoped>
.return-box{
	position: fixed;
	top: 0;
	left: 0;
	z-index: 10;
	width: 100%;
	height: 100vh;
	background-color: rgba(0, 0, 0, 0.4);
}

.return-item {
	border-radius: 32rpx 32rpx 0rpx 0rpx;
	background-color: #ffffff;
	padding: 40rpx 32rpx 74rpx;
	z-index: 100;
	position: fixed;
	bottom: 0;
	width: 100%;
}

.return-title {
	font-weight: 600;
	font-size: 40rpx;
	color: #060809;
	font-size: 40rpx;
	font-weight: 600;
	margin-bottom: 32rpx;
	line-height: 40rpx;
}

.return-item img {
	width: 32rpx;
	height: 32rpx;
	vertical-align: middle;
}

.return-text {
	color: #2A3A5A;
	font-size: 28rpx;
	margin-bottom: 64rpx;
	width: 100%;
	line-height: 52rpx;
}

.return-btn>view:nth-of-type(1) {
	background: #EBECEC;
	border-radius: 40rpx;
	margin-right: 18rpx;
	font-weight: 600;
	font-size: 32rpx;
	color: #060809;
	text-align: center;
	height: 80rpx;
	line-height: 80rpx;
	width: 100%;
}

.return-btn>view:nth-of-type(2) {
	background: #060809;
	border-radius: 40rpx;
	font-weight: 600;
	font-size: 32rpx;
	color: #FFFFFF;
	text-align: center;
	height: 80rpx;
	line-height: 80rpx;
	width: 100%;
}
.close-view{
	width: 60rpx;
	height: 60rpx;
	line-height: 60rpx;
	background: #F4F5F6;
	border-radius: 50%;
	text-align: center;
}
</style>
