|
@@ -122,6 +122,7 @@
|
|
title: '订单详情', // 导航栏 中间的标题
|
|
title: '订单详情', // 导航栏 中间的标题
|
|
},
|
|
},
|
|
clauseData:{},
|
|
clauseData:{},
|
|
|
|
+ againUserId:0,//用户id
|
|
}
|
|
}
|
|
},
|
|
},
|
|
onLoad(option){
|
|
onLoad(option){
|
|
@@ -136,6 +137,9 @@
|
|
}else{
|
|
}else{
|
|
this.listType = option.listType
|
|
this.listType = option.listType
|
|
}
|
|
}
|
|
|
|
+ this.$api.getStorage().then((resolve) =>{
|
|
|
|
+ this.againUserId = resolve.userID
|
|
|
|
+ })
|
|
this.getHeaderTopHeight()
|
|
this.getHeaderTopHeight()
|
|
this.initOrderDetaileData()
|
|
this.initOrderDetaileData()
|
|
},
|
|
},
|
|
@@ -222,13 +226,13 @@
|
|
this.getOrderPaymentValidation(data)
|
|
this.getOrderPaymentValidation(data)
|
|
break;
|
|
break;
|
|
case 'again':
|
|
case 'again':
|
|
- this.handOrderAgain(data.orderId,data.serviceProviderId);
|
|
|
|
|
|
+ this.handOrderAgain(data.orderId);
|
|
break
|
|
break
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- handOrderAgain(id,serviceid){
|
|
|
|
|
|
+ handOrderAgain(id){
|
|
this.aganOrderID = id;
|
|
this.aganOrderID = id;
|
|
- this.SellerService.SellerCreateOrderAgain({orderId:this.aganOrderID,serviceProviderId:serviceid,confirmFlag:0}).then(res =>{
|
|
|
|
|
|
+ this.SellerService.SellerCreateOrderAgain({orderId:this.aganOrderID,userId:this.againUserId,confirmFlag:0}).then(res =>{
|
|
if(res.code==0){
|
|
if(res.code==0){
|
|
this.$api.setStorage('orderUserInfo',{clubID:res.data.clubId,againBuyProductIds:res.data.againBuyProductIds,userID:res.data.userId})
|
|
this.$api.setStorage('orderUserInfo',{clubID:res.data.clubId,againBuyProductIds:res.data.againBuyProductIds,userID:res.data.userId})
|
|
this.$api.navigateTo('/seller/pages/cart/cart');
|
|
this.$api.navigateTo('/seller/pages/cart/cart');
|