feat: 完善协议管理、师傅资质认证、分账配置并完成测试环境全量部署与同步
这个提交包含在:
@@ -202,6 +202,50 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
||||
Controller.api.bindevent();
|
||||
},
|
||||
detail: function () {
|
||||
var escapeHtml = function (str) {
|
||||
return String(str || '').replace(/[&<>"']/g, function (c) {
|
||||
return {'&': '&', '<': '<', '>': '>', '"': '"', "'": '''}[c];
|
||||
});
|
||||
};
|
||||
$(document).off('click', '.js-sync-pay-order').on('click', '.js-sync-pay-order', function () {
|
||||
var $btn = $(this);
|
||||
var id = $btn.data('id');
|
||||
if (!id) return;
|
||||
$btn.prop('disabled', true);
|
||||
Fast.api.ajax({
|
||||
url: 'order/syncpay',
|
||||
type: 'post',
|
||||
data: { pay_order_id: id }
|
||||
}, function () {
|
||||
location.reload();
|
||||
return false;
|
||||
}, function () {
|
||||
$btn.prop('disabled', false);
|
||||
});
|
||||
});
|
||||
$(document).off('click', '.js-retry-refund').on('click', '.js-retry-refund', function () {
|
||||
var $btn = $(this);
|
||||
var id = $btn.data('id');
|
||||
var outNo = $btn.data('outno') || '';
|
||||
if (!id) return;
|
||||
Layer.confirm('确认向微信支付发起(或重试)原路退款?<br><small class="text-muted">商户单号:' + escapeHtml(outNo) + '</small>', {
|
||||
title: '确认原路退款',
|
||||
icon: 3
|
||||
}, function (idx) {
|
||||
Layer.close(idx);
|
||||
$btn.prop('disabled', true);
|
||||
Fast.api.ajax({
|
||||
url: 'order/retryrefund',
|
||||
type: 'post',
|
||||
data: { pay_order_id: id }
|
||||
}, function () {
|
||||
location.reload();
|
||||
return false;
|
||||
}, function () {
|
||||
$btn.prop('disabled', false);
|
||||
});
|
||||
});
|
||||
});
|
||||
},
|
||||
api: {
|
||||
bindevent: function () {
|
||||
|
||||
在新工单中引用
屏蔽一个用户