Browse Source

fix: 待支付状态更新

carver 2 years ago
parent
commit
f5ba5505ec

+ 1 - 1
antbuilder/industry/hospital/hooks/index.js

@@ -29,7 +29,7 @@ registerHooks({
 					code: ["code"],
 					// Http返回数据中的error message字段名称
 					msg: ["msg"],
-					miniVersion: globalExt.miniVersion || "0.0.40",
+					miniVersion: globalExt.miniVersion || "0.0.41",
 				});
 				monitor.setCommonInfo({
 					tag: this.globalData.appId,

+ 5 - 6
antbuilder/industry/hospitalV2/components/hospital-payment-detail/index.js

@@ -107,8 +107,9 @@ Component({
 			const status0OrderItems = JSON.parse(
 				decodeURIComponent(orderItems || "")
 			);
-			delete send["orderItems"];
-			payDetail(send).then((data) => {
+			const newSend = Object.assign({}, send);
+			delete newSend["orderItems"];
+			payDetail(newSend).then((data) => {
 				const payDetails = JSON.parse(data.payDetails || "{}");
 				const detail = payDetails["医保支付"] || {};
 				let total = 0;
@@ -219,11 +220,9 @@ Component({
 			} catch (error) {
 			} finally {
 				my.hideLoading();
+				// 支付成功刷新页面
+				this.payDetail(this.$page.data.query); // 支付成功以后,发起消息订阅
 			}
-			// 支付成功刷新页面
-
-			this.payDetail(this.$page.data.query); // 支付成功以后,发起消息订阅
-
 			// this.subscribe.subscribeMessage();
 		},
 

+ 1 - 1
config.by.prod.json

@@ -14,7 +14,7 @@
 			"debugTemplateUuid": "",
 			"env": "prod",
 			"terminal": 24,
-			"miniVersion": "0.0.40"
+			"miniVersion": "0.0.41"
 		}
 	}
 }

+ 1 - 1
config.by.qa.json

@@ -14,7 +14,7 @@
 			"debugTemplateUuid": "",
 			"env": "qa",
 			"terminal": 24,
-			"miniVersion": "0.0.40"
+			"miniVersion": "0.0.41"
 		}
 	}
 }

+ 1 - 1
config.json

@@ -14,7 +14,7 @@
 			"debugTemplateUuid": "",
 			"env": "qa",
 			"terminal": 24,
-			"miniVersion": "0.0.40"
+			"miniVersion": "0.0.41"
 		}
 	}
 }