<template>
	<view>
		<uni-popup ref="agreeAddress" type="bottom" :safe-area="false">
			<view class="agreeAddress">
				<view class="title">用户隐私保护提示</view>
				<view>
					在你使用 时味苏州 服务之前，请仔细阅读<navigator style="color: royalblue;display: inline;" url="/subPackages/user/privacyInfo?id=12">《时味苏州隐私政策》</navigator>，如你同意该指引，请点击“同意”开始使用本小程序。
				</view>
				
				<view class="flex-between">
					<view class="agree-btn" @click="submit(0)">拒绝</view>
					<view class="agree-btn" style="color: white;background: #07c261;" @click="submit(1)">同意</view>
				</view>
				
			</view>
		</uni-popup>
	</view>
</template>

<script>
	export default {
		name:"agreeAdress",
		data() {
			return {
				
			};
		},
		methods:{
			closePopup() {
				this.$refs.agreeAddress.close()
			},
			openPop(){
				this.$refs.agreeAddress.open()
			},
			submit(val){
				uni.setStorageSync("agreeAddress",val)
				this.$emit("submitAgreeAdress", val)
				this.closePopup()
			},
		}
	}
</script>

<style lang="scss" scoped>
.agreeAddress{
	width: 100%;
	height: 599.33rpx;
	background: white;
	padding: 80rpx 26rpx;
	font-size: 28rpx;
	border-radius: 20rpx 20rpx 0 0;
	.title{
		font-size: 32rpx;
		font-weight: bold;
		padding-bottom: 30rpx;
	}
	.flex-between{
		padding: 100rpx 80rpx 0;
		.agree-btn{
			width: 250rpx;
			height: 80rpx;
			border-radius: 15rpx;
			line-height: 80rpx;
			text-align: center;
			background: #f2f2f2;
		}
	}
}
</style>