...
|
...
|
@@ -56,8 +56,8 @@ Page({ |
|
|
},
|
|
|
//输入最高人数失去焦点时
|
|
|
maxNumBlur() {
|
|
|
if(+this.data.min_num>+this.data.max_num) {
|
|
|
wx.showToast({title:'最低人数不能高于最高人数',icon:'none'});
|
|
|
if(+this.data.min_num >= +this.data.max_num) {
|
|
|
wx.showToast({title:'最高人数要大于最低人数',icon:'none'});
|
|
|
this.setData({max_num:''});
|
|
|
}
|
|
|
},
|
...
|
...
|
@@ -99,7 +99,7 @@ Page({ |
|
|
let newTime = new Date().getTime();//当前时间戳
|
|
|
let end_time = app.preTime(this.data.date + ' ' +this.data.time, this.data.over_time);//截止时间
|
|
|
let endTime = new Date(end_time).getTime(); //截止时间戳
|
|
|
console.log('newTime', 'endTime', 'end_time', endTime - newTime >=0,newTime, endTime, end_time,this.data.date + ' ' +this.data.time);
|
|
|
// console.log('newTime', 'endTime', 'end_time', endTime - newTime >=0,newTime, endTime, end_time,this.data.date + ' ' +this.data.time);
|
|
|
if (endTime - newTime <= 0) { //不可发布目前时间到截止小时內的订单
|
|
|
wx.showToast({title:'截止时间无效',icon:'none'});
|
|
|
this.setData({over_time:''})
|
...
|
...
|
|