index.vue 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <template>
  2. <app-view class="logoff">
  3. <template #header>
  4. <app-navbar title="注销服务" />
  5. </template>
  6. <section class="logoff-details">
  7. <h1>为保证您的账号安全,在提交注销申请时,需同时满足以下条件:</h1>
  8. <dl>
  9. <dt>1.账号财产已结清</dt>
  10. <dd>没有资产、欠款、未结清的资金和现货。</dd>
  11. <dt>2. 账号处于安全状态</dt>
  12. <dd>账号处于正常使用状态,无被盗风险。</dd>
  13. <dt>3. 账号无任何纠纷</dt>
  14. </dl>
  15. </section>
  16. <template #footer>
  17. <Button type="primary" @click="onSubmit">确认注销</Button>
  18. </template>
  19. </app-view>
  20. </template>
  21. <script lang="ts" setup>
  22. import { Toast, Button } from 'vant'
  23. import { fullloading, dialog } from '@/utils/vant'
  24. import { useAccountCancellation } from '@/business/user'
  25. const { formSubmit } = useAccountCancellation()
  26. const onSubmit = () => {
  27. dialog('账户注销后不能再使用该系统,如果账户有余额需要人工审核才能注销,确定要注销账户吗?', {
  28. showCancelButton: true
  29. }).then(() => {
  30. fullloading((hideLoading) => {
  31. formSubmit().then(() => {
  32. hideLoading()
  33. dialog('提交成功,请等待审核。')
  34. }).catch((err) => {
  35. Toast.fail(err)
  36. })
  37. })
  38. })
  39. }
  40. </script>
  41. <style lang="less" scoped>
  42. @import './index.less';
  43. </style>