能量碎片接口页面处理
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<view class="selectCard">
|
||||
<view class="bankInfo" v-for="(item,index) in lists" :key='index'
|
||||
<view class="bankInfo" v-if="lists.length>0" v-for="(item,index) in lists" :key='index'
|
||||
@longpress='delBank(item.bank_account_id,index)'>
|
||||
<image class="bankLogin" @click="selectBank(item)" :src="item.bank.cover" mode="widthFix" />
|
||||
<view class="right" @click="selectBank(item)">
|
||||
@@ -13,8 +13,10 @@
|
||||
</view>
|
||||
</view>
|
||||
<u-icon name="edit-pen-fill" @click='editBank(item.bank_account_id)' color="rgba(255,255,255,0.6)"
|
||||
size='60' />
|
||||
</view>
|
||||
size='50' />
|
||||
</view>
|
||||
<!-- 无列表 -->
|
||||
<no-list v-if="lists.length === 0" name='no-shop' txt="没有任何提现银行 ~ " />
|
||||
<!-- <u-toast ref="uToast" /> -->
|
||||
<u-toast ref="uToast" />
|
||||
</view>
|
||||
@@ -96,6 +98,10 @@
|
||||
withdrawsAccountsDelete(id).then(res => {
|
||||
console.log(res)
|
||||
that.lists.splice(index, 1)
|
||||
if(that.lists.length === 0){
|
||||
uni.navigateBack({})
|
||||
uni.setStorageSync('refresh',true)
|
||||
}
|
||||
}).catch(err => {
|
||||
this.$refs.uToast.show({
|
||||
title: err.message,
|
||||
@@ -147,7 +153,8 @@
|
||||
z-index: 1;
|
||||
|
||||
.bankLogin {
|
||||
width: 80rpx;
|
||||
width: 70rpx;
|
||||
height: 70rpx;
|
||||
opacity: .9;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user