Files
jyshd_mWtK2/public/assets/js/backend/app/app_currency_user.js
T
li 1b24994e74 feat: 后端全量更新 - 含所有本次需求
- Contract.php: 返回合约账户余额(balance_contract)
- My.php: 地址管理增加BTC/ETH
- AppContract.php: 一键平仓(closeall)
- AppProxy.php: 代理专属注册链接 + 分级权限(L1/L2)
- site.php: 手续费减半(0.018→0.009)
- agent_permission_setup.sql: 代理权限SQL
- crypto_news_crawler.py: 新闻自动采集脚本
2026-03-30 20:16:32 +08:00

69 lines
2.9 KiB
JavaScript
Executable File

define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefined, Backend, Table, Form) {
var Controller = {
index: function () {
// 初始化表格参数配置
Table.api.init({
extend: {
index_url: 'app/app_currency_user/index' + location.search,
// add_url: 'app/app_currency_user/add',
edit_url: 'app/app_currency_user/edit',
// del_url: 'app/app_currency_user/del',
// multi_url: 'app/app_currency_user/multi',
// import_url: 'app/app_currency_user/import',
table: 'app_currency_user',
recharge: 'app/app_currency_user/recharge',
}
});
var table = $("#table");
// 初始化表格
table.bootstrapTable({
url: $.fn.bootstrapTable.defaults.extend.index_url,
pk: 'id',
sortName: 'id',
columns: [
[
{checkbox: true},
{field: 'id', title: __('Id')},
{field: 'daili_name', title: __('所属代理'), operate: 'LIKE'},
{field: 'user_id', title: __('User_id')},
{field: 'user_name', title: __('用户')},
{field: 'coinname', title: __('Curr_id')},
{field: 'num', title: __('现货余额'), operate:'BETWEEN'},
{field: 'num_fb', title: __('法币余额'), operate:'BETWEEN'},
// {field: 'num_lh', title: __('量化余额'), operate:'BETWEEN'},
// {field: 'num_dj', title: __('冻结现货'), operate:'BETWEEN'},
// {field: 'num_fb_dj', title: __('冻结法币'), operate:'BETWEEN'},
// {field: 'num_lh_dj', title: __('冻结量化'), operate:'BETWEEN'},
// {field: 'address', title: "erc20地址", operate: 'LIKE'},
// {field: 'tron_address', title: "trc20地址", operate: 'LIKE'},
{field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate}
]
]
});
// 为表格绑定事件
Table.api.bindevent(table);
},
add: function () {
Controller.api.bindevent();
},
edit: function () {
Controller.api.bindevent();
},
recharge: function () {
Controller.api.bindevent();
},
freeze: function () {
Controller.api.bindevent();
},
api: {
bindevent: function () {
Form.api.bindevent($("form[role=form]"));
}
}
};
return Controller;
});