添加账户提示优化,显示优化,去除银行卡图标
This commit is contained in:
parent
dfe501a7c4
commit
2a62263d62
|
|
@ -282,12 +282,16 @@ export default {
|
|||
|
||||
if (response.code === 200) {
|
||||
uni.showToast({
|
||||
title: '银行卡添加成功',
|
||||
title: '账号添加成功',
|
||||
icon: 'success',
|
||||
})
|
||||
|
||||
this.$emit('success')
|
||||
this.handleClose()
|
||||
|
||||
// 延迟关闭弹窗,确保用户能看到成功提示
|
||||
setTimeout(() => {
|
||||
this.handleClose()
|
||||
}, 1500)
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: response.msg || '添加失败',
|
||||
|
|
@ -295,7 +299,7 @@ export default {
|
|||
})
|
||||
}
|
||||
} catch (error) {
|
||||
console.error('添加银行卡失败:', error)
|
||||
console.error('添加账号失败:', error)
|
||||
uni.showToast({
|
||||
title: '添加失败,请重试',
|
||||
icon: 'none',
|
||||
|
|
|
|||
|
|
@ -131,7 +131,7 @@ export default {
|
|||
|
||||
uni.showModal({
|
||||
title: '确认删除',
|
||||
content: `确认删除选中的${this.selectedIds.length}张账号吗?`,
|
||||
content: `确认删除选中的${this.selectedIds.length}个账号吗?`,
|
||||
success: async res => {
|
||||
if (res.confirm) {
|
||||
this.loading = true
|
||||
|
|
@ -145,7 +145,11 @@ export default {
|
|||
})
|
||||
|
||||
this.$emit('success')
|
||||
this.handleClose()
|
||||
|
||||
// 延迟关闭弹窗,确保用户能看到成功提示
|
||||
setTimeout(() => {
|
||||
this.handleClose()
|
||||
}, 1500)
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: response.msg || '删除失败',
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@
|
|||
<view class="section-title">提现至</view>
|
||||
<view class="bank-selector" @click="selectBank">
|
||||
<view class="bank-info">
|
||||
<image :src="selectedBank.icon" class="bank-icon" mode="aspectFit"></image>
|
||||
<!-- <image :src="selectedBank.icon" class="bank-icon" mode="aspectFit"></image>-->
|
||||
<view class="bank-details">
|
||||
<text class="bank-name">{{ selectedBank.displayName || '请选择账号' }}</text>
|
||||
<text class="bank-card">{{ selectedBank.cardNumber || '暂无账号' }}</text>
|
||||
|
|
@ -264,7 +264,10 @@ export default {
|
|||
|
||||
// 账号操作成功回调
|
||||
onBankSuccess() {
|
||||
this.fetchUserBankList()
|
||||
// 延迟刷新账号列表,避免与子组件的关闭逻辑冲突
|
||||
setTimeout(() => {
|
||||
this.fetchUserBankList()
|
||||
}, 2000)
|
||||
},
|
||||
|
||||
goBack() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user