<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>
import { mapState, createNamespacedHelpers } from 'vuex';
export default {
  name: 'info',
  props: { info: { type: Object, default: () => {} } },
  components: {},
  data: function () {
    return {
      fields: [
        { label: '活动名称', model: 'name' },
        { label: '组织者', model: 'usernames' },
        { label: '充当角色', model: 'role' },
        { label: '人数', model: 'numbers' },
        { label: '宣传报导', model: 'propaganda' },
      ],
    };
  },
  created() {},
  methods: {},
  computed: {},
  metaInfo() {
    return { title: this.$route.meta.title };
  },
};
</script>

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