瀏覽代碼

弹窗输入

yijia
娄梦宁 3 年之前
父節點
當前提交
5316f4dc2d
共有 1 個檔案被更改,包括 25 行新增7 行删除
  1. +25
    -7
      public/assets/js/backend/unishop/order.js

+ 25
- 7
public/assets/js/backend/unishop/order.js 查看文件

@@ -125,16 +125,34 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
events: Table.api.events.operate,
formatter: Table.api.formatter.operate,
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'),
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',


Loading…
取消
儲存