<template>
	<view>
		<view class="u-content">
			<u-parse :html="list.trainingItemContent"></u-parse>
		</view>
	</view>
</template>

<script>
	import {
		selectNurseAppletPersonTrainingItemDetailsList,
	} from '@/api/Videolearning/index.js'
	import baseurl from '@/api/baseurl.js'
	export default {
		data() {
			return {
				baseurl: undefined,
				nurseStationPersonId: undefined,
				list: undefined
			};
		},
		methods: {
			info() {
				selectNurseAppletPersonTrainingItemDetailsList(this.trainingItemId, this.nurseStationPersonId).then(
					res => {
						this.list = res.data
					})
			},
		},
		onLoad(options) {
			const that = this
			this.baseurl = baseurl
			this.trainingItemId = options.trainingItemId
			const value = uni.getStorageSync('nursePersonId');
			if (value) {
				that.nurseStationPersonId = value
				that.info();
			} else {}
		},
	}
</script>

<style lang="scss">
	page {
		background-color: #fff;
	}

	.u-content {
		text-indent: 2em;
		margin-top: 15rpx;
	}
</style>
