wzy
2021-01-13 2ca19d805dcbe5f0796067c1a91fbb890804e1eb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
 
 
 
 
<!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>