<template>
  <div class="content">
    <div class="w-full h255 bg-white pl30 pt30 text-left">
      <div class="flex font18">
        1.答题时若答对答案后自动跳到下一题：
        <div class="w90 justify-between flex">
          <label>
            <input
              v-model="sysConfig.autoNext"
              :value="true"
              class="yello-radio"
              name="autoNext"
              type="radio"
            />
            <span>是</span>
          </label>
          <label>
            <input
              v-model="sysConfig.autoNext"
              :value="false"
              class="yello-radio"
              name="autoNext"
              type="radio"
            />
            <span>否</span>
          </label>
        </div>
      </div>

      <div class="flex font18 align-bottom">
        <span> 2.答题时有红字关键字提示：</span>
        <div class="w90 justify-between flex">
          <label>
            <input
              v-model="sysConfig.keyTip"
              :value="true"
              class="yello-radio"
              name="keyTip"
              type="radio"
            />
            <span>是</span>
          </label>
          <label>
            <input
              v-model="sysConfig.keyTip"
              :value="false"
              class="yello-radio"
              name="keyTip"
              type="radio"
            />
            <span>否</span>
          </label>
        </div>
      </div>
      <div class="flex font18">
        <span>3.答题时有语音提示：</span>
        <div class="w90 justify-between flex">
          <label>
            <input
              class="yello-radio"
              :value="true"
              v-model="sysConfig.voiceTip"
              name="voiceTip"
              type="radio"
            />
            <span>是</span>
          </label>
          <label>
            <input
              class="yello-radio"
              :value="false"
              v-model="sysConfig.voiceTip"
              name="voiceTip"
              type="radio"
            />
            <span>否</span>
          </label>
        </div>
      </div>
      <div class="save">
        <div class="save-button">保存</div>
      </div>
    </div>
  </div>
</template>

<script>
import { reactive, ref, toRefs,defineComponent } from "vue";

export default defineComponent({
  name: "sysconfig",
  setup() {
    const state = reactive({
      sysConfig: {
        autoNext: false,
        keyTip: false,
        voiceTip: false,
      },
    });
    return {
      ...toRefs(state),
    };
  },
});
</script>

<style lang="scss" scoped>
.save {
  margin-top: 30px;
  padding-left: 80px;
  .save-button {
    width: 110px;
    line-height: 40px;
    background: #f9de5b;
    border-radius: 4px 4px 4px 4px;
    opacity: 1;
    color: #333;
    text-align: center;
    cursor: pointer;
  }
}


.content {
  padding: 0 30px;
  padding-top: 21px;
}

input[type="radio"] {
  margin-right: 5px;

  cursor: pointer;

  font-size: 14px;

  width: 15px;

  height: 12px;

  position: relative;
}

input[type="radio"]:after {
  position: absolute;

  width: 16px;

  height: 16px;

  top: 0;
  left: 0px;

  content: " ";

  background-color: #fff;

  color: #fff;

  display: inline-block;

  visibility: visible;
  border-radius: 50%;
  border: 1px solid #333;
}

input[type="radio"]:checked:after {
  width: 16px;
  height: 16px;
  background-size: 100%;
  background-image: url("./../../../assets/img/login/radio_icon.png");
  border: none;
}
</style>