<template>
	<view class="page">
		<u-navbar :title="tit" :border-bottom="false" :background="bgc" back-icon-color="#262B37" title-color='#262B37'
			title-size='36' height='36' id="navbar">
		</u-navbar>
        <view class="" v-html="cont">
        	
        </view>


	</view>
</template>

<script>
	export default {
		data() {
			return {
                bgc: {
                	backgroundColor: "#fff",
                },
				tit:'',
				cont:'',
				areaId:''
			}
		},
		onLoad(option) {
			console.log(option);
			this.areaId = option.areaId
			this.getcont()
            if(option.num == 2){
				this.tit = '电动车租赁协议'
			}else{
				this.tit = '享权须知'
			}
		},
		methods: {
			getcont(){
				this.$u.get(`/app/agreement/latest?areaId=${this.areaId}&agreementType=1`).then((res) => {
					if (res.code == 200) {
					   this.cont = res.data.content
					}
				})
			}
		}
	}
</script>

<style lang="scss">
	page {
		background: #fff;
		padding: 20rpx;
		box-sizing: border-box;
		height: 100vh;
		overflow: scroll;
	}

</style>