You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

log-off.js 504B

1234567891011121314151617181920212223242526
  1. import { confirmBreachContract } from '@/utils/network/api.js'
  2. // 注销确认
  3. export const logOffConfirm = (params) => {
  4. let option = {
  5. data: params,
  6. method: "POST",
  7. showLoading: false,
  8. }
  9. uni.showLoading({
  10. title: '注销中...'
  11. })
  12. requestNew(confirmBreachContract, option).then(res => {
  13. uni.hideLoading()
  14. uni.showToast({
  15. title: '注销成功'
  16. })
  17. setTimeout(() => {
  18. uni.switchTab({
  19. url: '/pages/service/service'
  20. })
  21. }, 1000)
  22. }).catch(() => {
  23. uni.hideLoading()
  24. })
  25. }