Bläddra i källkod

用户列表显示收益不含本金

lizhen_gitee 1 år sedan
förälder
incheckning
18817dbe51

+ 1 - 1
application/admin/controller/user/User.php

@@ -51,7 +51,7 @@ class User extends Backend
             ->paginate($limit);
 
         foreach ($list as $row) {
-            $row->getRelation('userwallet')->visible(['score']);
+            $row->getRelation('userwallet')->visible(['score','shouyi']);
         }
 
         $result = ['total' => $list->total(), 'rows' => $list->items()];

+ 1 - 0
application/admin/lang/zh-cn/user/user.php

@@ -42,4 +42,5 @@ return [
     'Intro_level'     => '推荐网等级',
     'Id'              => 'ID',
     'Userwallet.score' => '积分',
+    'Userwallet.shouyi' => '收益(不含本金)',
 ];

+ 1 - 0
public/assets/js/backend/user/user.js

@@ -36,6 +36,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
 //                        {field: 'email', title: __('Email'), operate: 'LIKE'},
                         {field: 'mobile', title: __('Mobile'), operate: 'LIKE'},
                         {field: 'userwallet.score', title: __('Userwallet.score'), operate: false},
+                        {field: 'userwallet.shouyi', title: __('Userwallet.shouyi'), operate: false},
 //                        {field: 'avatar', title: __('Avatar'), operate: 'LIKE', events: Table.api.events.image, formatter: Table.api.formatter.image},
 //                        {field: 'level', title: __('Level')},
 //                        {field: 'gender', title: __('Gender')},