<template>
  <div id="newsQuestion">
    <el-row>
      <el-col :span="24" class="info">
        <el-col :span="24" class="top">
          <i class="el-icon-s-unfold"></i>
          <span>新闻咨询</span>
        </el-col>
        <el-col :span="24" class="question">
          <p>网上调查</p>
          <el-col :span="24" class="form">
            <el-image :src="topImg"></el-image>
            <el-form ref="form" :model="form">
              <el-form-item>
                <span slot="label">您是否愿意继续关注本平台 </span>
                <el-radio-group v-model="form.resource">
                  <el-radio label="愿意"></el-radio>
                  <el-radio label="不愿意"></el-radio>
                  <el-radio label="不愿意"></el-radio>
                  <el-radio label="愿意"></el-radio>
                </el-radio-group>
              </el-form-item>
              <el-form-item>
                <el-button type="primary" @click="onSubmit">确认提交</el-button>
              </el-form-item>
            </el-form>
          </el-col>
        </el-col>
      </el-col>
    </el-row>
  </div>
</template>

<script>
import { mapState, createNamespacedHelpers } from 'vuex';
export default {
  name: 'newsQuestion',
  props: {},
  components: {},
  data: function() {
    return {
      topImg: require('@/assets/getImage.png'),
      form: {},
    };
  },
  created() {},
  methods: {
    onSubmit() {
      console.log(this.form);
    },
  },
  computed: {
    ...mapState(['user']),
    pageTitle() {
      return `${this.$route.meta.title}`;
    },
  },
  metaInfo() {
    return { title: this.$route.meta.title };
  },
};
</script>

<style lang="less" scoped>
.top {
  height: 60px;
  line-height: 60px;
  background-color: #054982;
  color: #fff;
  font-size: 25px;
  font-weight: 600;
  letter-spacing: 2px;
  text-align: center;
}
.question {
  text-align: center;
  p {
    float: left;
    width: 100%;
    height: 59px;
    line-height: 60px;
    text-align: center;
    color: #054982;
    border-bottom: 1px dashed #054982;
    font-size: 25px;
    text-align: center;
    font-weight: 600;
    letter-spacing: 2px;
  }
  .el-image {
    width: 150px;
    height: 100px;
    margin: 30px 0;
  }
}
/deep/.el-form-item__label {
  width: 100%;
  text-align: center;
}
/deep/.el-radio {
  width: 36%;
  text-align: left;
  padding: 5px 80px;
}
</style>
