| <!DOCTYPE HTML> | 
| <html xmlns:th="http://www.thymeleaf.org" xmlns:matrix="http://www.w3.org/1999/xhtml"> | 
| <head> | 
|     <meta charset="utf-8"> | 
|     <META HTTP-EQUIV="Pragma" CONTENT="no-cache"> | 
|     <meta name="renderer" content="webkit|ie-comp|ie-stand"> | 
|     <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | 
|     <meta name="viewport" | 
|           content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/> | 
|     <meta http-equiv="Cache-Control" content="no-siteapp"/> | 
|     <!-- 本框架基本脚本和样式 --> | 
|     <script type="text/javascript" | 
|             th:src="@{/js/plugin/jquery-2.1.4.min.js}"></script> | 
|     <script type="text/javascript" | 
|             th:src="@{/js/systools/MBase.js}"></script> | 
| </head> | 
| <body class=" container-fluid"> | 
|   | 
| <div class="pd-10"> | 
|     <!-- 搜索框部分start --> | 
|     <input autocomplete="off"   type="hidden" id="paramId" name="paramId" th:value="${param.userId}"> | 
|   | 
|     <div class="row"> | 
|         <div class="col-sm-12"> | 
|             <table id="mgrid"> | 
|                 <thead> | 
|                 <tr> | 
|                     <th data-checkbox="true"></th> | 
|                     <th data-formatter="MGrid.indexfn" data-align="center" data-width="30px">序号</th> | 
|                     <th data-field="createTime" data-formatter="MGrid.getTime">创建时间</th> | 
|                     <th data-field="businessType" data-formatter="buildType">类型</th> | 
|                     <th data-field="score" data-formatter="buildScore">积分</th> | 
|                     <th data-field="residueScore">剩余积分</th> | 
|                 </tr> | 
|                 </thead> | 
|             </table> | 
|         </div> | 
|     </div> | 
| </div> | 
| <script type="text/javascript" | 
|         th:src="@{/js/systools/MJsBase.js}"></script> | 
| <script type="text/javascript"> | 
|     var paramId = $("#paramId").val(); | 
|     $(function () { | 
|         var delUrl = ""; | 
|         myGrid = MGrid.initGrid({ | 
|             url: basePath + "/admin/bizUserScore/getScoreFlowList/" + paramId, | 
|             delUrl: delUrl, | 
|         }); | 
|   | 
|     }); | 
|   | 
|     function buildScore(_value, row, index) { | 
|         if (row.businessType == 1) { | 
|             return "+" + _value; | 
|         } else if (row.businessType == 2) { | 
|             return "-" + _value; | 
|         } | 
|         return "异常数据"; | 
|     } | 
|   | 
|     function buildType(_value) { | 
|         if (_value == 1) { | 
|             return "获得积分" | 
|         } else if (_value == 2) { | 
|             return "兑换积分" | 
|         } | 
|         return "" | 
|     } | 
|   | 
| </script> | 
| </body> | 
| </html> |