PublishResultModal.client.vue 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <template>
  2. <van-dialog
  3. style="border-radius: 20px"
  4. v-model:show="visible"
  5. width="295"
  6. show-confirm-cutton
  7. confirmButtonText=" "
  8. confirmButtonDisabled
  9. :show-cancel-button="false"
  10. >
  11. <div class="relative flex w-full flex-col items-center space-y-10 rounded-[20px] py-25">
  12. <img src="~/assets/img/note-create/note_create_success.png" class="w-110" />
  13. <div class="text-3xl font-semibold text-primary">提交成功</div>
  14. <div class="text-base text-black-6">
  15. 审核中,可在
  16. <NuxtLink to="/profile/notes" class="text-primary underline">我的游记</NuxtLink>
  17. 中查看审核结果
  18. </div>
  19. <div class="absolute w-32 h-32 top-0 right-10">
  20. <img
  21. @click="visible = false"
  22. class="w-full h-full"
  23. src="~/assets/img/note-create/close.svg"
  24. alt=""
  25. />
  26. </div>
  27. </div>
  28. <template #footer>
  29. <div class="flex items-center justify-center space-x-20 pt-20 pb-30">
  30. <van-button round plain color="#FF9300" type="primary" @click="handleCheck">
  31. 去查看
  32. </van-button>
  33. <van-button round type="primary" color="#FF9300" @click="handleNextNote">
  34. 继续发布
  35. </van-button>
  36. </div>
  37. </template>
  38. </van-dialog>
  39. </template>
  40. <script setup>
  41. const visible = defineModel('visible', false)
  42. const emit = defineEmits(['submitOk'])
  43. function handleNextNote() {
  44. visible.value = false
  45. navigateTo('/note-create', {
  46. replace: true
  47. })
  48. }
  49. function handleCheck() {
  50. navigateTo('/profile/notes?tab=auditing', {
  51. replace: true,
  52. query: {
  53. tab: 'auditing'
  54. }
  55. })
  56. }
  57. </script>
  58. <style lang="scss" scoped></style>