judge-auth.vue 762 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <template>
  2. <u-modal
  3. v-model="show"
  4. :content="content"
  5. :show-cancel-button="true"
  6. @cancel="cancel"
  7. @confirm="confirm"
  8. ></u-modal>
  9. </template>
  10. <script>
  11. export default {
  12. name: 'judgeAuth',
  13. props: {
  14. content: {
  15. type: String,
  16. default: '你还没有认证,该功能需要认证后才能使用?'
  17. }
  18. },
  19. data() {
  20. return {
  21. show: false
  22. };
  23. },
  24. methods: {
  25. /**
  26. * @param {Object} bool
  27. */
  28. modalShow(bool) {
  29. this.show = bool;
  30. },
  31. /**
  32. * 取消
  33. */
  34. cancel() {},
  35. /**
  36. * 确认
  37. */
  38. confirm() {
  39. this.show = false;
  40. uni.navigateTo({
  41. url: '/pages/applyEducationCode/applyEducationCode'
  42. });
  43. }
  44. }
  45. };
  46. </script>
  47. <style>
  48. </style>