Browse Source

弹窗输入

yijia
娄梦宁 3 years ago
parent
commit
5316f4dc2d
1 changed files with 25 additions and 7 deletions
  1. +25
    -7
      public/assets/js/backend/unishop/order.js

+ 25
- 7
public/assets/js/backend/unishop/order.js View File

@@ -125,16 +125,34 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
events: Table.api.events.operate, events: Table.api.events.operate,
formatter: Table.api.formatter.operate, formatter: Table.api.formatter.operate,
buttons:[ buttons:[
// {
// name: 'refund',
// text: __('Refund'),
// classname: 'btn btn-xs btn-info',
// extend: 'data-toggle="tooltip"',
// icon: 'fa fa-handshake-o',
// url:function(row){
// return "/admin.php/unishop/order/refundShow?id="+row.id+"&refund_fee="+row.total_price;
// },
// confirm:"是否确认退款"
// },
{ {
name: 'refund',
name: 'click',
text: __('Refund'), text: __('Refund'),
classname: 'btn btn-xs btn-info',
extend: 'data-toggle="tooltip"',
icon: 'fa fa-handshake-o',
url:function(row){
return "/admin.php/unishop/order/refundShow?id="+row.id+"&refund_fee="+row.total_price;
classname: 'btn btn-xs btn-info btn-click',
icon: 'fa fa-leaf',
// dropdown: '更多',//如果包含dropdown,将会以下拉列表的形式展示
click: function (data,rowElement) {
Layer.prompt({title: '请输入退款金额', formType: 2}, function(text){
Fast.api.ajax({
url:"/admin.php/unishop/order/refundShow?id="+rowElement.id+"&refund_fee="+text
}, function (data, ret) {
Layer.closeAll();
Layer.alert(ret.msg);
}, function (data, ret) {
});
});
}, },
confirm:"是否确认退款"
}, },
// { // {
// name: 'delivere', // name: 'delivere',


Loading…
Cancel
Save