<template>
  <u-modal
    v-model="show"
    :content="content"
    :show-cancel-button="true"
    @cancel="cancel"
    @confirm="confirm"
  ></u-modal>
</template>

<script>
export default {
  name: 'judgeAuth',
  props: {
    content: {
      type: String,
      default: '你还没有认证，该功能需要认证后才能使用?'
    }
  },
  data() {
    return {
      show: false
    };
  },
  methods: {
    /**
     * @param {Object} bool
     */
    modalShow(bool) {
      this.show = bool;
    },
    /**
     * 取消
     */
    cancel() {},
    /**
     * 确认
     */
    confirm() {
      this.show = false;
      uni.navigateTo({
        url: '/pages/applyEducationCode/applyEducationCode'
      });
    }
  }
};
</script>

<style>
</style>
