<template>
	<view class="survey-box">
		{{surveyText}}
	</view>
</template>

<script>
	import {purchaserApi} from "@/config/modules/purchaser.js"
	export default {
		data() {
			return {
				surveyText:""
			}
		},
		methods: {
			getDetail(surveyId){
				purchaserApi.purchaserSurveyDetail({SuveryId:surveyId}).then(res=>{
					if(res.Ret == 200){
						this.surveyText = res.Data.Detail.Content || '暂无'
					}
				})
			}
		},
		onLoad(option) {
			this.getDetail(option.surveyId || 0)
		}
	}
</script>

<style lang="scss" scoped>
	.survey-box{
		padding: 60rpx 40rpx;
		font-size: 32rpx;
	}
</style>
