index.vue 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. <template>
  2. <view>
  3. <cu-custom class="home-custom" bgColor=".bg-sancolor" bgImage="https://ahwgh.oss-cn-hangzhou.aliyuncs.com/enterprise/6525f808df760.png" :isBack="true" >
  4. <block slot="content">精准大田专家填报记录</block>
  5. </cu-custom>
  6. <view class="cu-list menu margin-top" v-for="(item,index) in dataList" :key="index">
  7. <view class="cu-form-group">
  8. <view class="title must">专家名称</view>
  9. {{item.author}}
  10. </view>
  11. <view class="cu-form-group">
  12. <view class="title must">位置</view>
  13. {{item.site}}
  14. </view>
  15. <view class="cu-form-group">
  16. <view class="title must">指导时间</view>
  17. {{item.pzdt[0]+'年'+item.pzdt[1]+'月'+item.pzdt[2]+'日'}}
  18. </view>
  19. <view class="cu-form-group">
  20. <view class="title must">现场图片</view>
  21. <image :src="item.imgurl"></image>
  22. </view>
  23. </view>
  24. </view>
  25. </template>
  26. <script>
  27. import { Messages } from "prettier/parser-postcss";
  28. import { _hisData } from "./his_data.js";
  29. export default {
  30. name: "basics",
  31. data() {
  32. return {
  33. cardCur: 0,
  34. dotStyle: false,
  35. towerStart: 0,
  36. direction: "",
  37. userInfo:{},
  38. imgList: [],//图片list
  39. dataList:[],
  40. caseTypeList:[],//'黑塔镇蒋杨村','韦集镇陈圩村','灵城镇界沟村','支河镇鸭湖村'
  41. };
  42. },
  43. onLoad() {
  44. this.getDataList();
  45. },
  46. methods: {
  47. //获取历史填报数据
  48. getDataList(){
  49. const ph = wx.getStorageSync('password');
  50. console.log("手机号:" + ph);
  51. _hisData.getlandimgbyphone({
  52. phone:ph
  53. },res=>{
  54. console.log(res)
  55. this.dataList=res.data.data;
  56. })
  57. }
  58. }
  59. };
  60. </script>
  61. <style>
  62. .page {
  63. height: 100vh;
  64. }
  65. .footer {
  66. position: fixed;
  67. text-align: center;
  68. line-height: 40px;
  69. margin-bottom: 2px;
  70. bottom: 10vh;
  71. width: 100%;
  72. font-size: 12px;
  73. }
  74. .footer view {
  75. line-height: 22px;
  76. }
  77. </style>