Commit 54647312 by kyle

退款

parent 182bc34c
...@@ -193,10 +193,6 @@ export default { ...@@ -193,10 +193,6 @@ export default {
userRefundCourseDtl(params){ userRefundCourseDtl(params){
return request(`${cffpURL}/course/userRefundCourseDtl`, "POST", params) return request(`${cffpURL}/course/userRefundCourseDtl`, "POST", params)
}, },
// 支付宝支付->app退款接口
aliAppPayRefund(params){
return request(`${apiURL}/aliPay/aliAppPayRefund`, "POST", params)
},
//查询证件类型 //查询证件类型
erpInitialize(params){ erpInitialize(params){
return request(`${apiURL}/erp/erpInitialize`, "POST", params) return request(`${apiURL}/erp/erpInitialize`, "POST", params)
...@@ -289,8 +285,8 @@ export default { ...@@ -289,8 +285,8 @@ export default {
saveDigitalSignatures(params){ saveDigitalSignatures(params){
return request(`${cffpURL}/partner/saveDigitalSignatures`, "POST", params) return request(`${cffpURL}/partner/saveDigitalSignatures`, "POST", params)
}, },
// 微信退款 // 退款
wxRefund(params){ unifiedRefund(params){
return request(`${apiURL}/pay/wxRefund`, "POST", params) return request(`${apiURL}/pay/unifiedRefund`, "POST", params)
} }
} }
...@@ -121,6 +121,7 @@ ...@@ -121,6 +121,7 @@
.detailBtn{ .detailBtn{
font-size: 24rpx; font-size: 24rpx;
color: #4A4A4A; color: #4A4A4A;
white-space: nowrap;
} }
} }
h4{ h4{
......
...@@ -127,35 +127,18 @@ ...@@ -127,35 +127,18 @@
refundIntegralExchange:this.dropInfo.refundIntegralExchange, refundIntegralExchange:this.dropInfo.refundIntegralExchange,
refundReason:this.dropReasons[this.dropIndex]['dropOptionName'] refundReason:this.dropReasons[this.dropIndex]['dropOptionName']
} }
if(this.dropInfo.paymentMethod==='1'){ api.unifiedRefund(param).then(res=>{
// 微信 if(res['success']){
api.wxRefund(param).then(res=>{ uni.navigateTo({
if(res['success']){ url:`/pages/afterSaleDetail/afterSaleDetail?orderNo=${this.dropInfo.orderNo}&afterSalesFlag=3`
uni.navigateTo({ })
url:`/pages/afterSaleDetail/afterSaleDetail?orderNo=${this.dropInfo.orderNO}&afterSalesFlag=3` }else{
}) uni.showToast({
}else{ title: res['message'],
uni.showToast({ duration: 2000
title: res['message'], });
duration: 2000 }
}); })
}
})
}else if(this.dropInfo.paymentMethod==='2'){
// 支付宝
api.wxRefund(param).then(res=>{
if(res['success']){
uni.navigateTo({
url:`/pages/afterSaleDetail/afterSaleDetail?orderNo=${this.dropInfo.orderNO}&afterSalesFlag=3`
})
}else{
uni.showToast({
title: res['message'],
duration: 2000
});
}
})
}
}, },
// 退款原因 // 退款原因
dropOptionsQuery(){ dropOptionsQuery(){
......
...@@ -186,7 +186,7 @@ ...@@ -186,7 +186,7 @@
}); });
}else{ }else{
uni.navigateTo({ uni.navigateTo({
url:`/pages/orderStatus/orderStatus?orderId=1&fileId=1&orderStatus=2` url:`/pages/orderStatus/orderStatus?orderId=${this.orderId}&fileId=${this.fileId}&orderStatus=2`
}) })
} }
......
...@@ -50,10 +50,10 @@ ...@@ -50,10 +50,10 @@
} }
.liBox{ .liBox{
display: flex; display: flex;
margin: 50px 30px; margin: 50rpx 30rpx;
padding: 8px 0; padding: 8rpx 0;
justify-content: space-between; justify-content: space-between;
border-bottom: 1px solid #F2F2F2; border-bottom: 1px solid #F2F2F2;
} }
.infoBoxtext{ .infoBoxtext{
width: 64px; width: 64px;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment