| | |
| | | $("#levelName").html(loj.getString(0, "vipLevel.levelName")); |
| | | |
| | | vipId = loj.getString(0, "id"); |
| | | updateHistory(); |
| | | if (isActive) { |
| | | $(".isActive").removeAttr("disabled"); |
| | | isActive = false; |
| | |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 更新最近查询客户 |
| | | */ |
| | | 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); |
| | | }); |
| | | } |
| | | |
| | | |
| | | /* |
| | | * 点击切换最近查询用户 |
| | |
| | | } |
| | | |
| | | |
| | | 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] |
| | | })); |
| | | } |
| | | |