fix:客户端注册充值取消

This commit is contained in:
old burden 2026-04-20 16:27:25 +08:00
parent 17d5e3a1c9
commit e4292ee87d
6 changed files with 10 additions and 36 deletions

View File

@ -159,16 +159,6 @@ export const constantRoutes = [{
permission: "pass", permission: "pass",
icon: 'btn_video' icon: 'btn_video'
} }
}, {
path: 'recharge',
name: 'recharge',
component: () => import('@/views/Recharge.vue'),
meta: {
title: 'recharge',
menuItem: true,
permission: "pass",
icon: 'btn_kscz'
}
}, { }, {
path: 'help', path: 'help',
name: 'help', name: 'help',

View File

@ -240,14 +240,10 @@ export default {
this.imageUrl = res.msg this.imageUrl = res.msg
this.showResult = true this.showResult = true
} else if (res.code == -1) { } else if (res.code == -1) {
this.$confirm({ this.$modal.error({
title: this.$t('common.notice'), title: this.$t('common.notice'),
content: this.$t('common.balenceLow'), content: this.$t('common.balenceLow'),
okText: this.$t('common.confirm'), okText: this.$t('common.confirm')
cancelText: this.$t('common.cancel'),
onOk: (_) => {
this.$router.push('/recharge')
}
}) })
} else if (res.code == -2) { } else if (res.code == -2) {
this.$modal.error({ this.$modal.error({

View File

@ -186,14 +186,10 @@ export default {
this.showResult = true this.showResult = true
this.imageUrl = res.msg this.imageUrl = res.msg
} else if (res.code == -1) { } else if (res.code == -1) {
this.$confirm({ this.$modal.error({
title: this.$t('common.notice'), title: this.$t('common.notice'),
content: this.$t('common.balenceLow'), content: this.$t('common.balenceLow'),
okText: this.$t('common.confirm'), okText: this.$t('common.confirm')
cancelText: this.$t('common.cancel'),
onOk: (_) => {
this.$router.push('/recharge')
}
}) })
} else if (res.code == -2) { } else if (res.code == -2) {
this.$modal.error({ this.$modal.error({

View File

@ -565,14 +565,10 @@ export default {
this.$store.dispatch('main/setPrevent', true) this.$store.dispatch('main/setPrevent', true)
this.getVideo(res.data.id) this.getVideo(res.data.id)
} else if (res.code == -1) { } else if (res.code == -1) {
this.$confirm({ this.$modal.error({
title: this.$t('common.notice'), title: this.$t('common.notice'),
content: this.$t('common.balenceLow'), content: this.$t('common.balenceLow'),
okText: this.$t('common.confirm'), okText: this.$t('common.confirm')
cancelText: this.$t('common.cancel'),
onOk: (_) => {
this.$router.push('/recharge')
}
}) })
} else if (res.code == -2) { } else if (res.code == -2) {
this.$modal.error({ this.$modal.error({

View File

@ -451,14 +451,10 @@ export default {
this.imageUrl = res.msg this.imageUrl = res.msg
this.showResult = true this.showResult = true
} else if (res.code == -1) { } else if (res.code == -1) {
this.$confirm({ this.$modal.error({
title: this.$t('common.notice'), title: this.$t('common.notice'),
content: this.$t('common.balenceLow'), content: this.$t('common.balenceLow'),
okText: this.$t('common.confirm'), okText: this.$t('common.confirm')
cancelText: this.$t('common.cancel'),
onOk: (_) => {
this.$router.push('/recharge')
}
}) })
} else if (res.code == -2) { } else if (res.code == -2) {
this.$modal.error({ this.$modal.error({

View File

@ -1237,10 +1237,10 @@ export default {
this.getVideo(res.data.id) this.getVideo(res.data.id)
this.refreshChatFirstPage() this.refreshChatFirstPage()
} else if (res.code == -1) { } else if (res.code == -1) {
this.$confirm({ this.$modal.error({
title: this.$t('common.notice'), title: this.$t('common.notice'),
content: this.$t('common.balenceLow'), content: this.$t('common.balenceLow'),
onOk: () => this.$router.push('/recharge') okText: this.$t('common.confirm')
}) })
} else { } else {
const reason = res.msg || res.message || '提交失败' const reason = res.msg || res.message || '提交失败'