bind_tester.html
2.65 KB
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
<include file="public/layout" />
<body style="background-color: #FFF; overflow: auto;">
<div id="toolTipLayer" style="position: absolute; z-index: 9999; display: none; visibility: visible; left: 95px; top: 573px;"></div>
<div id="append_parent"></div>
<div id="ajaxwaitid"></div>
<div class="page">
<div class="fixed-bar">
<div class="item-title"><a class="back" href="javascript:history.back();" title="返回列表"><i class="fa fa-arrow-circle-o-left"></i></a>
<div class="subject">
<h3>添加体验者</h3>
<h5></h5>
</div>
</div>
</div>
<form method="post" id="handlepost" action="" enctype="multipart/form-data" name="form1">
<input type="hidden" name="store_id" value="{$store_id}">
<div class="ncap-form-default">
<dl class="row">
<dt class="tit">
<em></em>微信号:
</dt>
<dd class="opt">
<input name="wechatid" type="text" class="input-txt" id="wechatid"/>
<span class="err cr"></span>
</dd>
</dl>
<div class="bot">
<a href="JavaScript:void(0);" class="ncap-btn-big ncap-btn-green" id="sumbitbtn" onclick="adsubmit()">确认提交</a>
</div>
</div>
</form>
<div id="goTop"> <a href="JavaScript:void(0);" id="btntop"><i class="fa fa-angle-up"></i></a><a href="JavaScript:void(0);" id="btnbottom"><i class="fa fa-angle-down"></i></a></div>
</body>
<script type="text/javascript">
$(function () {
})
function adsubmit(){
layer.msg('加载中...', {icon: 16,shade: [0.5, '#f5f5f5'],scrollbar: false,offset: '10px', time:100000}) ;
if($('#wechatid').val() == ''){
layer.msg('微信号不能为空。', {icon: 2,time: 1000});
$("#wechatid").focus();
$("#wechatid").parent().find("span").text("微信号不能为空。");
return false;
}
$.ajax({
url: "{:U('Weapp/bind_tester',array('ispost'=>1,'stoid'=>$stoid))}",
type:'post',
data: $("#handlepost").serialize(),
dataType:'json',
success:function(res){
if(res.errcode==0){
layer.msg('添加成功', {icon: 1,time: 1000});
setTimeout(function () {
location.href=location.href;
},1000)
}
else
{
layer.msg(res.errcode+res.errmsg, {icon: 2,time: 3000});
}
}
});
}
</script>
</html>