<template>
  <view class="main">
    <view class="img-banner">
      <image mode="aspectFill" src="https://mn.wenlvti.net/app_static/xiangan/banner_dig_history.jpg"></image>
    </view>
    <view class="task-list">
      <view class="item">
        <text class="iconfont icon-task-history-1"></text>
        <view class="info">
          <view class="title">建村历史</view>
          <view class="desc">村落建立与发展历程</view>
        </view>
        <view class="btn" @click="goForm('cultural', 1)">
          填写
        </view>
      </view>
      <view class="item">
        <text class="iconfont icon-task-history-2"></text>
        <view class="info">
          <view class="title">历史人物</view>
          <view class="desc">重要历史人物事迹</view>
        </view>
        <view class="btn" @click="goForm('figure', 0)">
          填写
        </view>
      </view>
      <view class="item">
        <text class="iconfont icon-task-history-3"></text>
        <view class="info">
          <view class="title">历史事件</view>
          <view class="desc">重大历史事件记录</view>
        </view>
        <view class="btn" @click="goForm('cultural', 2)">
          填写
        </view>
      </view>
      <view class="item">
        <text class="iconfont icon-task-history-4"></text>
        <view class="info">
          <view class="title">掌故轶事</view>
          <view class="desc">民间传说与历史故事</view>
        </view>
        <view class="btn" @click="goForm('story', 0)">
          填写
        </view>
      </view>
      <view class="item">
        <text class="iconfont icon-task-history-5"></text>
        <view class="info">
          <view class="title">历史文献</view>
          <view class="desc">重要历史文献资料</view>
        </view>
        <view class="btn" @click="goForm('cultural', 3)">
          填写
        </view>
      </view>
      <view class="item">
        <text class="iconfont icon-task-history-6"></text>
        <view class="info">
          <view class="title">口述历史</view>
          <view class="desc">村民口述历史记录</view>
        </view>
        <view class="btn" @click="goForm('cultural', 4)">
          填写
        </view>
      </view>
    </view>
  </view>
</template>

<script setup lang="ts">
import { useTaskEntryForm } from '../composeable/TaskEntryForm';

const { goForm } = useTaskEntryForm();
</script>

