<template>
	<view class="content">
		<view class="" style="position: absolute; bottom:80px ;left: 30px;z-index: 99999;">
			打印
		</view>
		<!-- #ifdef APP -->
		<web-view src="/hybrid/html/point.html" :fullscreen='false' :webview-styles="webviewStyles"></web-view>
		 <!-- #endif -->
	</view>
</template>

<script>
	const htmlFileUrl = '/hybrid/html/point.html';
	import {
		getList
	} from '@/api/request2.js';
	export default {
		data() {
			return {
				webviewStyles: {
					progress: {
						color: '#FF3333'
					},
					width: '100%',
					height: '500px',
				}
			}
		},

		methods: {
 // #ifdef APP 
			readFile(path, callback) {
				plus.io.resolveLocalFileSystemURL(path, function(entry) {
					entry.file(function(file) {
						var reader = new plus.io.FileReader();
						reader.onloadend = function(e) {
							callback(e.target.result);
						};
						reader.readAsText(file);
					}, function(e) {
						console.log("读取文件失败：" + e.message);
					});
				}, function(e) {
					console.log("获取图片资源失败：" + e.message);
				});
			}
			 // #endif
		},
		onShow() {
			// this.readFile(htmlFileUrl, function(htmlContent) {
			//   console.log(htmlContent); // 这里是HTML文件的内容字符串
			//   console.log(typeof htmlContent); // 这里是HTML文件的内容字符串
			// });
			// #ifdef APP 
			console.log(11)
			var filters = []
			if (this.checkedToday) {
				filters.push({
					column: "request_time",
					action: "betweeen",
					value: this.todayTime
				})
			}
			console.log(22)
			
			var params = {
				filters: filters,
				pageNo: this.pageNo,
				pageSize: this.pageSize,
			}
			console.log(33)
			getList(params).then(res => {
			console.log(44)
				this.data = res.data.list[7]
				console.log(this.data)
			}).catch(error => {
			console.log(55)
				this.showMessage(error)
			})
			 // #endif
		},

	}
</script>

<style>

</style>