feat: 初始化雄戈商城服务端代码与Webhook自动部署配置
这个提交包含在:
@@ -0,0 +1,50 @@
|
||||
define(['jquery', 'bootstrap', 'backend', 'form'], function ($, undefined, Backend, Form) {
|
||||
var Controller = {
|
||||
index: function () {
|
||||
new Vue({
|
||||
el: '#huifuConfigIndex',
|
||||
data: {
|
||||
form: {
|
||||
status: '1',
|
||||
env: 'test',
|
||||
miniprogram_channel: 'yansongda',
|
||||
sys_id: '',
|
||||
product_id: '',
|
||||
huifu_id: '',
|
||||
upper_huifu_id: '',
|
||||
merchant_private_key: '',
|
||||
huifu_public_key: '',
|
||||
time_expire: '',
|
||||
pay_scene: '',
|
||||
channel_no: '',
|
||||
goods_desc_tpl: '商城订单{order_sn}',
|
||||
notify_url: '',
|
||||
refund_notify_url_display: '',
|
||||
mini_program_app_id: '',
|
||||
onboard_required: '1',
|
||||
onboard_settle_cycle: 'D1',
|
||||
onboard_settle_batch_no: '300',
|
||||
onboard_notify_url: ''
|
||||
}
|
||||
},
|
||||
mounted: function () {
|
||||
var vm = this;
|
||||
$.getJSON('shopro_huifu/config/index', function (ret) {
|
||||
if (ret.code === 1 && ret.data) {
|
||||
vm.form = Object.assign(vm.form, ret.data);
|
||||
}
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
save: function () {
|
||||
var vm = this;
|
||||
$.post('shopro_huifu/config/save', { row: vm.form }, function (ret) {
|
||||
Backend.api.toastr[ret.code === 1 ? 'success' : 'error'](ret.msg);
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
return Controller;
|
||||
});
|
||||
在新工单中引用
屏蔽一个用户