<template>
	<view class="pages">
		<view class="content" v-html="strings">
		</view>
	</view>
</template>

<script>
		import * as api from '@/api/tutorial'
	export default{
		data(){
			return{
				strings:'',
			}
		},
		onLoad(options){
			this.getSoftAgreementData()
		},
		methods:{
			// 列表
			async getSoftAgreementData() {
				let that = this;
				let {
					status,
					message,
					data
				} = await api.getSoftAgreement({type:'soft'});
				if (status == 200) {
					this.strings=data.detail.content
				} else {
					that.$toast(message)
				}
			},
		},
	}
</script>

<style scoped lang="scss">
	.pages{
		width: 100%;
		height: 100%;
		padding: 30rpx;
		span{
			white-space: normal !important
		}
	}
</style>