<template>
	<view>
	  <cu-custom class="home-custom" bgColor=".bg-sancolor" bgImage="https://ahwgh.oss-cn-hangzhou.aliyuncs.com/enterprise/6525f808df760.png" :isBack="true" >
	        <block slot="content">精准大田专家填报记录</block>
	  </cu-custom>
	  <view class="cu-list menu margin-top" v-for="(item,index) in dataList" :key="index">
	  	<view class="cu-form-group">
	  		<view class="title must">专家名称</view>
			{{item.author}}
	  	</view>
	    <view class="cu-form-group">
	        <view class="title must">位置</view>
			{{item.site}}
	    </view>
		<view class="cu-form-group">
		    <view class="title must">指导时间</view>
			{{item.pzdt[0]+'年'+item.pzdt[1]+'月'+item.pzdt[2]+'日'}}
		</view>
		<view class="cu-form-group">
		    <view class="title must">现场图片</view>
			<image :src="item.imgurl"></image>
		</view>
		
		
	  </view>
	</view>
</template>


<script>
  import { Messages } from "prettier/parser-postcss";
  import { _hisData } from "./his_data.js";
  

  export default {
    name: "basics",
    data() {
      return {
        cardCur: 0,	
        dotStyle: false,
        towerStart: 0,
        direction: "",
		userInfo:{},
		imgList: [],//图片list
		dataList:[],
		caseTypeList:[],//'黑塔镇蒋杨村','韦集镇陈圩村','灵城镇界沟村','支河镇鸭湖村'
      };
    },
	onLoad() {
		this.getDataList();
	},
    methods: {
		//获取历史填报数据
		
		getDataList(){
			const ph = wx.getStorageSync('password');
			console.log("手机号：" + ph);
			_hisData.getlandimgbyphone({
				phone:ph
			},res=>{
				console.log(res)
				this.dataList=res.data.data;
				
			})
			
			
			
			
		}

      
    }
  };
</script>

<style>
    .page {
        height: 100vh;
    }

    .footer {
        position: fixed;
        text-align: center;
        line-height: 40px;
        margin-bottom: 2px;
        bottom: 10vh;
        width: 100%;
        font-size: 12px;
    }

    .footer view {
        line-height: 22px;
    }
</style>