浏览代码

no message

Tree 2 周之前
父节点
当前提交
80a611b666
共有 1 个文件被更改,包括 22 次插入4 次删除
  1. 22 4
      resources/views/admin/pwa_bonus_log/index.blade.php

+ 22 - 4
resources/views/admin/pwa_bonus_log/index.blade.php

@@ -52,12 +52,18 @@
                                 @foreach($list as $v)
                                     <tr>
                                         <td>{{ $v->id }}</td>
-                                        <td>{{ $v->GameID ?? '-' }}</td>
+                                        <td>
+                                            @if(!empty($v->userID) && !empty($v->GameID))
+                                                <a href="javascript:void(0)" onclick="idFindFunc({{ $v->userID }})">{{ $v->GameID }}</a>
+                                            @else
+                                                {{ $v->GameID ?? '-' }}
+                                            @endif
+                                        </td>
                                         <td>{{ $v->userID ?? '-' }}</td>
                                         <td>{{ $v->Channel ?? '-' }}</td>
-                                        <td>{{ $v->bonus_amount ?? 0 }}</td>
-                                        <td>{{ $v->org_score ?? 0 }}</td>
-                                        <td>{{ $v->now_score ?? 0 }}</td>
+                                        <td>{{ number_format(($v->bonus_amount ?? 0) / 100, 2, '.', '') }}</td>
+                                        <td>{{ number_format(($v->org_score ?? 0) / 100, 2, '.', '') }}</td>
+                                        <td>{{ number_format(($v->now_score ?? 0) / 100, 2, '.', '') }}</td>
                                         <td>{{ $v->ip ?? '-' }}</td>
                                         <td>{{ $v->log_date }}</td>
                                         <td>{{ $v->created_at }}</td>
@@ -75,4 +81,16 @@
             </div>
         </div>
     </div>
+    <script>
+        function idFindFunc(UserID) {
+            layer.open({
+                type: 2,
+                title: '用户控制面板',
+                shadeClose: true,
+                shade: 0.8,
+                area: ['100%', '100%'],
+                content: '/admin/global/id_find?UserID=' + UserID + '&OpenPage=1'
+            });
+        }
+    </script>
 @endsection