From 56f2721eb37bef55fb2f2f2243acb4e944a27cde Mon Sep 17 00:00:00 2001
From: Helius <wangdoubleone@gmail.com>
Date: Thu, 29 Oct 2020 15:47:10 +0800
Subject: [PATCH] modify

---
 src/main/resources/templates/febs/views/modules/member/member.html |   45 ++++++++++++++++-----------------------------
 1 files changed, 16 insertions(+), 29 deletions(-)

diff --git a/src/main/resources/templates/febs/views/modules/member/member.html b/src/main/resources/templates/febs/views/modules/member/member.html
index c7f8eb8..ea333fb 100644
--- a/src/main/resources/templates/febs/views/modules/member/member.html
+++ b/src/main/resources/templates/febs/views/modules/member/member.html
@@ -43,11 +43,11 @@
 </div>
 <!-- 表格操作栏 start -->
 <script type="text/html" id="user-option">
-    <span shiro:lacksPermission="user:view,user:update,user:delete">
-        <span class="layui-badge-dot febs-bg-orange"></span> 无权限
-    </span>
-    <a lay-event="edit" shiro:hasPermission="user:update"><i
-            class="layui-icon febs-edit-area febs-blue">&#xe7a5;</i></a>
+    {{# if(d.certifyStatus == 1) { }}
+        <a lay-event="edit" shiro:hasPermission="member:update"><i class="layui-icon febs-edit-area febs-blue">&#xe7bc;</i></a>
+    {{# } else { }}
+        <a lay-event="see"><i class="layui-icon febs-edit-area febs-blue">&#xe7a5;</i></a>
+    {{# } }}
 </script>
 <!-- 表格操作栏 end -->
 <script data-th-inline="none" type="text/javascript">
@@ -90,17 +90,6 @@
 			    	maxmin: true,
                 });
             }
-            if (layEvent === 'addCoin') {
- 			   febs.modal.open( '拨币', 'modules/member/addCoin/' + data.id, {
-                   btn: ['提交', '取消'],
-                   yes: function (index, layero) {
-                       $('#user-update').find('#submit').trigger('click');
-                   },
-                   btn2: function () {
-                       layer.closeAll();
-                   }
-               });
-             }
             if (layEvent === 'examine') {
   			   febs.modal.open( '个人数据详情', 'modules/member/memberDetailInfo/' + data.inviteId, {
   			    	maxmin: true,
@@ -172,19 +161,17 @@
                                 }, minWidth: 80,align:'center'},
                     {field: 'createTime', title: '注册时间', minWidth: 180,align:'center'},
                     {title: '操作', 
-                    	templet: function (d) {
-                            if (d.certifyStatus === 1) {
-                            	return '<a lay-event="edit" shiro:hasPermission="user:update">审核认证</a>'
-                            	+'<i class="layui-icon febs-edit-area febs-blue">&#xe7a4;</i>'
-                            	+'<a lay-event="addCoin" shiro:hasPermission="user:update">拨币</a>'
-                            }else if(d.certifyStatus === 2){
-                            	return '<a lay-event="see" shiro:hasPermission="user:update">'
-                            	+'<i class="layui-icon febs-edit-area febs-blue">&#xe7a5;</i></a>'
-                            	+'<a lay-event="addCoin" shiro:hasPermission="user:update">拨币</a>'
-                            }else {
-                                return '<a lay-event="addCoin" shiro:hasPermission="user:update">拨币</a>'
-                            }
-                        },minWidth: 200,align:'center'}
+                    	// templet: function (d) {
+                        //     if (d.certifyStatus === 1) {
+                        //     	return '<a lay-event="edit" shiro:hasPermission="user:update">审核认证</a>'
+                        //     	+'<i class="layui-icon febs-edit-area febs-blue">&#xe7a4;</i>'
+                        //     }else {
+                        //     	return '<a lay-event="see" shiro:hasPermission="user:update">'
+                        //     	+'<i class="layui-icon febs-edit-area febs-blue">&#xe7a5;</i></a>'
+                        //     }
+                        // }
+                        toolbar: '#user-option'
+                        ,minWidth: 200,align:'center'}
                 ]]
             });
         }

--
Gitblit v1.9.1