Browse Source

fix: 调整预约成功后调起订阅的步骤

carver 2 years ago
parent
commit
9464f5f6cb

+ 5 - 3
antbuilder/industry/hospitalV2/components/appointment-result/index.js

@@ -104,7 +104,7 @@ Component({
 			orderDetail({
 			orderDetail({
 				orderId: query.orderId,
 				orderId: query.orderId,
 			}).then((data) => {
 			}).then((data) => {
-        console.log('data====', data);
+				console.log("data====", data);
 				this.setData({
 				this.setData({
 					result: Object.assign(data, cuttingDate(data.startTime)),
 					result: Object.assign(data, cuttingDate(data.startTime)),
 				});
 				});
@@ -180,7 +180,8 @@ Component({
 
 
 		// 消息订阅授权
 		// 消息订阅授权
 		grantSubscribe() {
 		grantSubscribe() {
-			this.subscribe.subscribeMessage();
+			// this.subscribe.subscribeMessage();
+			console.log("预约成功后调起消息订阅授权");
 		},
 		},
 
 
 		// 发起倒计时
 		// 发起倒计时
@@ -225,7 +226,8 @@ Component({
 			).then(() => {
 			).then(() => {
 				this.orderDetail(); // 支付成功之后发起消息订阅授权
 				this.orderDetail(); // 支付成功之后发起消息订阅授权
 
 
-				this.subscribe.subscribeMessage();
+				this.grantSubscribe();
+				// this.subscribe.subscribeMessage();
 			});
 			});
 			/* 服务办结,挂号缴费 */
 			/* 服务办结,挂号缴费 */