<template>
  <div class="info-box">
    <info-form :fields="fields"></info-form>
  </div>
</template>
<script>
import infoForm from './components/Form'
export default {
  components: { infoForm },
  data() {
    return {
      formModel: {},
      fields: [
        {
          name: 'personal_name',
          label: '用户名',
          placeholder: '请输入用户名'
        },
        {
          name: 'city',
          label: '常驻城市',
          placeholder: '请输入常驻城市'
        },
        {
          name: 'hobby',
          label: '兴趣爱好',
          placeholder: '请输入兴趣爱好'
        },
        {
          name: 'constellation',
          label: '星座',
          placeholder: '请输入星座'
        },
        {
          name: 'mobile',
          label: '联系方式',
          placeholder: '请输入联系方式'
        },
        {
          name: 'company',
          label: '公司',
          placeholder: '请输入公司'
        },
        {
          name: 'position',
          label: '职务',
          placeholder: '请输入职务'
        },
        {
          name: 'birthday',
          label: '生日(月 日)',
          placeholder: '请输入生日(月 日)'
        },
        {
          type: 'select',
          name: 'industry',
          label: '所在行业',
          placeholder: '请选择所在行业',
          values: [
            { name: '1', text: '地方校友会' },
            { name: '2', text: '行业研究会' },
            { name: '3', text: '俱乐部' }
          ]
        },
        {
          name: 'customer',
          label: '客户是谁',
          placeholder: '请输入客户是谁'
        },
        {
          name: 'product',
          label: '公司产品',
          placeholder: '请输入公司产品'
        },
        {
          type: 'textarea',
          name: 'dedication',
          label: '可以为大家奉献什么？',
          placeholder: '请输入'
        },
        {
          type: 'uploader',
          name: 'avatar',
          label: '个人头像',
          placeholder: '请输入客户是谁'
        }
      ]
    }
  }
}
</script>
<style lang="scss" scoped>
.info-box{
  background: #fff;
}
</style>
