|
|
@@ -33,8 +33,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
{field: 'bank_card', title: __('Bank_card'), operate: 'LIKE'},
|
|
|
{field: 'account_name', title: __('Account_name'), operate: false},
|
|
|
{field: 'amount', title: __('Amount'), operate: false},
|
|
|
- {field: 'img_url', title: __('充值截图'), formatter: Table.api.formatter.thumb, operate: false},
|
|
|
- {field: 'img_urls', title: __('Url'), formatter: Table.api.formatter.url, visible: false},
|
|
|
+ {field: 'img_url', title: __('充值截图'), events: Table.api.events.image, formatter: Table.api.formatter.image, operate: false},
|
|
|
{field: 'status', title: __("Status"),
|
|
|
searchList: {0:__('待支付'), 100:__('待处理'), 200:__('成功'), 400:__('失败'), 500:__('取消')},
|
|
|
formatter: Table.api.formatter.status
|
|
|
@@ -103,22 +102,6 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
api: {
|
|
|
bindevent: function () {
|
|
|
Form.api.bindevent($("form[role=form]"));
|
|
|
- },
|
|
|
- formatter: {
|
|
|
- thumb: function (value, row, index) {
|
|
|
- var html = '';
|
|
|
- html = '<a href="' + row.img_url + '" target="_blank"><img src="' + row.img_url + '" alt="" style="max-height:60px;max-width:120px"></a>';
|
|
|
- return '<div style="width:120px;margin:0 auto;text-align:center;overflow:hidden;white-space: nowrap;text-overflow: ellipsis;">' + html + '</div>';
|
|
|
- },
|
|
|
- // url: function (value, row, index) {
|
|
|
- // return '<a href="' + row.img_url + '" target="_blank" class="label bg-green">' + row.url + '</a>';
|
|
|
- // },
|
|
|
- // filename: function (value, row, index) {
|
|
|
- // return '<div style="width:150px;margin:0 auto;text-align:center;overflow:hidden;white-space: nowrap;text-overflow: ellipsis;">' + Table.api.formatter.search.call(this, value, row, index) + '</div>';
|
|
|
- // },
|
|
|
- // mimetype: function (value, row, index) {
|
|
|
- // return '<div style="width:80px;margin:0 auto;text-align:center;overflow:hidden;white-space: nowrap;text-overflow: ellipsis;">' + Table.api.formatter.search.call(this, value, row, index) + '</div>';
|
|
|
- // },
|
|
|
}
|
|
|
}
|
|
|
};
|