diff --git a/application/plugins/view/wallet/cash/index.html b/application/plugins/view/wallet/cash/index.html index d648926ed473b17637611728bf9798cb82e5d70e..eb633b941ac9b3314bfe6bfe9dc7b9a1e5d2f573 100755 --- a/application/plugins/view/wallet/cash/index.html +++ b/application/plugins/view/wallet/cash/index.html @@ -65,7 +65,7 @@
- +
@@ -87,15 +87,12 @@ {{/foreach}} {{/if}} - {{if empty($data_list)}} - - - - {{/if}}
操作类型
-
没有相关数据
-
+ + {{if empty($data_list)}} +
没有相关数据
+ {{/if}}
diff --git a/application/plugins/view/wallet/recharge/index.html b/application/plugins/view/wallet/recharge/index.html index 65e9a5d52fc72556f869dceca2add1c3d560b9ea..8e8883a9aeb629dba410009266c829264712fa24 100755 --- a/application/plugins/view/wallet/recharge/index.html +++ b/application/plugins/view/wallet/recharge/index.html @@ -39,7 +39,7 @@
- +
@@ -68,15 +68,12 @@ {{/foreach}} {{/if}} - {{if empty($data_list)}} - - - - {{/if}}
充值单号
-
没有相关数据
-
+ + {{if empty($data_list)}} +
没有相关数据
+ {{/if}}
diff --git a/application/plugins/view/wallet/wallet/index.html b/application/plugins/view/wallet/wallet/index.html index c755b976825126c16297c35da2931c16d5e22eb1..35fee308301afc1c556ecf802c7c3a831a0a6a8d 100755 --- a/application/plugins/view/wallet/wallet/index.html +++ b/application/plugins/view/wallet/wallet/index.html @@ -76,22 +76,24 @@
- +
- + + + - + {{if !empty($data_list)}} {{foreach $data_list as $v}} - + - + + + {{/foreach}} {{/if}} - {{if empty($data_list)}} - - - - {{/if}}
业务类型业务类型 操作类型 金额类型 操作金额(元)原始金额(元)最新金额(元) 变更说明创建时间操作时间
{{$v.business_type_text}}{{$v.business_type_text}} {{if $v['operation_type'] eq 0}} {{$v.operation_type_text}} @@ -106,22 +108,25 @@ {{elseif $v['operation_type'] eq 1}} + {{/if}} - {{$v.money}} + {{$v.operation_money}} {{$v.msg}} + {{$v.original_money}} + + {{$v.latest_money}} + {{$v.msg|raw}} {{$v.add_time_text}}
-
没有相关数据
-
+ + {{if empty($data_list)}} +
没有相关数据
+ {{/if}}
diff --git a/application/plugins/view/wallet/walletadmin/index.html b/application/plugins/view/wallet/walletadmin/index.html index 547d5888a7373909bcd37141e9f382a350831de7..554cfe5b8a4db1181902bd534ce4a989b3e8e7f9 100644 --- a/application/plugins/view/wallet/walletadmin/index.html +++ b/application/plugins/view/wallet/walletadmin/index.html @@ -3,12 +3,10 @@
- {{if !isset($params['is_admin_index']) or $params['is_admin_index'] neq 1}} - - 钱包 - 返回 - - {{/if}} + + 钱包 + 返回 +
@@ -82,14 +80,11 @@ {{$v.status_text}} {{$v.add_time_text}} - {{if !isset($params['is_admin_index']) or $params['is_admin_index'] neq 1}} - - - - - - - {{/if}} + + + + + {{/foreach}} {{else /}} diff --git a/application/plugins/view/wallet/walletadmin/saveinfo.html b/application/plugins/view/wallet/walletadmin/saveinfo.html index e3e0a367a24deb3cd0be4bd5078c88baad616628..2b21b0b5aaa22ce1e787c1a19c4fdca25ad807db 100644 --- a/application/plugins/view/wallet/walletadmin/saveinfo.html +++ b/application/plugins/view/wallet/walletadmin/saveinfo.html @@ -50,6 +50,10 @@
+
+ + +
diff --git a/application/plugins/wallet/install.sql b/application/plugins/wallet/install.sql index ebd09d94a570020afd69e3037a4f35d6dadd85e5..f3e2e4e52895cca264e0895ab35048f6df5a9a82 100644 --- a/application/plugins/wallet/install.sql +++ b/application/plugins/wallet/install.sql @@ -37,9 +37,11 @@ CREATE TABLE `s_plugins_wallet_log` ( `user_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '用户id', `wallet_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '钱包id', `business_type` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '业务类型(0系统, 1充值, 2提现, 3消费)', + `money_type` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '金额类型(0正常, 1冻结, 2赠送)', `operation_type` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '操作类型( 0减少, 1增加)', - `money_type` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '金额类型(0有效, 1冻结, 2赠送)', - `money` decimal(10,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '操作金额', + `operation_money` decimal(10,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '操作金额', + `original_money` decimal(10,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '原始金额', + `latest_money` decimal(10,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '最新金额', `msg` char(200) NOT NULL DEFAULT '' COMMENT '变更说明', `add_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '添加时间', PRIMARY KEY (`id`), diff --git a/application/plugins/wallet/service/BaseService.php b/application/plugins/wallet/service/BaseService.php index 4061f57d471c3a0cff5a4b6245c1f7478219a77e..c93ebe7f22dcff57af45b966515841bb96b4110a 100755 --- a/application/plugins/wallet/service/BaseService.php +++ b/application/plugins/wallet/service/BaseService.php @@ -420,6 +420,9 @@ class BaseService // 金额类型 $v['money_type_text'] = (isset($v['money_type']) && isset($money_type_list[$v['money_type']])) ? $money_type_list[$v['money_type']]['name'] : '未知'; + // 操作原因 + $v['msg'] = empty($v['msg']) ? '' : str_replace("\n", '
', $v['msg']); + // 创建时间 $v['add_time_text'] = empty($v['add_time']) ? '' : date('Y-m-d H:i:s', $v['add_time']); } diff --git a/application/plugins/wallet/service/WalletService.php b/application/plugins/wallet/service/WalletService.php index 0604e9239a904867fcded83c4fd7bbcdeabfb3be..6b76cb116c0eafecfa2dc6491fe1ca94c7ea4bdd 100644 --- a/application/plugins/wallet/service/WalletService.php +++ b/application/plugins/wallet/service/WalletService.php @@ -240,7 +240,9 @@ class WalletService 'business_type' => isset($params['business_type']) ? intval($params['business_type']) : 0, 'operation_type' => isset($params['operation_type']) ? intval($params['operation_type']) : 0, 'money_type' => isset($params['money_type']) ? intval($params['money_type']) : 0, - 'money' => isset($params['money']) ? PriceNumberFormat($params['money']) : 0.00, + 'operation_money' => isset($params['operation_money']) ? PriceNumberFormat($params['operation_money']) : 0.00, + 'original_money' => isset($params['original_money']) ? PriceNumberFormat($params['original_money']) : 0.00, + 'latest_money' => isset($params['latest_money']) ? PriceNumberFormat($params['latest_money']) : 0.00, 'msg' => empty($params['msg']) ? '系统' : $params['msg'], 'add_time' => time(), ]; @@ -330,6 +332,9 @@ class WalletService ['field' => 'frozen_money', 'money_type' => 1], ['field' => 'give_money', 'money_type' => 2], ]; + + // 操作原因 + $operation_msg = empty($params['msg']) ? '' : ' [ '.$params['msg'].' ]'; foreach($money_field as $v) { // 有效金额 @@ -341,8 +346,10 @@ class WalletService 'business_type' => 0, 'operation_type' => ($wallet[$v['field']] < $data[$v['field']]) ? 1 : 0, 'money_type' => $v['money_type'], - 'money' => ($wallet[$v['field']] < $data[$v['field']]) ? PriceNumberFormat($data[$v['field']]-$wallet[$v['field']]) : PriceNumberFormat($wallet[$v['field']]-$data[$v['field']]), - 'msg' => '管理员操作', + 'operation_money' => ($wallet[$v['field']] < $data[$v['field']]) ? PriceNumberFormat($data[$v['field']]-$wallet[$v['field']]) : PriceNumberFormat($wallet[$v['field']]-$data[$v['field']]), + 'original_money' => $wallet[$v['field']], + 'latest_money' => $data[$v['field']], + 'msg' => '管理员操作'.$operation_msg, ]; if(!self::WalletLogInsert($log_data)) { diff --git a/public/static/plugins/css/wallet/index/common.css b/public/static/plugins/css/wallet/index/common.css index 109835221850ea7039fa2977667c65a48b6ba972..1ce33da30762e9ffbe7269ab3e9c77a3150e8672 100644 --- a/public/static/plugins/css/wallet/index/common.css +++ b/public/static/plugins/css/wallet/index/common.css @@ -141,7 +141,9 @@ .user-content-body .data-list { margin-top: 10px; } +.user-content-body .data-list .money-bold { + font-weight: 700; +} .user-content-body .data-list .money { color: #E4393C; - font-weight: 700; } \ No newline at end of file diff --git a/public/static/plugins/css/wallet/index/wallet.css b/public/static/plugins/css/wallet/index/wallet.css index 14e71e3a49e6a85a5ea70ee5a3fb25b8b6444d11..fb3f849eaa8702c221820c3b89a77983ab23eeb6 100644 --- a/public/static/plugins/css/wallet/index/wallet.css +++ b/public/static/plugins/css/wallet/index/wallet.css @@ -6,4 +6,7 @@ } .user-content-body .data-list .operation-increase-icon { color: #0a9610; +} +.user-content-body .data-list .operation-msg { + width: 30%; } \ No newline at end of file