kaoshiresult.vue 2.6 KB
<template>
  <div class="resultbox">
    <div class="resulttop">
      <div class="resultname">{{ score }}分</div>
      <div class="resulttext" v-if="is_pass == 2">
        对不起您没有通过本次考试,请重新答题
      </div>
      <div class="resulttext" v-else>恭喜您通过本次考试!</div>
    </div>

    <div class="lingzheng" @click="lingzheng">点击领证</div>
    <div class="register" v-if="miangongshow" @click="hidezheng">
      <div class="zhengbox">
        <img src="../../../assets/zhengbox.png" alt="" />
        <div class="miangongbox">
          <div class="miangongtop flex">
            <div class="miangongtopleft">
              <div class="mianleftitem flexone">
                <div class="mianleftname">姓名</div>
                <div class="mianleftnamek">陈廷冲</div>
              </div>
              <div class="mianleftitem flexone">
                <div class="mianleftname">籍贯</div>
                <div class="mianleftnamek">陈廷冲</div>
              </div>
              <div class="mianleftitem flexone">
                <div class="mianleftname">手机号</div>
                <div class="mianleftnamek">123456789</div>
              </div>
              <div class="mianleftitem flexone">
                <div class="mianleftname">发证日期</div>
                <div class="mianleftnamek">
                  2020 <span class="year">年</span> 9
                  <span class="year">月</span>7 <span class="year">日</span>
                </div>
              </div>
              <div class="mianleftitem flexone gonghao">
                <div class="mianleftname">面工证号</div>
                <div class="mianleftnamek">202034943934909</div>
              </div>
            </div>
            <div class="mianright">
              <img src="../../../assets/zhaopian_Img@2x.png" alt="" />
              <img
                src="../../../assets/zhang_img@2x.png"
                alt=""
                class="zhangimg"
              />
            </div>
          </div>
        </div>
      </div>
      <div class="fanhui">返回首页 10s</div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      miangongshow: false,
      score: '',
      id: '',
      is_pass: ''

    };
  },
  created() {
    this.score = this.$route.query.score;
    console.log(this.score)
    this.id = this.$route.query.id;
    this.is_pass = this.$route.query.is_pass
  },
  methods: {
    lingzheng() {
      this.miangongshow = true;
    },
    hidezheng() {
      this.miangongshow = false;
    }
  }
};
</script>

<style scoped>
@import "../../style/homepage.css";
</style>