Procházet zdrojové kódy

app银行卡删除操作无反应bug处理

@dongkboy před 1 týdnem
rodič
revize
988bd3ba4d

+ 1 - 1
components/uni-stepBar/uni-stepBar.vue

@@ -31,7 +31,7 @@
 			<!-- 步骤连接线(最后一个不显示) -->
 			<view class="line" v-if="index != stepList.length - 1"></view>
 			<!-- 驳回状态显示原因 -->
-			<view class="rejectionReason " v-if="item.content && item.status==false">
+			<view class="rejectionReason " v-if="item.content && item.show==false">
 				{{item.content}}
 			</view>
 

+ 12 - 4
pages/wallet/bankCardDetails.vue

@@ -30,7 +30,7 @@
 		<view class="auditProgress mt-2">
 			<uni-stepBar :stepList="stepList"></uni-stepBar>
 		</view>
-		<view class="footer-fixed" v-if="carInfo.auditStatus=='2'">
+		<view class="footer" v-if="carInfo.auditStatus=='2'">
 			<view class="submit-btn" @click="submitAudit">
 				再次提交
 			</view>
@@ -204,9 +204,17 @@
 					if (bankres.code == 200) {
 						uni.showToast({ //提示
 							icon: 'none',
-							title: '提交成功'
+							title: bankres.msg,
+							duration: 1000,
+						})
+						setTimeout(() => {
+							uni.navigateBack(-1)
+						}, 1500)
+					} else {
+						uni.showToast({ //提示
+							icon: 'none',
+							title: bankres.msg,
 						})
-						uni.navigateBack(-1)
 					}
 				}).catch(errors => {
 					uni.$u.toast(errors[0].message)
@@ -257,7 +265,7 @@
 		background: #fff;
 	}
 
-	.footer-fixed {
+	.footer {
 		position: fixed;
 		bottom: 0;
 		left: 0;

+ 8 - 1
pages/wallet/myWallet.vue

@@ -269,6 +269,7 @@
 				cardPackList1: [], //审核中
 				cardPackList2: [], //审核通过
 				cardPackList3: [], //不通过
+				bankCardId: "",
 			}
 		},
 		computed: {
@@ -289,11 +290,12 @@
 		methods: {
 			//删除银行卡
 			delbank(id) {
+				this.bankCardId = id;
 				this.deleteShow = true;
 			},
 			async deletesubOrderEvent() {
 				let res = await this.$http.post('/userBankCard/deleteBankCard', {
-					id: id,
+					id: this.bankCardId,
 				});
 				if (res.code == 200) {
 					uni.showToast({ //提示
@@ -302,6 +304,11 @@
 					})
 					this.deleteShow = false;
 					this.getcardPack() //刷新银行卡列表
+				} else {
+					uni.showToast({ //提示
+						icon: 'none',
+						title: res.msg || '接口未知错误'
+					})
 				}
 			},
 			//复制卡号