Commit 609651f3 authored by xinyuandu's avatar xinyuandu

123

parent 059af708
......@@ -128,7 +128,38 @@
.jconfirm-holder {
padding-left:10% !important;padding-right:10%!important;
padding-left:1.4rem !important;padding-right:1.4rem!important;
}
.jconfirm-buttons{
width:100% !important;
padding : 0px!important;
}
.jconfirm-buttons button{
width:100% !important;
margin : 0px !important;
background-color:#FFFFFF !important;
border:none !important;
border-top:1px solid #eeeeee !important;
border-radius: 0px !important;
}
.jconfirm-box{
padding-left:0px !important;
padding-bottom :0px!important;
padding-right: 0px !important;;
}
.jconfirm-title-c {
text-align:center !important;
}
.jconfirm-title{
background-image: -webkit-linear-gradient(90deg, #FB7C72 0%, #F74364 100%)!important;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
font-size : .44rem;
}
.jconfirm-content{
padding-left:.36rem;
font-size:0.26rem!important;
color:#666666
}
</style>
</head>
......
......@@ -8,19 +8,43 @@
var type = $("input[name='type']:checked").val();
var number = $('#phone').val();
if ( number == "" ){
$.alert("请输入电话号码");
$.confirm({
title: '警告',
content: '请输入电话号码',
buttons: {
'确定': function () {}
}
});
return false;
}
if( !(number - 0 > -1) ){
$.alert("请输入正确的电话号码") ;
$.confirm({
title: '警告',
content: '请输入正确的电话号码',
buttons: {
'确定': function () {}
}
});
return false;
}
if (number.length != 11 ){
$.alert("请输入正确的11位电话号码") ;
$.confirm({
title: '警告',
content: '请输入正确的11位电话号码',
buttons: {
'确定': function () {}
}
});
return false;
}
if (number[0] != 1 ){
$.alert("请输入正确的电话号码") ;
$.confirm({
title: '警告',
content: '请输入正确的电话号码',
buttons: {
'确定': function () {}
}
});
return false;
}
var params = {
......@@ -36,29 +60,20 @@
buttons: {
'确定': function () {
location.href = '/app/dist/#/shopList?isSendFiveHundred=1' + "&" + url;
},
// '取消': function () {
// window.location="www.baidu.com"
// },
}
}
});
} else {
$.confirm({
title: '领取失败',
content: data.message,
buttons: {
'返回商铺': function () {
'确定': function () {
location.href = '/app/dist/#/shopList?isSendFiveHundred=1' + "&" + url;
},
'重新提交': function () {
},
}
}
});
}
},'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