Zory 6 giorni fa
parent
commit
5f027be785
1 ha cambiato i file con 11 aggiunte e 0 eliminazioni
  1. 11 0
      pages/order/detail.vue

+ 11 - 0
pages/order/detail.vue

@@ -156,6 +156,7 @@
 							:goods-id="orderData.life_goods_id"
 							:refund-total-amount="orderData.pay_money"
 							bind:applyrefund="applyRefund" 
+							bind:refund="handleRefund" 
 							bind:error="onErrors"
 						></pay-button-sdk>
 						<view class="btn full" @click="$dialog.jumpUri('/pages/service/chat/chat?poi='+storeData.poi_id+'&source=apply&order='+orderData.order_sn,1);">立即预约</view>
@@ -242,6 +243,7 @@ export default {
 	created() {
 		this.$scope.applyRefund = this.applyRefund;
 		this.$scope.onPay = this.onPay;
+		this.$scope.handleRefund = this.handleRefund;
 		this.$scope.onErrors = this.onErrors;
 	},
 	onLoad({order}) {
@@ -257,6 +259,15 @@ export default {
 				url:"/pages/order/complaint/complaint?order="+app.order+"&text="+text+"&poi_name="+app.poiData.poi_name+"&poi_address="+app.poiData.poi_address
 			})
 		},
+		handleRefund(event){
+			const { status, result } = event.detail; 
+			console.log("退款",event.detail)
+			if (status === 'success') { 
+				const { refundId, outRefundNo } = result; 
+			} else { 
+				const { errMsg } = result; 
+			} 
+		},
 		orderTs(type){
 			if (type == 1) {
 				app.$refs.tspopup.open()