Commit 3bf12e73001d07ae605e96c670c71fa764f56633
1 parent
d739fce2
add
Showing
4 changed files
with
98 additions
and
23 deletions
css/joinous.css
| ... | ... | @@ -106,3 +106,13 @@ |
| 106 | 106 | margin-top: 10px; |
| 107 | 107 | text-align: center; |
| 108 | 108 | } |
| 109 | +.ITD-modal-dialog { | |
| 110 | + position: absolute; | |
| 111 | + left: 50%; | |
| 112 | + top: 50%; | |
| 113 | + transform: translate(-50%,-50%)!important; | |
| 114 | + -webkit-transform: translate(-50%,-50%)!important; | |
| 115 | + -moz-transform: translate(-50%,-50%)!important; | |
| 116 | + -ms-transform: translate(-50%,-50%)!important; | |
| 117 | + -o-transform: translate(-50%,-50%)!important; | |
| 118 | +} | |
| 109 | 119 | \ No newline at end of file | ... | ... |
joinous.html
| ... | ... | @@ -3,7 +3,7 @@ |
| 3 | 3 | <head> |
| 4 | 4 | <meta charset="utf-8"> |
| 5 | 5 | <meta http-equiv="x-ua-compatible" content="ie=edge"> |
| 6 | - <title>关于我们</title> | |
| 6 | + <title>加盟</title> | |
| 7 | 7 | <meta name="description" content=""> |
| 8 | 8 | <meta name="viewport" content="width=device-width, initial-scale=1"> |
| 9 | 9 | <meta name="viewport" content="width=1200"> |
| ... | ... | @@ -186,37 +186,26 @@ |
| 186 | 186 | <!--/ End Footer Area --> |
| 187 | 187 | |
| 188 | 188 | <div class="modal fade in" id="openmodel" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> |
| 189 | - <div class="modal-dialog"> | |
| 189 | + <div class="ITD-modal-dialog"> | |
| 190 | 190 | <div class="modal-content"> |
| 191 | 191 | <div class="modal-header"> |
| 192 | 192 | <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> |
| 193 | - <h4 class="modal-title" id="">加盟招募</h4> | |
| 193 | + <h4 class="modal-title" id="">欢迎加盟</h4> | |
| 194 | 194 | </div> |
| 195 | 195 | <div class="modal-body"> |
| 196 | - <div class="form-group form-group-height"> | |
| 196 | +<!-- <div class="form-group form-group-height"> | |
| 197 | 197 | <div class="width30 ">公司名称:</div> |
| 198 | 198 | <div class="width65 " id="porNames"> |
| 199 | 199 | <input type="text" class="width65 borcol" style="padding-left:10px;" maxlength="25" id="porNames_inp"> |
| 200 | 200 | </div> |
| 201 | 201 | </div> |
| 202 | 202 | <div class="form-group form-group-height"> |
| 203 | - <div class="width30 ">联系人姓名:</div> | |
| 204 | - <div class="width65 " id="personNames"> | |
| 205 | - <input type="text" class="width65 borcol" style="padding-left:10px;" maxlength="25" id="personNames_inp"> | |
| 206 | - </div> | |
| 207 | - </div> | |
| 208 | - <div class="form-group form-group-height"> | |
| 209 | 203 | <div class="width30 ">联系人职务:</div> |
| 210 | 204 | <div class="width65 " id="personDuties"> |
| 211 | 205 | <input type="text" class="width65 borcol" style="padding-left:10px;" maxlength="25" id="personDuties_inp"> |
| 212 | 206 | </div> |
| 213 | 207 | </div> |
| 214 | - <div class="form-group form-group-height"> | |
| 215 | - <div class="width30 ">手机:</div> | |
| 216 | - <div class="width65 " id="userTel"> | |
| 217 | - <input type="text" class="width65 borcol" style="padding-left:10px;" maxlength="11" onkeyup="value=value.replace(/[^\d]/g,'') " ng-pattern="/[^a-zA-Z]/" id="userTel_inp"> | |
| 218 | - </div> | |
| 219 | - </div> | |
| 208 | + | |
| 220 | 209 | <div class="form-group form-group-height"> |
| 221 | 210 | <div class="width30 ">邮箱:</div> |
| 222 | 211 | <div class="width65 " id="userEmail"> |
| ... | ... | @@ -228,7 +217,20 @@ |
| 228 | 217 | <div class="width65 " id="userAddr"> |
| 229 | 218 | <input type="text" class="width65 borcol" style="padding-left:10px;" maxlength="25" id="userAddr_inp"> |
| 230 | 219 | </div> |
| 220 | + </div>--> | |
| 221 | + <div class="form-group form-group-height"> | |
| 222 | + <div class="width30 ">联系人姓名:</div> | |
| 223 | + <div class="width65 " id="personNames"> | |
| 224 | + <input type="text" class="width65 borcol" style="padding-left:10px;" maxlength="25" id="personNames_inp"> | |
| 225 | + </div> | |
| 231 | 226 | </div> |
| 227 | + <div class="form-group form-group-height"> | |
| 228 | + <div class="width30 ">手机:</div> | |
| 229 | + <div class="width65 " id="userTel"> | |
| 230 | + <input type="text" class="width65 borcol" style="padding-left:10px;" maxlength="11" onkeyup="value=value.replace(/[^\d]/g,'') " ng-pattern="/[^a-zA-Z]/" id="userTel_inp"> | |
| 231 | + </div> | |
| 232 | + </div> | |
| 233 | + | |
| 232 | 234 | <div id="write_rule" class="write_rule display-none"></div> |
| 233 | 235 | <div class="modal-footer"> |
| 234 | 236 | <button type="button" class="btn " id="write-submit">提交</button> |
| ... | ... | @@ -252,6 +254,7 @@ |
| 252 | 254 | <script type="text/javascript" src="js/jquery.stellar.min.js"></script> |
| 253 | 255 | <script type="text/javascript" src="js/jquery.magnific-popup.min.js"></script> |
| 254 | 256 | <script type="text/javascript" src="js/animate-text.js"></script> |
| 257 | +<script type="text/javascript" src="js/unit.js"></script> | |
| 255 | 258 | <!--<script type="text/javascript" src="js/particles.min.js"></script>--> |
| 256 | 259 | <!--<script type="text/javascript" src="js/particle-code.js"></script>--> |
| 257 | 260 | <script type="text/javascript" src="js/jquery.counterup.min.js"></script> | ... | ... |
js/joinous.js
| ... | ... | @@ -17,19 +17,22 @@ $('#write-submit').on('click', function () { |
| 17 | 17 | var userTel=$.trim($('#userTel_inp').val()); |
| 18 | 18 | var userEmail=$.trim($('#userEmail_inp').val()); |
| 19 | 19 | var userAddr=$.trim($('#userAddr_inp').val()); |
| 20 | - if(porNames == '' || porNames == undefined || porNames == null) { | |
| 20 | +/* if(porNames == '' || porNames == undefined || porNames == null) { | |
| 21 | 21 | $('#write_rule').removeClass('display-none').text('请输入公司名称'); |
| 22 | 22 | return; |
| 23 | - }else if(personNames == '' || personNames == undefined || personNames == null) { | |
| 23 | + }else*/ | |
| 24 | + if(personNames == '' || personNames == undefined || personNames == null) { | |
| 24 | 25 | $('#write_rule').removeClass('display-none').text('请输入联系人姓名'); |
| 25 | 26 | return; |
| 26 | - }else if(personDuties == '' || personDuties == undefined || personDuties == null) { | |
| 27 | + } | |
| 28 | + /* else if(personDuties == '' || personDuties == undefined || personDuties == null) { | |
| 27 | 29 | $('#write_rule').removeClass('display-none').text('请输入联系人职务'); |
| 28 | 30 | return; |
| 29 | - }else if(userTel == '' || userTel == undefined || userTel == null) { | |
| 31 | + }*/ | |
| 32 | + else if(userTel == '' || userTel == undefined || userTel == null) { | |
| 30 | 33 | $('#write_rule').removeClass('display-none').text('请输入手机号'); |
| 31 | 34 | return; |
| 32 | - }else if(!/^1[3|4|5|7|8][0-9]\d{4,8}$/.test(userTel)||userTel.length!=11) { | |
| 35 | + }/*else if(!/^1[3|4|5|7|8][0-9]\d{4,8}$/.test(userTel)||userTel.length!=11) { | |
| 33 | 36 | $('#write_rule').removeClass('display-none').text('请输入正确手机号'); |
| 34 | 37 | return; |
| 35 | 38 | }else if(userEmail == '' || userEmail == undefined || userEmail == null) { |
| ... | ... | @@ -41,9 +44,38 @@ $('#write-submit').on('click', function () { |
| 41 | 44 | }else if(userAddr == '' || userAddr == undefined || userAddr == null){ |
| 42 | 45 | $('#write_rule').removeClass('display-none').text('请输入通讯地址'); |
| 43 | 46 | return; |
| 44 | - }else{ | |
| 47 | + }*/else{ | |
| 45 | 48 | $('#write_rule').addClass('display-none').text(''); |
| 46 | 49 | //ajax |
| 47 | - $('#openmodel').modal('hide'); | |
| 50 | + var req = { | |
| 51 | + plApplyName:personNames, | |
| 52 | + plApplyTel:userTel, | |
| 53 | + deivceType:3 | |
| 54 | + } | |
| 55 | + $.ajax({ | |
| 56 | + //几个参数需要注意一下 | |
| 57 | + data: JSON.stringify(req), | |
| 58 | + method: "POST", | |
| 59 | + async: false, | |
| 60 | + url: dataUrl.util.saveParkLotApply(), | |
| 61 | + success: function (res) { | |
| 62 | + console.log(res) | |
| 63 | + if (res.code == '8888') { | |
| 64 | + console.log(res.data) | |
| 65 | + $('#openmodel').modal('hide'); | |
| 66 | + | |
| 67 | + } | |
| 68 | + }, | |
| 69 | + error : function() { | |
| 70 | + $('#write_rule').removeClass('display-none').text('添加加盟数据失败'); | |
| 71 | + } | |
| 72 | + }); | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 48 | 76 | } |
| 49 | 77 | }) |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | ... | ... |
js/unit.js
0 → 100644
| 1 | +//阿里云测试环境,别删 | |
| 2 | +var parkcloudbaseUrl = 'http://39.98.54.240:8093/';// url公用地址 | |
| 3 | +var authUrl = 'http://39.98.54.240:8088/';// 鉴权URL公用地址 | |
| 4 | + | |
| 5 | +//丹阳 | |
| 6 | +// var parkcloudbaseUrl = 'http://106.15.191.5:8093/';// url公用地址 | |
| 7 | +// var authUrl = 'http://106.15.191.5:8088/';// 鉴权URL公用地址 | |
| 8 | + | |
| 9 | +//阿里云测试环境,别删 | |
| 10 | +// var parkcloudbaseUrl ='http://bcp.service.renniting.cn/';// url公用地址 | |
| 11 | +// var authUrl = 'http://sys.service.renniting.cn/';// 鉴权URL公用地址192.168.1.196:8090 | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | +// var parkcloudbaseUrl='http://106.15.186.134:8093/'; | |
| 16 | +// var authUrl='http://106.15.186.134:8088/'; | |
| 17 | + | |
| 18 | +// demo 演示环境 勿删除 | |
| 19 | +// var parkcloudbaseUrl = 'http://demo-bcp.renniting.cn/';// url公用地址 | |
| 20 | +// var authUrl = 'http://demo-sys.renniting.cn/';// 鉴权URL公用地址 | |
| 21 | + | |
| 22 | + | |
| 23 | +var dataUrl = dataUrl || {}; | |
| 24 | + | |
| 25 | +dataUrl.util = { | |
| 26 | + //加盟接口 | |
| 27 | + saveParkLotApply: function () { | |
| 28 | + return parkcloudbaseUrl + 'parkLotApply/saveParkLotApply'; | |
| 29 | + }, | |
| 30 | +} | ... | ... |