<template>
	<view class="aircraft-agreement">
		<text>{{ agreement }}</text>
	</view>
</template>

<script >
import { agreementContent } from '@/common/agreement.js';
export default {
	data(){
		return{
			// 协议
			agreement: ''
		}
	},
	onLoad(options) {
		this.agreement = agreementContent[options.type || 'userAgreement'];
		uni.setNavigationBarTitle({
			title: options.type ? (options.type === 'userAgreement' ? '用户协议' : '隐私权政策') : '协议'
		})
	}
}
</script>

<style scoped lang="scss">
page{
	background-color: bisque;
}
.aircraft-agreement{
	padding: 20rpx 40rpx;
	max-width: 1000px;
	margin-left: auto;
	margin-right: auto;
	opacity: 0.9;
	// background-image: linear-gradient(to bottom, #f8f7f5 0%, #e5d6c1 100%);
	box-shadow: 0 0 20rpx #dcdae4;
	// border: 2rpx solid #deaf60;
}
</style>