<template>
	<view class="page" v-if="showPage">
		<view class="pageMain">
			<view class="text-32 text-bold margin-bottom-30">
				<text>{{detailData.category_name}}</text>
			</view>
			<view class="text-28 flex margin-bottom-40">
				<view>建筑类型</view>
				<view class="flex-one margin-left-30 text-right text-77">{{detailData.name}}</view>
			</view>
			<ty-text-rich-text :html="detailData.content"></ty-text-rich-text>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				type: 0, //1-疏散宽度计算 2-疏散距离查询 3-安全出口数量查询 4-楼梯类型查询 5-防火间距查询
				placeId: '', //场所ID
				detailData: {},
				showPage: false,
			}
		},
		onLoad(options) {
			this.placeId = options.placeId;
			this.getPageData()
		},
		methods: {
			getPageData() {
				this.rq.getData('calculator/api/Calculator/getOtherPlace', {
					place_id: this.placeId
				}).then(res => {
					if (res.code == 0) {
						this.detailData = res.data.detail;
						this.showPage = true;
					}
				})
			}
		}
	}
</script>

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