<template>
    <view class="agreement-content">
		<view v-if="name == 'warrant'">授权书</view>
		<view v-else v-html="content"></view>
    </view>
</template>

<script>
    import { registeragree } from '@/apis/interfaces/auth'
    export default {
    	data() {
    		return {
    			content: '',
				name : ''
    		};
    	},
        onShow() {
			this.name = this.$Route.query.name
			if(this.$Route.query.name != 'warrant') {
				registeragree(this.$Route.query.name).then(res=> {
					this.content = res.content
				})
			}
           
        }
    }
</script>

<style lang="scss" scoped>
	.agreement-content{
		padding: $padding * 2;
		font-size: $title-size;
	}
</style>
