<template>
  <div id="info">
    <van-form>
      <template v-for="(i, index) in fields">
        <van-field v-model="info[i.model]" :key="`f${index}`" :label="i.label" :readonly="true" />
      </template>
    </van-form>
  </div>
</template>

<script>
export default {
  name: 'info',
  props: { info: { type: Object, default: () => {} } },
  components: {},
  data: function () {
    return {
      fields: [
        { label: '活动名称', model: 'name' },
        { label: '类型', model: 'type' },
        { label: '服务形式', model: 'servicetype' },
        { label: '服务受众及人数', model: 'serviceusers' },
        { label: '转移形式及内容', model: 'transfertype' },
        { label: '结果(效果、效益)', model: 'result' },
      ],
    };
  },
  created() {},
  methods: {},
  metaInfo() {
    return { title: this.$route.meta.title };
  },
};
</script>

<style lang="less" scoped></style>
