소스 검색

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

carver 2 년 전
부모
커밋
9464f5f6cb
1개의 변경된 파일5개의 추가작업 그리고 3개의 파일을 삭제
  1. 5 3
      antbuilder/industry/hospitalV2/components/appointment-result/index.js

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

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