...
|
...
|
@@ -60,7 +60,7 @@ |
|
|
<!--<text class="asterisk">*</text>-->
|
|
|
</div>
|
|
|
<div class="list_input number">
|
|
|
<input type="text" placeholder="请选择天数" id="showDatePicker">
|
|
|
<input type="text" placeholder="请选择天数" id="showDatePicker" disabled>
|
|
|
<text class="iconfont icon-zelvxuanzefeiyongdaosanjiaoxingfandui"></text>
|
|
|
</div>
|
|
|
</div>
|
...
|
...
|
@@ -71,7 +71,7 @@ |
|
|
</div>
|
|
|
<div class="list_input number">
|
|
|
<!--<input type="text" placeholder="请选择人数" id="showNumPicker1">-->
|
|
|
<input type="text" placeholder="请输入人数" >
|
|
|
<input type="text" placeholder="请输入人数" disabled>
|
|
|
<!--<text class="iconfont icon-zelvxuanzefeiyongdaosanjiaoxingfandui"></text>-->
|
|
|
</div>
|
|
|
</div>
|
...
|
...
|
@@ -156,36 +156,36 @@ |
|
|
$('.mask_box').show()
|
|
|
$('.mask_box').text('手机号不能为空')
|
|
|
$('.mask_box').delay(1000).hide(0);
|
|
|
} else if(departure==''){
|
|
|
|
|
|
}
|
|
|
$.ajax({
|
|
|
type: 'POST',
|
|
|
url: "{:url('Index/insert')}",
|
|
|
data: {
|
|
|
'name':userName,
|
|
|
'tel':phoneNum,
|
|
|
'start':departure,
|
|
|
'end':destination,
|
|
|
'day':showDatePicker,
|
|
|
'people':showNumPicker1,
|
|
|
'money':budget,
|
|
|
},
|
|
|
success: function (res) {
|
|
|
if(res.code == 1){
|
|
|
$('.mask_box').show()
|
|
|
$('.mask_box').text('提交成功')
|
|
|
$('.mask_box').delay(1000).hide(0);
|
|
|
}else{
|
|
|
$('.mask_box').show()
|
|
|
$('.mask_box').text(res.message)
|
|
|
$('.mask_box').delay(1000).hide(0);
|
|
|
}
|
|
|
},
|
|
|
error: function (res) {
|
|
|
console.log(res);
|
|
|
}else{
|
|
|
$.ajax({
|
|
|
type: 'POST',
|
|
|
url: "{:url('Index/insert')}",
|
|
|
data: {
|
|
|
'name':userName,
|
|
|
'tel':phoneNum,
|
|
|
'start':departure,
|
|
|
'end':destination,
|
|
|
'day':showDatePicker,
|
|
|
'people':showNumPicker1,
|
|
|
'money':budget,
|
|
|
},
|
|
|
success: function (res) {
|
|
|
if(res.code == 1){
|
|
|
$('.mask_box').show()
|
|
|
$('.mask_box').text('提交成功')
|
|
|
$('.mask_box').delay(1000).hide(0);
|
|
|
}else{
|
|
|
$('.mask_box').show()
|
|
|
$('.mask_box').text(res.message)
|
|
|
$('.mask_box').delay(1000).hide(0);
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
error: function (res) {
|
|
|
console.log(res);
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
|
|
|
// else if(departure==''){
|
|
|
// $('.mask_box').show()
|
|
|
// $('.mask_box').text('出发地不能为空')
|
...
|
...
|
|