<template>
	<div class="container">
		<div class="chart-box">
			<qiun-data-charts type="line" :chartData="chartsDataA" :opts="chartsOpts1" :canvas2d="true" canvasId="bluIsPUXClcwSxSnviUHpYIHAqlkYPGmYz" />
		</div>
		<div class="line"></div>
		<div class="chart-box">
			<qiun-data-charts type="line" :chartData="chartsDataB" :opts="chartsOpts2" :canvas2d="true" canvasId="blPMsbivCyZIDsJZkkpmvJLkogLPjsRPoJ" />
		</div>
		<div class="line"></div>
		<div class="chart-box">
			<qiun-data-charts type="line" :chartData="chartsDataC" :opts="chartsOpts3" :canvas2d="true" canvasId="blLGJdyEQwqrvotuWABGnrcJeiexEaPKdW" />
		</div>
		<div class="line"></div>
		<div class="chart-box">
			<qiun-data-charts type="line" :chartData="chartsDataD" :opts="chartsOpts4" :canvas2d="true" canvasId="blSUhcoDishvakzzaivrrrhhQmNiMGxkQG" />
		</div>
		<div class="line"></div>
		<div class="chart-box">
			<qiun-data-charts type="line" :chartData="chartsDataE" :opts="chartsOpts5" :canvas2d="true" canvasId="blcEFtdubHXYnljaqVrYZjAVKTWSssDQxw" />
		</div>
		<!-- 名词解释弹窗 -->
		<!-- <uni-popup ref="popupShow" type="bottom">
			<div class="popup-content">
				<span class="close-btn" @click="$refs.popupShow.close()"><i class="iconfont icon-quxiaoguanbi"></i></span>
				<div class="bl-describe-con">
					<div class="describe-title">名词解释</div>
					<div class="describe-box">
						<div class="describe-tag">
							<span>
								<i>{{ popupData.title }}</i>
							</span>
						</div>
						<img v-if="popupData.img" class="describe-img" :src="baseUrl + '/device/' + popupData.img" />
						<scroll-view scroll-y="true" class="describe-text"><div v-html="popupData.content"></div></scroll-view>
					</div>
				</div>
			</div>
		</uni-popup> -->
	</div>
</template>

<script>
import methods from './methods.js';
import uniPopup from '@/components/uni-popup/uni-popup';
import qiunDataCharts from '@/components/qiun-data-charts/qiun-data-charts';
export default {
	components: {
		uniPopup,
		qiunDataCharts
	},
	data() {
		return {
			imgUrl: '',
			baseUrl: '',
			winHeight: '',
			patientId: '',
			data: '',
			popupData: {
				title: '',
				img: '',
				content: ''
			},
			chartsDataA: {},
			chartsDataB: {},
			chartsDataC: {},
			chartsDataD: {},
			chartsDataE: {},
			chartsOpts1: {},
			chartsOpts2: {},
			chartsOpts3: {},
			chartsOpts4: {},
			chartsOpts5: {}
		};
	},
	onLoad(options) {
		let app = getApp();
		this.imgUrl = app.globalData.imgUrl;
		this.baseUrl = app.globalData.baseUrl;
		this.patientId = options.id;
		this.winHeight = uni.getSystemInfoSync().windowHeight + 'px';
		this.inData();
	},
	onShow() {},
	methods: {
		...methods
	}
};
</script>
<style lang="scss" scoped>
@import './style.scss';
</style>
