| 
  
 | 
  
 | 
  
 | 
<!DOCTYPE html> 
 | 
<html xmlns:th="http://www.thymeleaf.org" xmlns:matrix="http://www.w3.org/1999/xhtml"> 
 | 
<head> 
 | 
<meta charset="utf-8"> 
 | 
<meta name="viewport" content="width=device-width, initial-scale=1.0"> 
 | 
<meta name="renderer" content="webkit"> 
 | 
<meta http-equiv="Cache-Control" content="no-siteapp" /> 
 | 
<title>主页</title> 
 | 
<link rel="shortcut icon" href="favicon.ico"> 
 | 
<!--[if lt IE 8]> 
 | 
    <meta http-equiv="refresh" content="0;ie.html" /> 
 | 
    <![endif]--> 
 | 
  
 | 
<!-- 本框架基本脚本和样式 --> 
 | 
<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> 
 | 
<!-- 页面单独引入样式 --> 
 | 
<link href="${path }/resource/css/index.css" rel="stylesheet"> 
 | 
</head> 
 | 
<script type="text/javascript" th:src="@{/js/systools/MJsBase.js}"></script><script type="text/javascript"> 
 | 
    var myForm=MForm.initForm({ 
 | 
        invokeurl:basePath+"/admin/ddcrm/registerVipInfo" 
 | 
         
 | 
    }); 
 | 
     
 | 
    </script> 
 | 
<body class="fixed-sidebar full-height-layout gray-bg" 
 | 
    style="overflow: hidden"> 
 | 
    <form method="post" id="dataform" 
 | 
            onsubmit="javascripr:return false;" action=""  id="dataform" class="dataform form-inline">     
 | 
        <div> 
 | 
            <br> 
 | 
            手机号码:<input autocomplete="off"   type="text" id="phone" name="phone"/> 
 | 
            姓名:<input autocomplete="off"   type="text" id="vipName" name="vipName"/> 
 | 
            性别: 
 | 
            <select  id="sex" name="sex"> 
 | 
                <option value="女">女</option> 
 | 
                <option value="男">男</option> 
 | 
                 
 | 
            </select> 
 | 
            <br> 
 | 
            生日:<input autocomplete="off"   type="date" id="voBirthday" name="voBirthday"> 
 | 
            地址:<input autocomplete="off"   type="text" id="addr" name="addr"/> 
 | 
            <br> 
 | 
             
 | 
            星座: <select id="constell" name="constell"> 
 | 
            <c:forEach items="${ xz}" var="item"> 
 | 
                <option value="${item.name}">${item.name}</option> 
 | 
            </c:forEach> 
 | 
        </select> 
 | 
            生肖: 
 | 
            <select  id="animalSign" name="animalSign"> 
 | 
                <c:forEach items="${ sx}" var="item"> 
 | 
                    <option value="${item.name}">${item.name}</option> 
 | 
                </c:forEach> 
 | 
            </select> 
 | 
            <br> 
 | 
            到店途径: <select name="arrivalWay"> 
 | 
                        <c:forEach items="${ddtj}" var="item"> 
 | 
                            <option value="${item.name}">${item.name}</option> 
 | 
                        </c:forEach> 
 | 
                    </select> 
 | 
            会员类型: 
 | 
            <select id="vipType" name="vipType"> 
 | 
                <option value="有卡会员">无卡会员</option> 
 | 
                <option value="无卡会员">有卡会员</option> 
 | 
            </select> 
 | 
            <br> 
 | 
            入会时间:<input autocomplete="off"   type="date" id="voInDate" name="voInDate"/> 
 | 
            备注:<input autocomplete="off"   type="text" id="remark" name="remark"/> 
 | 
            会员等级: 
 | 
              
 | 
                <select id="vipLevelId" name="vipLevelId"> 
 | 
                    <c:forEach items="${level}" var="item" > 
 | 
                        <option value="${item.id}">${item.levelName}</option> 
 | 
                    </c:forEach> 
 | 
                </select> 
 | 
             
 | 
            余额: 
 | 
            <input autocomplete="off"   type="text" id="bal" name="bal" /> 
 | 
        </div> 
 | 
        <div> 
 | 
            <button type="button"  onclick="myForm.submit()" class="btn btn-success radius EXSerchBtn " 
 | 
                "> 
 | 
                <i class="fa fa-search"> </i> 下一步 
 | 
            </button> 
 | 
        </div> 
 | 
    </form> 
 | 
</body> 
 | 
    <script type="text/javascript" th:src="@{/js/systools/MJsBase.js}"></script><script type="text/javascript"> 
 | 
     
 | 
     
 | 
     
 | 
        /** 
 | 
        *会员注册 
 | 
        **/ 
 | 
         function registerVipInfo(){ 
 | 
            $.AjaxProxy({ 
 | 
                p : { 
 | 
                    vipNo : $("#vipNo").val(), 
 | 
                    vipName : $("#vipName").val(), 
 | 
                    sex : $("#sex").val(), 
 | 
                    birthday1 : $("#birthday1").val(), 
 | 
                    addr : $("#addr").val(), 
 | 
                    constell : $("#constell").val(), 
 | 
                    animalSign : $("#animalSign").val(), 
 | 
                    arrivalWay : $("#arrivalWay").val(), 
 | 
                    vipType : $("#vipType").val(), 
 | 
                    inDate : $("#inDate").val(), 
 | 
                    remark : $("#remark").val() 
 | 
                } 
 | 
            }).invoke(basePath+"/admin/ddcrm/registerVipInfo", function(loj) { 
 | 
                if (loj.getRowCount() == 0) { 
 | 
                    layer.msg('注册失败', {icon: 5}); 
 | 
                    return false; 
 | 
                } 
 | 
                window.location.href=basePath+"/admin/ddcrm/redirect/hive/beautySalon/cardInfo"; 
 | 
            }); 
 | 
        }   
 | 
    </script> 
 | 
</html> 
 |