From 2aac6723548b2feeaaf28b6652d5cf56b8a31962 Mon Sep 17 00:00:00 2001
From: Helius <wangdoubleone@gmail.com>
Date: Tue, 15 Dec 2020 18:14:55 +0800
Subject: [PATCH] add new vip_detail page

---
 zq-erp/src/main/resources/templates/views/admin/hive/vip/vipInfo-list.html |   30 ++++++++++++++++++++++++++++++
 1 files changed, 30 insertions(+), 0 deletions(-)

diff --git a/zq-erp/src/main/resources/templates/views/admin/hive/vip/vipInfo-list.html b/zq-erp/src/main/resources/templates/views/admin/hive/vip/vipInfo-list.html
index b6f51f1..04df453 100644
--- a/zq-erp/src/main/resources/templates/views/admin/hive/vip/vipInfo-list.html
+++ b/zq-erp/src/main/resources/templates/views/admin/hive/vip/vipInfo-list.html
@@ -142,6 +142,7 @@
                 <th data-field="vipState">会员活跃度</th>
                 <th data-field="arrivalWay">到店途径</th>
                 <th data-field="staffName">健康顾问</th>
+                <th data-field="staffName" data-formatter="buildOperation">操作</th>
             </tr>
             </thead>
         </table>
@@ -168,6 +169,35 @@
 
             });
     });
+
+    var btns=[];
+    btns[0]="";
+    function buildOperation(value, row, index) {
+        var html = "";
+        html += '<a class="text-info" href="javascript:void(0)" onClick="openVipDetail(\''+row.phone+'\')">查看详情</a>&nbsp;&nbsp;'
+        html += '<a class="text-info" href="javascript:void(0)" onClick="openVipDetail2(\''+row.phone+'\')">测试页面</a>&nbsp;&nbsp;'
+        return html;
+    }
+
+    function openVipDetail(value) {
+        layer.full(layer.open({
+            type : 2,
+            title : "会员详情",
+            area : [ MUI.SIZE_L, '450px' ],
+            maxmin : true,
+            content : [ basePath+'/admin/redirect/hive/beautySalon/vip?vipPhone=' + value ]
+        }));
+    }
+
+    function openVipDetail2(value) {
+        layer.full(layer.open({
+            type : 2,
+            title : "会员详情",
+            area : [ MUI.SIZE_L, '450px' ],
+            maxmin : true,
+            content : [ basePath+'/admin/redirect/hive/beautySalon/vip_detail?vipPhone=' + value ]
+        }));
+    }
         function updateVipInfos() {
             if(myGrid.getSelectItemsIds()==""){
                 layer.msg("请至少选择一名会员!", {

--
Gitblit v1.9.1