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: 新闻自动采集脚本
This commit is contained in:
li
2026-03-30 20:16:32 +08:00
commit 1b24994e74
6721 changed files with 1308571 additions and 0 deletions
+68
View File
@@ -0,0 +1,68 @@
define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefined, Backend, Table, Form) {
var Controller = {
index: function () {
// 初始化表格参数配置
Table.api.init({
extend: {
index_url: 'app/app_currency/index' + location.search,
add_url: 'app/app_currency/add',
edit_url: 'app/app_currency/edit',
// del_url: 'app/app_currency/del',
// multi_url: 'app/app_currency/multi',
// import_url: 'app/app_currency/import',
table: 'app_currency',
}
});
var table = $("#table");
// 初始化表格
table.bootstrapTable({
url: $.fn.bootstrapTable.defaults.extend.index_url,
pk: 'id',
sortName: 'weigh',
columns: [
[
{checkbox: true},
{field: 'id', title: __('Id')},
{field: 'name', title: __('Name'), operate: 'LIKE'},
{field: 'full_name', title: __('Full_name'), operate: 'LIKE'},
{field: 'exchange', title: __('Exchange'), operate:'BETWEEN'},
// {field: 'suffix', title: __('Suffix'), operate: 'LIKE'},
{field: 'thumb_image', title: __('Thumb_image'), operate: false, events: Table.api.events.image, formatter: Table.api.formatter.image},
{field: 'process', title: __('Process'), operate:'BETWEEN'},
{field: 'is_reg', title: __('Is_reg'), searchList: {"1":__('Is_reg 1'),"0":__('Is_reg 0')}, formatter: Table.api.formatter.normal},
{field: 'is_wid', title: __('Is_wid'), searchList: {"1":__('Is_wid 1'),"0":__('Is_wid 0')}, formatter: Table.api.formatter.normal},
{field: 'min_widthdraw', title: __('Min_widthdraw'), operate:'BETWEEN'},
{field: 'max_widthdraw', title: __('Max_widthdraw'), operate:'BETWEEN'},
{field: 'is_tran', title: __('Is_tran')},
{field: 'is_otc', title: __('Is_otc'), searchList: {"1":__('Is_otc 1'),"0":__('Is_otc 0')}, formatter: Table.api.formatter.normal},
{field: 'min_hang', title: __('Min_hang'), operate:'BETWEEN'},
{field: 'max_hang', title: __('Max_hang'), operate:'BETWEEN'},
{field: 'status', title: __('Status'), searchList: {"0":__('Status 0'),"1":__('Status 1')}, formatter: Table.api.formatter.status},
{field: 'createtime', title: __('Createtime'), operate:'RANGE', addclass:'datetimerange', autocomplete:false, formatter: Table.api.formatter.datetime},
{field: 'updatetime', title: __('Updatetime'), operate:'RANGE', addclass:'datetimerange', autocomplete:false, formatter: Table.api.formatter.datetime},
{field: 'weigh', title: __('Weigh'), operate: false},
{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();
},
api: {
bindevent: function () {
Form.api.bindevent($("form[role=form]"));
}
}
};
return Controller;
});