Commit 54647312 by kyle

退款

parent 182bc34c
......@@ -193,10 +193,6 @@ export default {
userRefundCourseDtl(params){
return request(`${cffpURL}/course/userRefundCourseDtl`, "POST", params)
},
// 支付宝支付->app退款接口
aliAppPayRefund(params){
return request(`${apiURL}/aliPay/aliAppPayRefund`, "POST", params)
},
//查询证件类型
erpInitialize(params){
return request(`${apiURL}/erp/erpInitialize`, "POST", params)
......@@ -289,8 +285,8 @@ export default {
saveDigitalSignatures(params){
return request(`${cffpURL}/partner/saveDigitalSignatures`, "POST", params)
},
// 微信退款
wxRefund(params){
return request(`${apiURL}/pay/wxRefund`, "POST", params)
// 退款
unifiedRefund(params){
return request(`${apiURL}/pay/unifiedRefund`, "POST", params)
}
}
......@@ -121,6 +121,7 @@
.detailBtn{
font-size: 24rpx;
color: #4A4A4A;
white-space: nowrap;
}
}
h4{
......
......@@ -127,12 +127,10 @@
refundIntegralExchange:this.dropInfo.refundIntegralExchange,
refundReason:this.dropReasons[this.dropIndex]['dropOptionName']
}
if(this.dropInfo.paymentMethod==='1'){
// 微信
api.wxRefund(param).then(res=>{
api.unifiedRefund(param).then(res=>{
if(res['success']){
uni.navigateTo({
url:`/pages/afterSaleDetail/afterSaleDetail?orderNo=${this.dropInfo.orderNO}&afterSalesFlag=3`
url:`/pages/afterSaleDetail/afterSaleDetail?orderNo=${this.dropInfo.orderNo}&afterSalesFlag=3`
})
}else{
uni.showToast({
......@@ -141,21 +139,6 @@
});
}
})
}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(){
......
......@@ -186,7 +186,7 @@
});
}else{
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,8 +50,8 @@
}
.liBox{
display: flex;
margin: 50px 30px;
padding: 8px 0;
margin: 50rpx 30rpx;
padding: 8rpx 0;
justify-content: space-between;
border-bottom: 1px solid #F2F2F2;
}
......
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