作者 lihan
1 个管道 的构建 通过 耗费 0 秒

退货&退款

... ... @@ -259,7 +259,7 @@ class CenterController extends HomeBaseController
'step' => 6
];
if(Db::name('zj_order')->update($data)) {
$this->success('请等待审核', '', true);
$this->success('请等待审核', url('user/Center/orderList'), true);
}else {
$this->success('提交失败', '', false);
}
... ...
... ... @@ -91,8 +91,20 @@
return false;
}else {
$.ajax({
oid: oid,
cause: $("#cause").val()
url:"{:url('user/Center/refund')}",
data:{
oid: oid,
cause: $("#cause").val()
},
type:"POST",
dataType:"JSON",
success: function (data) {
if(data.data === true) {
window.location.href=data.url;
}else {
alert(data.msg);
}
}
})
}
})
... ...