|
@@ -19,7 +19,28 @@
|
|
|
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
|
|
|
<script src="http://res2.wx.qq.com/open/js/jweixin-1.6.0.js"></script>
|
|
|
</head>
|
|
|
-
|
|
|
+<!--var obj = this;-->
|
|
|
+<!--var data = new FormData();-->
|
|
|
+<!--data.append("file", files[0]);-->
|
|
|
+<!--$.ajax({-->
|
|
|
+<!--type: "post",-->
|
|
|
+<!--url: ctx + "common/upload",-->
|
|
|
+<!--data: data,-->
|
|
|
+<!--cache: false,-->
|
|
|
+<!--contentType: false,-->
|
|
|
+<!--processData: false,-->
|
|
|
+<!--dataType: 'json',-->
|
|
|
+<!--success: function (result) {-->
|
|
|
+<!--if (result.code == web_status.SUCCESS) {-->
|
|
|
+<!--$('#' + obj.id).summernote('insertImage', result.url);-->
|
|
|
+<!--} else {-->
|
|
|
+<!--$.modal.alertError(result.msg);-->
|
|
|
+<!--}-->
|
|
|
+<!--},-->
|
|
|
+<!--error: function (error) {-->
|
|
|
+<!--$.modal.alertWarning("图片上传失败。");-->
|
|
|
+<!--}-->
|
|
|
+<!--});-->
|
|
|
<body>
|
|
|
<div class="zcbj"><img th:src="@{/tuodanweb/images/zcbj.jpg}"/></div>
|
|
|
<div class="zhuce" id="app">
|
|
@@ -28,17 +49,28 @@
|
|
|
<div th:object="${user}">
|
|
|
<input th:value="*{openid}" id="openid" name="openid" type="hidden"/>
|
|
|
<h1 class="zc_title">微信头像</h1>
|
|
|
- <img th:src="*{portraitUrl}" id="portraitUrl" name="portraitUrl"/>
|
|
|
+ <img th:src="*{portraitUrl}" onclick="$('#portraitUrlfile').click()" id="portraitUrlImg" style="width: 16rem;height: 16rem"/>
|
|
|
+ <input type="hidden" name="portraitUrl" th:value="*{portraitUrl}" id="portraitUrl">
|
|
|
+ <input type="file" style="display: none;" id="portraitUrlfile">
|
|
|
<h1 class="zc_title">微信昵称</h1>
|
|
|
- <input type="text" class="date2" th:value="*{wechatName}" id="wechatName" name="wechatName">
|
|
|
+ <input type="text" class="date2 k" th:value="*{wechatName}" id="wechatName" name="wechatName">
|
|
|
+
|
|
|
+ <h1 class="zc_title">相册</h1>
|
|
|
+ <div id="xiangcheList" >
|
|
|
+ <img th:each="album : ${user.albumList}" th:src="${album}" style="width: 10rem;height: 10rem" class="xcimg" onclick="xcRemove(this);"/>
|
|
|
+ <img th:if="${user.albumList.size < 5}" class="file_add" onclick="$('#xiangchefile').click()" />
|
|
|
+ </div>
|
|
|
+ <input type="hidden" name="album" id="album">
|
|
|
+ <input type="file" style="display: none;" id="xiangchefile">
|
|
|
+
|
|
|
<h1 class="zc_title">真实姓名</h1>
|
|
|
- <input type="text" class="date2" th:value="*{name}" name="name">
|
|
|
+ <input type="text" class="date2 k" th:value="*{name}" name="name">
|
|
|
<h1 class="zc_title">身份证号</h1>
|
|
|
- <input type="text" class="date2" th:value="*{idCard}" name="idCard" onchange="cardtest(this.value)">
|
|
|
+ <input type="text" class="date2 k" th:value="*{idCard}" name="idCard" onchange="cardtest(this.value)">
|
|
|
<h1 class="zc_title">出生年月</h1>
|
|
|
- <input type="text" class="date2" th:value="*{birthDate}" name="birthDate" id="birthDate" readonly>
|
|
|
+ <input type="text" class="date2 k" th:value="*{birthDate}" name="birthDate" id="birthDate" readonly>
|
|
|
<h1 class="zc_title">年龄</h1>
|
|
|
- <input type="text" class="date2" th:value="*{age}" name="age" id="age" readonly>
|
|
|
+ <input type="text" class="date2 k" th:value="*{age}" name="age" id="age" readonly>
|
|
|
<h1 class="zc_title">您的性别</h1>
|
|
|
<div class="xingbie">
|
|
|
<span class="man"><input type="radio" name="sex" value="1" th:checked="*{sex == '1'}"/>男</span>
|
|
@@ -63,20 +95,36 @@
|
|
|
<option value="摩羯座" th:selected="*{constellation == '摩羯座'}">摩羯座</option>
|
|
|
</select>
|
|
|
<h1 class="zc_title">身高CM</h1>
|
|
|
- <input type="text" class="date2" name="height" th:value="*{height}">
|
|
|
+ <input type="text" class="date2 k" name="height" th:value="*{height}">
|
|
|
|
|
|
<h1 class="zc_title">婚姻状态</h1>
|
|
|
- <div class="xingbie">
|
|
|
- <span class="man"><input type="radio" name="isMarried" value="未婚" th:checked="*{isMarried == '未婚'}"/>未婚</span>
|
|
|
- <span class="woman"><input type="radio" name="isMarried" value="离异" th:checked="*{isMarried == '离异'}"/>离异</span>
|
|
|
- <div class="clear"></div>
|
|
|
- </div>
|
|
|
+ <select class="xingzuo" name="isMarried">
|
|
|
+ <option value="未婚" th:selected="*{isMarried == '未婚'}">未婚</option>
|
|
|
+ <option value="离异未育" th:selected="*{isMarried == '离异未育'}">离异未育</option>
|
|
|
+ <option value="离异不带小孩" th:selected="*{isMarried == '离异不带小孩'}">离异不带小孩</option>
|
|
|
+ <option value="离异带女孩" th:selected="*{isMarried == '离异带女孩'}">离异带女孩</option>
|
|
|
+ <option value="离异带男孩" th:selected="*{isMarried == '离异带男孩'}">离异带男孩</option>
|
|
|
+ <option value="丧偶" th:selected="*{isMarried == '丧偶'}">丧偶</option>
|
|
|
+ </select>
|
|
|
<h1 class="zc_title">体重Kg</h1>
|
|
|
- <input type="text" class="date2" name="weight" th:value="*{weight}">
|
|
|
+ <input type="text" class="date2 k" name="weight" th:value="*{weight}">
|
|
|
|
|
|
<h1 class="zc_title">性格介绍</h1>
|
|
|
<div class="xinggeJS">
|
|
|
- <textarea name="character" th:value="*{character}">[[*{character}]]</textarea>
|
|
|
+ <textarea name="character" th:value="*{character}" id="character">[[*{character}]]</textarea>
|
|
|
+ 性格:
|
|
|
+ <input type="button" value="浪漫迷人" class="character">
|
|
|
+ <input type="button" value="成熟稳重" class="character">
|
|
|
+ <input type="button" value="浪漫风趣" class="character">
|
|
|
+ <input type="button" value="乐天达观" class="character">
|
|
|
+ <input type="button" value="活泼可爱" class="character">
|
|
|
+ <input type="button" value="忠厚老实" class="character">
|
|
|
+ <input type="button" value="淳朴害羞" class="character">
|
|
|
+ <input type="button" value="温柔体贴" class="character">
|
|
|
+ <input type="button" value="多愁善感" class="character">
|
|
|
+ <input type="button" value="新潮时尚" class="character">
|
|
|
+ <input type="button" value="热辣动感" class="character">
|
|
|
+ <input type="button" value="豪放不羁" class="character">
|
|
|
</div>
|
|
|
<h1 class="zc_title">工作性质</h1>
|
|
|
<select class="xingzuo" name="workNature">
|
|
@@ -95,19 +143,84 @@
|
|
|
</select>
|
|
|
<h1 class="zc_title">学历</h1>
|
|
|
<select class="xingzuo" name="education">
|
|
|
- <option value="博士研究生" th:selected="*{education == '博士研究生'}">博士研究生</option>
|
|
|
- <option value="硕士研究生" th:selected="*{education == '硕士研究生'}">硕士研究生</option>
|
|
|
- <option value="本科" th:selected="*{education == '本科'}">本科</option>
|
|
|
- <option value="大专" th:selected="*{education == '大专'}">大专</option>
|
|
|
+ <option value="初中" th:selected="*{education == '初中'}">初中</option>
|
|
|
+ <option value="技校" th:selected="*{education == '技校'}">技校</option>
|
|
|
<option value="高中" th:selected="*{education == '高中'}">高中</option>
|
|
|
<option value="中专" th:selected="*{education == '中专'}">中专</option>
|
|
|
- <option value="初中" th:selected="*{education == '初中'}">初中</option>
|
|
|
- <option value="小学" th:selected="*{education == '小学'}">小学</option>
|
|
|
+ <option value="大专" th:selected="*{education == '大专'}">大专</option>
|
|
|
+ <option value="专升本" th:selected="*{education == '专升本'}">专升本</option>
|
|
|
+ <option value="本科" th:selected="*{education == '本科'}">本科</option>
|
|
|
+ <option value="硕士" th:selected="*{education == '硕士'}">硕士</option>
|
|
|
+ <option value="博士" th:selected="*{education == '博士'}">博士</option>
|
|
|
</select>
|
|
|
<h1 class="zc_title">职业</h1>
|
|
|
- <div class="xinggeJS">
|
|
|
- <textarea name="occupation" th:value="*{character}">[[*{character}]]</textarea>
|
|
|
- </div>
|
|
|
+ <select class="xingzuo" name="occupation">
|
|
|
+ <option value="上班族" th:selected="*{occupation == '上班族'}">上班族</option>
|
|
|
+ <option value="自由职业" th:selected="*{occupation == '自由职业'}">自由职业</option>
|
|
|
+ <option value="在校学生" th:selected="*{occupation == '在校学生'}">在校学生</option>
|
|
|
+ <option value="军人" th:selected="*{occupation == '军人'}">军人</option>
|
|
|
+ <option value="求职中" th:selected="*{occupation == '求职中'}">求职中</option>
|
|
|
+ <option value="个体" th:selected="*{occupation == '个体'}">个体</option>
|
|
|
+ <option value="公司高管" th:selected="*{occupation == '公司高管'}">公司高管</option>
|
|
|
+ <option value="公务员" th:selected="*{occupation == '公务员'}">公务员</option>
|
|
|
+ <option value="程序员" th:selected="*{occupation == '程序员'}">程序员</option>
|
|
|
+ <option value="教师" th:selected="*{occupation == '教师'}">教师</option>
|
|
|
+ <option value="医生" th:selected="*{occupation == '医生'}">医生</option>
|
|
|
+ <option value="护士" th:selected="*{occupation == '护士'}">护士</option>
|
|
|
+ <option value="服务业" th:selected="*{occupation == '服务业'}">服务业</option>
|
|
|
+ <option value="美容业" th:selected="*{occupation == '美容业'}">美容业</option>
|
|
|
+ <option value="工人" th:selected="*{occupation == '工人'}">工人</option>
|
|
|
+ <option value="退休" th:selected="*{occupation == '退休'}">退休</option>
|
|
|
+ </select>
|
|
|
+ <h1 class="zc_title">收入</h1>
|
|
|
+ <select class="xingzuo" name="income">
|
|
|
+ <option value="3千元以下" th:selected="*{income == '3千元以下'}">3千元以下</option>
|
|
|
+ <option value="3-5千元" th:selected="*{income == '3-5千元'}">3-5千元</option>
|
|
|
+ <option value="5-8千元" th:selected="*{income == '5-8千元'}">5-8千元</option>
|
|
|
+ <option value="8千-1万元" th:selected="*{income == '8千-1万元'}">8千-1万元</option>
|
|
|
+ <option value="1-2万元" th:selected="*{income == '1-2万元'}">1-2万元</option>
|
|
|
+ <option value="2-3万元" th:selected="*{income == '2-3万元'}">2-3万元</option>
|
|
|
+ <option value="4万元以下" th:selected="*{income == '4万元以下'}">4万元以下</option>
|
|
|
+ <option value="4万元以上" th:selected="*{income == '4万元以上'}">4万元以上</option>
|
|
|
+ </select>
|
|
|
+ <h1 class="zc_title">购房</h1>
|
|
|
+ <select class="xingzuo" name="buyhouse">
|
|
|
+ <option value="未购房与父母住" th:selected="*{buyhouse == '未购房与父母住'}">未购房与父母住</option>
|
|
|
+ <option value="已购婚房且无贷款" th:selected="*{buyhouse == '已购婚房且无贷款'}">已购婚房且无贷款</option>
|
|
|
+ <option value="已购婚房但有贷款" th:selected="*{buyhouse == '已购婚房但有贷款'}">已购婚房但有贷款</option>
|
|
|
+ <option value="最近正在考虑买房" th:selected="*{buyhouse == '最近正在考虑买房'}">最近正在考虑买房</option>
|
|
|
+ <option value="看女方位置定下来后买房" th:selected="*{buyhouse == '看女方位置定下来后买房'}">看女方位置定下来后买房</option>
|
|
|
+ <option value="暂无购房能力" th:selected="*{buyhouse == '暂无购房能力'}">暂无购房能力</option>
|
|
|
+ </select>
|
|
|
+ <h1 class="zc_title">购车</h1>
|
|
|
+ <select class="xingzuo" name="buycar">
|
|
|
+ <option value="已购车" th:selected="*{buycar == '已购车'}">已购车</option>
|
|
|
+ <option value="未购车" th:selected="*{buycar == '未购车'}">未购车</option>
|
|
|
+ <option value="有购车计划" th:selected="*{buycar == '有购车计划'}">有购车计划</option>
|
|
|
+ </select>
|
|
|
+ <h1 class="zc_title">吸烟</h1>
|
|
|
+ <select class="xingzuo" name="smoke">
|
|
|
+ <option value="不吸烟" th:selected="*{smoke == '不吸烟'}">不吸烟</option>
|
|
|
+ <option value="偶尔吸烟" th:selected="*{smoke == '偶尔吸烟'}">偶尔吸烟</option>
|
|
|
+ <option value="经常吸烟" th:selected="*{smoke == '经常吸烟'}">经常吸烟</option>
|
|
|
+ </select>
|
|
|
+ <h1 class="zc_title">喝酒</h1>
|
|
|
+ <select class="xingzuo" name="drink">
|
|
|
+ <option value="不喝酒" th:selected="*{drink == '不喝酒'}">不喝酒</option>
|
|
|
+ <option value="偶尔小酌" th:selected="*{drink == '偶尔小酌'}">偶尔小酌</option>
|
|
|
+ <option value="应酬时需喝酒" th:selected="*{drink == '应酬时需喝酒'}">应酬时需喝酒</option>
|
|
|
+ <option value="经常喝酒" th:selected="*{drink == '经常喝酒'}">经常喝酒</option>
|
|
|
+ </select>
|
|
|
+ <h1 class="zc_title">结婚</h1>
|
|
|
+ <select class="xingzuo" name="marry">
|
|
|
+ <option value="一年内结婚" th:selected="*{marry == '一年内结婚'}">一年内结婚</option>
|
|
|
+ <option value="两年内结婚" th:selected="*{marry == '两年内结婚'}">两年内结婚</option>
|
|
|
+ <option value="三年内结婚" th:selected="*{marry == '三年内结婚'}">三年内结婚</option>
|
|
|
+ <option value="时机成熟结婚" th:selected="*{marry == '时机成熟结婚'}">时机成熟结婚</option>
|
|
|
+ </select>
|
|
|
+ <h1 class="zc_title">民族</h1>
|
|
|
+ <input type="text" class="date2 k" name="nation" th:value="*{nation}">
|
|
|
+
|
|
|
<h1 class="zc_title">是否接受异地</h1>
|
|
|
<div class="xingbie">
|
|
|
<span class="man"><input type="radio" name="longDistanceLove" value="是" th:checked="*{longDistanceLove == '是'}"/>是</span>
|
|
@@ -118,11 +231,77 @@
|
|
|
<input type="text" class="select-value01 form-control" th:value="*{taLocation}" name="taLocation">
|
|
|
<h1 class="zc_title">不接受的TA</h1>
|
|
|
<div class="xinggeJS">
|
|
|
- <textarea name="noAccepted" th:value="*{character}">[[*{noAccepted}]]</textarea>
|
|
|
+ <textarea name="noAccepted" th:value="*{character}" id="noAccepted">[[*{noAccepted}]]</textarea>
|
|
|
+ 性格:
|
|
|
+ <input type="button" value="浪漫迷人" class="noAccepted">
|
|
|
+ <input type="button" value="成熟稳重" class="noAccepted">
|
|
|
+ <input type="button" value="浪漫风趣" class="noAccepted">
|
|
|
+ <input type="button" value="乐天达观" class="noAccepted">
|
|
|
+ <input type="button" value="活泼可爱" class="noAccepted">
|
|
|
+ <input type="button" value="忠厚老实" class="noAccepted">
|
|
|
+ <input type="button" value="淳朴害羞" class="noAccepted">
|
|
|
+ <input type="button" value="温柔体贴" class="noAccepted">
|
|
|
+ <input type="button" value="多愁善感" class="noAccepted">
|
|
|
+ <input type="button" value="新潮时尚" class="noAccepted">
|
|
|
+ <input type="button" value="热辣动感" class="noAccepted">
|
|
|
+ <input type="button" value="豪放不羁" class="noAccepted">
|
|
|
+ <br>
|
|
|
+ 爱好:
|
|
|
+ <input type="button" value="音乐" class="noAccepted">
|
|
|
+ <input type="button" value="影视" class="noAccepted">
|
|
|
+ <input type="button" value="数码" class="noAccepted">
|
|
|
+ <input type="button" value="汽车" class="noAccepted">
|
|
|
+ <input type="button" value="时常" class="noAccepted">
|
|
|
+ <input type="button" value="旅行" class="noAccepted">
|
|
|
+ <input type="button" value="美食" class="noAccepted">
|
|
|
+ <input type="button" value="文学" class="noAccepted">
|
|
|
+ <input type="button" value="购物" class="noAccepted">
|
|
|
+ <input type="button" value="摄影" class="noAccepted">
|
|
|
+ <input type="button" value="宠物" class="noAccepted">
|
|
|
+ <input type="button" value="愿意" class="noAccepted">
|
|
|
+ <input type="button" value="绘画" class="noAccepted">
|
|
|
+ <input type="button" value="体育" class="noAccepted">
|
|
|
+ <input type="button" value="舞蹈" class="noAccepted">
|
|
|
+ <input type="button" value="金融" class="noAccepted">
|
|
|
+ <input type="button" value="动漫" class="noAccepted">
|
|
|
+ <input type="button" value="其他" class="noAccepted">
|
|
|
</div>
|
|
|
<h1 class="zc_title">理想型的TA</h1>
|
|
|
<div class="xinggeJS">
|
|
|
- <textarea name="idealType" th:value="*{character}">[[*{idealType}]]</textarea>
|
|
|
+ <textarea name="idealType" th:value="*{character}" id="idealType">[[*{idealType}]]</textarea>
|
|
|
+ 性格:
|
|
|
+ <input type="button" value="浪漫迷人" class="idealType">
|
|
|
+ <input type="button" value="成熟稳重" class="idealType">
|
|
|
+ <input type="button" value="浪漫风趣" class="idealType">
|
|
|
+ <input type="button" value="乐天达观" class="idealType">
|
|
|
+ <input type="button" value="活泼可爱" class="idealType">
|
|
|
+ <input type="button" value="忠厚老实" class="idealType">
|
|
|
+ <input type="button" value="淳朴害羞" class="idealType">
|
|
|
+ <input type="button" value="温柔体贴" class="idealType">
|
|
|
+ <input type="button" value="多愁善感" class="idealType">
|
|
|
+ <input type="button" value="新潮时尚" class="idealType">
|
|
|
+ <input type="button" value="热辣动感" class="idealType">
|
|
|
+ <input type="button" value="豪放不羁" class="idealType">
|
|
|
+ <br>
|
|
|
+ 爱好:
|
|
|
+ <input type="button" value="音乐" class="idealType">
|
|
|
+ <input type="button" value="影视" class="idealType">
|
|
|
+ <input type="button" value="数码" class="idealType">
|
|
|
+ <input type="button" value="汽车" class="idealType">
|
|
|
+ <input type="button" value="时常" class="idealType">
|
|
|
+ <input type="button" value="旅行" class="idealType">
|
|
|
+ <input type="button" value="美食" class="idealType">
|
|
|
+ <input type="button" value="文学" class="idealType">
|
|
|
+ <input type="button" value="购物" class="idealType">
|
|
|
+ <input type="button" value="摄影" class="idealType">
|
|
|
+ <input type="button" value="宠物" class="idealType">
|
|
|
+ <input type="button" value="愿意" class="idealType">
|
|
|
+ <input type="button" value="绘画" class="idealType">
|
|
|
+ <input type="button" value="体育" class="idealType">
|
|
|
+ <input type="button" value="舞蹈" class="idealType">
|
|
|
+ <input type="button" value="金融" class="idealType">
|
|
|
+ <input type="button" value="动漫" class="idealType">
|
|
|
+ <input type="button" value="其他" class="idealType">
|
|
|
</div>
|
|
|
<h1 class="zc_title">微信号或微信绑定手机号</h1>
|
|
|
<div class="weixin">
|
|
@@ -132,10 +311,10 @@
|
|
|
<div class="weixin">
|
|
|
<textarea name="wechatArgot" th:value="*{character}">[[*{wechatArgot}]]</textarea>
|
|
|
</div>
|
|
|
- <h1 class="zc_title">手机号<input type="button" id="btn" value="获取验证码" onclick="sendSmsVerify(this)" /></h1>
|
|
|
- <input type="text" class="date2" id="phone" name="phone" th:value="*{phone}">
|
|
|
+ <h1 class="zc_title">手机号<input type="button" id="btn" class="hqyzm" value="获取验证码" onclick="sendSmsVerify(this)" /></h1>
|
|
|
+ <input type="text" class="date2 k" id="phone" th:value="*{phone}" name="phone" onchange="phonetest(this.value)">
|
|
|
<h1 class="zc_title">验证码</h1>
|
|
|
- <input type="text" class="date2" name="shortMsg">
|
|
|
+ <input type="text" class="date2 k" name="shortMsg">
|
|
|
<input type="button" class="next" value="保存" onclick="submitUser()"/>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -188,18 +367,88 @@
|
|
|
$(".select-value01").val(json.values);
|
|
|
}
|
|
|
})
|
|
|
+
|
|
|
+ $(".noAccepted").click(function () {
|
|
|
+ $("#noAccepted").append(this.value);
|
|
|
+ })
|
|
|
+ $(".idealType").click(function () {
|
|
|
+ $("#idealType").append(this.value);
|
|
|
+ })
|
|
|
+ $(".character").click(function () {
|
|
|
+ $("#character").append(this.value);
|
|
|
+ })
|
|
|
+
|
|
|
+ $("#portraitUrlfile").change(function(){
|
|
|
+ var data = new FormData();
|
|
|
+ data.append("file", this.files[0]);
|
|
|
+ $.ajax({
|
|
|
+ type: "post",
|
|
|
+ url: ctx + "common/upload",
|
|
|
+ data: data,
|
|
|
+ cache: false,
|
|
|
+ contentType: false,
|
|
|
+ processData: false,
|
|
|
+ dataType: 'json',
|
|
|
+ success: function (result) {
|
|
|
+ $("#portraitUrlImg").attr("src",result.url);
|
|
|
+ $("#portraitUrl").val(result.url);
|
|
|
+ },
|
|
|
+ error: function (error) {
|
|
|
+ debugger
|
|
|
+ }
|
|
|
+ });
|
|
|
+ })
|
|
|
+ $("#xiangchefile").change(function(){
|
|
|
+ var data = new FormData();
|
|
|
+ data.append("file", this.files[0]);
|
|
|
+ $.ajax({
|
|
|
+ type: "post",
|
|
|
+ url: ctx + "common/upload",
|
|
|
+ data: data,
|
|
|
+ cache: false,
|
|
|
+ contentType: false,
|
|
|
+ processData: false,
|
|
|
+ dataType: 'json',
|
|
|
+ success: function (result) {
|
|
|
+ var length = document.getElementsByClassName('xcimg').length;
|
|
|
+ if(length < 4){
|
|
|
+ $(".file_add").remove();
|
|
|
+ var html="<img src=\""+result.url+"\" style=\"width: 10rem;height: 10rem\" class=\"xcimg\" onclick=\"xcRemove(this);\"/><img class=\"file_add\" onclick=\"$('#xiangchefile').click()\" />";
|
|
|
+ $("#xiangcheList").append(html);
|
|
|
+ }else{
|
|
|
+ $(".file_add").remove();
|
|
|
+ var html="<img src=\""+result.url+"\" style=\"width: 10rem;height: 10rem\" class=\"xcimg\" onclick=\"xcRemove(this);\"/>";
|
|
|
+ $("#xiangcheList").append(html);
|
|
|
+ }
|
|
|
+ },
|
|
|
+ error: function (error) {
|
|
|
+ debugger
|
|
|
+ }
|
|
|
+ });
|
|
|
+ })
|
|
|
});
|
|
|
+ function xcRemove(thes){
|
|
|
+ $(thes).remove();
|
|
|
+ var length = document.getElementsByClassName('file_add').length;
|
|
|
+ if(length == 0){
|
|
|
+ $("#xiangcheList").append("<img class=\"file_add\" onclick=\"$('#xiangchefile').click()\" />");
|
|
|
+ }
|
|
|
+ }
|
|
|
function sendSmsVerify(val) {
|
|
|
- settime(val);
|
|
|
- $.ajax({
|
|
|
- type: "get",
|
|
|
- url: ctx + "xhn/sendSmsVerify",
|
|
|
- data: {
|
|
|
- "phone": $("#phone").val()
|
|
|
- },
|
|
|
- success: function (data) {
|
|
|
- }
|
|
|
- });
|
|
|
+ if($("#phone").val() == ""){
|
|
|
+ alert("请输入正确的手机号");
|
|
|
+ }else {
|
|
|
+ $.ajax({
|
|
|
+ type: "get",
|
|
|
+ url: ctx + "xhn/sendSmsVerify",
|
|
|
+ data: {
|
|
|
+ "phone": $("#phone").val()
|
|
|
+ },
|
|
|
+ success: function (data) {
|
|
|
+ settime(val);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
}
|
|
|
var countdown=60;
|
|
|
function settime(val) {
|
|
@@ -218,6 +467,32 @@
|
|
|
}
|
|
|
|
|
|
function submitUser() {
|
|
|
+ if($("#name").val()==''){alert("请填写姓名");return ;}
|
|
|
+ if($("#idCard").val()==''){alert("请填写身份证号");return ;}
|
|
|
+ if($("#sex").val()==''){alert("请选择性别");return ;}
|
|
|
+ if($("#location").val()==''){alert("请填写住地");return ;}
|
|
|
+ if($("#height").val()==''){alert("请填写身高");return ;}
|
|
|
+ if($('input:radio[name="isMarried"]:checked').val()==''){alert("请选择婚姻状态");return ;}
|
|
|
+ if($("#character").val()==''){alert("请填写性格介绍");return ;}
|
|
|
+ if($("#workNature").val()==''){alert("请选择工作性质");return ;}
|
|
|
+ if($("#education").val()==''){alert("请选择学历");return ;}
|
|
|
+ if($("#occupation").val()==''){alert("请填写职业");return ;}
|
|
|
+ if($('input:radio[name="longDistanceLove"]:checked').val()==''){alert("请选择是否接受异地");return ;}
|
|
|
+ if($("#noAccepted").val()==''){alert("请填写不接受的TA");return ;}
|
|
|
+ if($("#idealType").val()==''){alert("请填写理想型的TA");return ;}
|
|
|
+ if($("#wechatCode").val()==''){alert("请填写微信号");return ;}
|
|
|
+ if($("#wechatArgot").val()==''){alert("请填写微信暗号");return ;}
|
|
|
+ if($("#phone").val()==''){alert("请填写手机号");return ;}
|
|
|
+ if($("#shortMsg").val()==''){alert("请填写验证码");return ;}
|
|
|
+
|
|
|
+ var xcList = document.getElementsByClassName('xcimg');
|
|
|
+ var albumArr = "";
|
|
|
+ for (var i = 0;i < xcList.length;i++){
|
|
|
+ albumArr += "," + $(xcList[i]).attr("src");
|
|
|
+ }
|
|
|
+ if(albumArr!=""){
|
|
|
+ $("#album").val(albumArr.substring(1));
|
|
|
+ }
|
|
|
$.ajax({
|
|
|
type: "post",
|
|
|
url: ctx + "xhn/updateRegisterUser",
|