style:注册
Showing
2 changed files
with
22 additions
and
6 deletions
.gitlab-ci.yml
0 → 100644
File mode changed
| ... | @@ -30,11 +30,6 @@ $(function () { | ... | @@ -30,11 +30,6 @@ $(function () { |
| 30 | ], | 30 | ], |
| 31 | //我们既支持上述函数式的方式,也支持下述数组的形式 | 31 | //我们既支持上述函数式的方式,也支持下述数组的形式 |
| 32 | //数组的两个值分别代表:[正则匹配、匹配不符时的提示文字] | 32 | //数组的两个值分别代表:[正则匹配、匹配不符时的提示文字] |
| 33 | pass: [ | ||
| 34 | /^[\S]{6,12}$/ | ||
| 35 | , '密码必须6到12位,且不能出现空格' | ||
| 36 | ] | ||
| 37 | |||
| 38 | }); | 33 | }); |
| 39 | 34 | ||
| 40 | form.on('select(type)', function (data) { | 35 | form.on('select(type)', function (data) { |
| ... | @@ -46,7 +41,28 @@ $(function () { | ... | @@ -46,7 +41,28 @@ $(function () { |
| 46 | layer.alert(JSON.stringify(data.field), { | 41 | layer.alert(JSON.stringify(data.field), { |
| 47 | title: '最终的提交信息' | 42 | title: '最终的提交信息' |
| 48 | }) | 43 | }) |
| 44 | register(data.field) | ||
| 49 | return false; | 45 | return false; |
| 50 | }); | 46 | }); |
| 51 | }) | 47 | }) |
| 52 | }) | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 48 | }) | ||
| 49 | |||
| 50 | // 获取受理流程信息 | ||
| 51 | function register(formData) { | ||
| 52 | $.ajax({ | ||
| 53 | url: portal.api_url + "/protal/users/insert",//路径 | ||
| 54 | type:"post", | ||
| 55 | dataType:"json", | ||
| 56 | data : formData, | ||
| 57 | //数据,这里使用的是Json格式进行传输 | ||
| 58 | success: function (result) {//返回数据根据结果进行相应的处理 | ||
| 59 | if (result.code == 200 && result.data != null) { | ||
| 60 | console.log(result.data) | ||
| 61 | layui.use('layer', function () { | ||
| 62 | layer.msg('注册成功!'); | ||
| 63 | }) | ||
| 64 | // window.open("../index.html","_self") | ||
| 65 | } | ||
| 66 | } | ||
| 67 | }); | ||
| 68 | } | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
-
Please register or sign in to post a comment