lishanshan 3 месяцев назад
Родитель
Сommit
b829b3b66f
2 измененных файлов с 8 добавлено и 5 удалено
  1. 4 2
      src/pages-B/payment/detail-withdraw.vue
  2. 4 3
      src/pages-B/payment/withdrawal.vue

+ 4 - 2
src/pages-B/payment/detail-withdraw.vue

@@ -66,7 +66,9 @@ function getData() {
 }
 
 function goBack() {
-	uni.navigateBack()
+	uni.reLaunch({
+        url: '/pages/income/income'
+    })
 }
 
 onLoad((options: any) => {
@@ -77,7 +79,7 @@ onLoad((options: any) => {
 
 <template>
 	<view class="page-container">
-		<u-navbar title="提现详情" :autoBack="true" :placeholder="true" :border-bottom="false" :title-style="{ fontWeight: 'bold' }"></u-navbar>
+		<u-navbar title="提现详情" :autoBack="false" :placeholder="true" :border-bottom="false" :title-style="{ fontWeight: 'bold' }" @back="goBack"></u-navbar>
 
 		<view class="content-wrapper">
 			<!-- 状态图标区域 -->

+ 4 - 3
src/pages-B/payment/withdrawal.vue

@@ -120,9 +120,10 @@ async function applyWithdrawal() {
 			uni.showToast({ title: '提交成功', icon: 'success' });
 			setTimeout(() => {
 				uni.hideLoading();
-				uni.reLaunch({
-                    url: '/pages/income/income'
-                });
+                // 跳转提现详情页
+                uni.navigateTo({
+                    url: `/pages-B/payment/detail-withdraw?id=${res.data.result.payoutNo}`, 
+                })
 			}, 1500);
 		} else {
 		  uni.$u.toast(res.data.message);