|
...
|
...
|
@@ -59,7 +59,7 @@ Page({ |
|
|
|
latitude:res.data.lat,
|
|
|
|
longitude:res.data.long,
|
|
|
|
},
|
|
|
|
timeStr:util.unixtoTime(res.data.arrival_time,'MM-DD 星期WW HH:II')
|
|
|
|
timeStr:util.unixtoTime(res.data.arrival_time,this.data.tpl.timeStr)
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}else{
|
|
...
|
...
|
@@ -128,7 +128,7 @@ Page({ |
|
|
|
|
|
|
|
},
|
|
|
|
bindMultiPickerColumnChange(e){
|
|
|
|
console.log(e);
|
|
|
|
//console.log(e);
|
|
|
|
if(e.detail.column==1){
|
|
|
|
this.setData({
|
|
|
|
[`pickerValue[1]`]:e.detail.value,
|
|
...
|
...
|
@@ -137,8 +137,10 @@ Page({ |
|
|
|
}
|
|
|
|
},
|
|
|
|
bindMultiPickerChange(e){
|
|
|
|
console.log(e);
|
|
|
|
this.setData({
|
|
|
|
pickerValue:e.detail.value
|
|
|
|
pickerValue:e.detail.value,
|
|
|
|
timeStr:util.unixtoTime(this.getTimeStr(e.detail.value),this.data.tpl.timeStr)
|
|
|
|
})
|
|
|
|
this.checkHasSubmit()
|
|
|
|
},
|
|
...
|
...
|
@@ -173,12 +175,16 @@ Page({ |
|
|
|
})
|
|
|
|
this.checkHasSubmit()
|
|
|
|
},
|
|
|
|
getTimeStr(){
|
|
|
|
if(this.data.pickerValue[0]>-1){
|
|
|
|
getTimeStr(pickerValue=''){
|
|
|
|
if(pickerValue.length<1){
|
|
|
|
pickerValue=this.data.pickerValue;
|
|
|
|
}
|
|
|
|
if(pickerValue[0]>-1){
|
|
|
|
let d=new Date();
|
|
|
|
let y=d.getFullYear();
|
|
|
|
let md=this.data.pickerData[0][this.data.pickerValue[0]].substr(0,5);
|
|
|
|
let t=this.data.pickerData[2][this.data.pickerValue[2]];
|
|
|
|
let md=this.data.pickerData[0][pickerValue[0]].substr(0,5);
|
|
|
|
let t=this.data.pickerData[2][pickerValue[2]];
|
|
|
|
console.log(y+'-'+md+' '+t+':00')
|
|
|
|
return util.timetouUnix(y+'-'+md+' '+t+':00');
|
|
|
|
}else{
|
|
|
|
return this.data.form.time;
|
...
|
...
|
|