Bladeren bron

commit -m 修复分享订单bug

zhengjinyi 4 jaren geleden
bovenliggende
commit
cd1da282d2

+ 2 - 3
pages/user/order/order-sharedetails.vue

@@ -73,15 +73,14 @@
 		},
 		onLoad(option){
 			this.orderID = option.orderID
-			// this.orderID = 11315
+			this.userID = option.userId
 			this.initOrderDetaileData()
 		},
 		methods: {
 			initOrderDetaileData(){//初始化页面数据@参数:订单ID
-				this.OrderService.QueryOrderDetails({ orderID : this.orderID }).then(response =>{
+				this.OrderService.QueryOrderDetails({ orderID : this.orderID,userId : this.userID }).then(response =>{
 					let resData = response.data;
 					this.isRequest = true
-					this.userID = resData.order.userID
 					this.status = resData.order.status
 					this.addressData = resData.userInfo
 					this.information = resData.order

+ 1 - 1
pages/user/order/order-sharelogin.vue

@@ -74,7 +74,7 @@
 							if(response.data == true){//同为会所运营人员查看订单详情
 								this.$api.navigateTo(`/pages/user/order/order-details?type=share&orderID=${this.orderID}`)
 							}else{//游客第二次查看订单详情
-								this.$api.redirectTo(`/pages/user/order/order-sharedetails?orderID=${this.orderID}`)
+								this.$api.redirectTo(`/pages/user/order/order-sharedetails?orderID=${this.orderID}&userId=${this.userID}`)
 							}
 						}else if(response.code === -2){
 							this.$util.modal('提示',response.msg,'确定','',false,() =>{})

+ 1 - 1
pages/user/order/orderShareLogin.vue

@@ -53,7 +53,7 @@
 						}
 					this.OrderService.OrderShareCode(params).then(response =>{
 						if (response.code === 0) {//游客第一次查看订单详情
-							this.$api.redirectTo('/pages/user/order/order-sharedetails?orderID='+this.orderID)
+							this.$api.redirectTo(`/pages/user/order/order-sharedetails?orderID=${this.orderID}&userId=${this.userID}`)
 						}else{
 							this.$util.msg(response.msg,2000);
 						}