<template>
	<view class="page">
		<view class="pageMain">
			<ty-text-rich-text :html="content"></ty-text-rich-text>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				content:'',
				type:1,//1--专家入驻协议 2-供应商入驻协议
			}
		},
		onLoad(options) {
			this.type = options.type;
			var url = '';
			if(this.type == 1){
				url = 'fire/api/Fire/getExpertJoinRule'
			}else{
				url = 'fire/api/Fire/getSupplyJoinRule'
			}
			this.rq.getData(url).then(res=>{
				if(res.code == 0){
					this.content = res.data.join_rule
				}
			})
		},
		methods: {
			
		}
	}
</script>

<style scoped>
	.pageMain{
		width: 100vw;
		min-height: 100vh;
		background: #fff;
		padding: 30rpx;
		box-sizing: border-box;
	}
</style>