Commit b721de41 authored by xinyuandu's avatar xinyuandu

commit

parent fc64b383
......@@ -11,6 +11,7 @@
<link rel="stylesheet" href="/app/css/details.css">
<link rel="stylesheet" href="/app/css/lunbo.css">
<link rel="stylesheet" href="/app/css/details_tl.css">
<link rel="stylesheet" href="https://cdn.bootcss.com/jquery-confirm/3.3.2/jquery-confirm.min.css">
<link>
<style>
.header_img{
......@@ -124,6 +125,11 @@
background-clip: content-box;
padding:0rem;
}
.jconfirm-holder {
padding-left:10% !important;padding-right:10%!important;
}
</style>
</head>
......@@ -178,7 +184,9 @@
<button id="save" class="button_style">领取500元代金券</button>
</div>
<script src="/app/js/jquery-1122-min.js" charset="UTF-8"></script>
<script src="https://cdn.bootcss.com/jquery-confirm/3.3.2/jquery-confirm.min.js"></script>
<script src="/app/js/baidu_send.js?new1"></script>
</body>
</html>
\ No newline at end of file
......@@ -2,10 +2,11 @@
* Created by 杜欣源 on 2018/11/19.
*/
(function() {
var url = window.location.href.split("?")[1];
console.log(url);
$('#save').click(function(){
var type = $("input[name='type']:checked").val();
var number = $('#phone').val();
console.log(number)
if ( number == "" ){
alert("请输入电话号码");
return false;
......@@ -24,7 +25,19 @@
}
console.log(number);
$.get('/broker/addSpreadUser',params,function(data){
console.log(data);
$.confirm({
title: '领取成功',
content: '500元代金券领取成功,即将返回商铺列表.',
buttons: {
'确定': function () {
//window.location=""
},
// '取消': function () {
// window.location="www.baidu.com"
// },
}
});
},'json');
})
})();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment