From 3c46485b302f347211d32d4a872a0e4d84a32a1d Mon Sep 17 00:00:00 2001
From: jyy <935090232@qq.com>
Date: Tue, 13 Apr 2021 10:20:17 +0800
Subject: [PATCH] 修改充值卡查询接口格式

---
 zq-erp/src/main/resources/static/js/function/vip.js |   25 +++----------------------
 1 files changed, 3 insertions(+), 22 deletions(-)

diff --git a/zq-erp/src/main/resources/static/js/function/vip.js b/zq-erp/src/main/resources/static/js/function/vip.js
index 06e6fd5..09dfe86 100644
--- a/zq-erp/src/main/resources/static/js/function/vip.js
+++ b/zq-erp/src/main/resources/static/js/function/vip.js
@@ -73,7 +73,6 @@
             $("#levelName").html(loj.getString(0, "vipLevel.levelName"));
 
             vipId = loj.getString(0, "id");
-            updateHistory();
             if (isActive) {
                 $(".isActive").removeAttr("disabled");
                 isActive = false;
@@ -83,25 +82,7 @@
     }
 }
 
-/**
- * 更新最近查询客户
- */
-function updateHistory() {
-    $
-        .AjaxProxy()
-        .invoke(
-            basePath + "/admin/showHistoryUser",
-            function (loj) {
-                var html = "";
-                for (var i = 0; i < loj.getRowCount(); i++) {
-                    html += "<li class='list-group-item'onclick='selectHistory(\""
-                        + loj.getString(i, "phone")
-                        + "\")' >"
-                        + loj.getString(i, "vipName") + "</li>";
-                }
-                $("#historyList").html(html);
-            });
-}
+
 
 /*
  * 点击切换最近查询用户
@@ -222,13 +203,13 @@
 }
 
 
-function openAddService() {
+function openAddService(id) {
     layer.full(layer.open({
         type: 2,
         title: "添加服务单",
         maxmin: true,
         area: [MUI.SIZE_L, '500px'],
-        content: [basePath + '/admin/redirect/hive/beautySalon/servicceAddForm']
+        content: [basePath + '/admin/redirect/hive/beautySalon/servicceAddForm?id='+id]
     }));
 }
 

--
Gitblit v1.9.1