ソースを参照

fix: 押金缴纳完成后跳转缴纳记录

carver 2 年 前
コミット
505388b42d
1 ファイル変更16 行追加5 行削除
  1. 16 5
      antbuilder/industry/hospitalV2/components/deposit/index.js

+ 16 - 5
antbuilder/industry/hospitalV2/components/deposit/index.js

@@ -268,17 +268,28 @@ Component({
 								});
 
 								if (payRes.status === "TRADE_SUCCESS") {
+									// history.push({
+									// 	query: {
+									// 		depositId,
+									// 		color: "#000",
+									// 		backBtnColor: "#000",
+									// 		background: "#fff",
+									// 		inpatientId,
+									// 		hisPatientId: inpatientId,
+									// 	},
+									// 	title: "押金缴纳详情",
+									// 	pageType: "pay-result",
+									// });
+									//  因为押金缴纳完成后,不能获取到收据No,所以需要跳转到押金缴纳记录
 									history.push({
 										query: {
-											depositId,
+											inpatientId,
 											color: "#000",
 											backBtnColor: "#000",
 											background: "#fff",
-											inpatientId,
-											hisPatientId: inpatientId,
 										},
-										title: "押金缴纳详情",
-										pageType: "pay-result",
+										title: "押金缴纳记录",
+										pageType: "deposit-list",
 									});
 								} else {
 									my.showToast({