<template>
  <div class="subPage">
    <form class="mainForm">
      <ul>
        <li class="flex-h">
          <span>跳转类型：</span>
          <div class="flex-item">
            <div style="width:50%" class="radio">
                <el-radio v-model="postData.jumpType" label='0' >连接</el-radio>
                <el-radio v-model="postData.jumpType" label='1' >课程</el-radio>
            </div>
          </div>
        </li>
        <li class="flex-h">
          <span>连接：</span>
          <div class="flex-item">
            <div style="width:50%">
              <el-input
                placeholder="请输入连接"
                v-model="postData.link"
                clearable>
              </el-input>
            </div>
          </div>
        </li>
        <li class="flex-h">
          <span>是否发布：</span>
          <div class="flex-item">
            <div style="width:50%" class="radio">
              <el-radio v-model="postData.release" label='0' >是</el-radio>
                <el-radio v-model="postData.release" label='1' >否</el-radio>
            </div>
          </div>
        </li>
        <li class="flex-h">
          <span>图片位置：</span>
          <div class="flex-item">
            <div style="width:50%">
              <el-select v-model="postData.position" placeholder="请选择">
                <el-option
                  v-for="item in positionList"
                  :key="item.value"
                  :label="item.label"
                  :value="item.value">
                </el-option>
              </el-select>
            </div>
          </div>
        </li>
        <li class="flex-h">
          <span>标题：</span>
          <div class="flex-item">
            <div style="width:50%">
              <el-input
                placeholder="请输入真实姓名"
                v-model="postData.realName"
                clearable>
              </el-input>
            </div>
          </div>
        </li>
        <li class="flex-h">
          <span>图片：</span>
          <div class="flex-item">
            <div>
              <a class="formImg">
                <img src="" class="centerLabel contain" alt="">
                <i class="iconfont icon-quxiao"></i>
              </a>
              <el-button type="success" size="mini">上传图片</el-button>
            </div>
          </div>
        </li>
        <li style="text-align:center">
          <el-button type="primary" size="mini">保存</el-button>
          <el-button type="danger" size="mini">取消</el-button>
        </li>
      </ul>
    </form>
  </div>
</template>

<script>
export default {
  name: '',
  data () {
    return {
      postData: {
        jumpType: '0',
        link: '',
        release: '0',
        position: ''
      },
      positionList: [{
        value: '0',
        label: '首页'
      }, {
        value: '1',
        label: '精选'
      }, {
        value: '2',
        label: '健康'
      }, {
        value: '3',
        label: '社交'
      }, {
        value: '4',
        label: '教育'
      }, {
        value: '5',
        label: '健身'
      }, {
        value: '6',
        label: '艺术'
      }],
    }
  },
  components: {},
  methods: {

  },
  mounted () {}
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style lang="scss" scoped>
</style>
