|
@@ -403,8 +403,8 @@ export default {
|
|
|
},
|
|
|
btnSubmint() {
|
|
|
let self = this;
|
|
|
-
|
|
|
- alert(ycTime(self.bookingTime));
|
|
|
+ ycTime(self.bookingTime);
|
|
|
+ // alert(ycTime(self.bookingTime));
|
|
|
return;
|
|
|
if (self.appointmentStatusStr.value != 1) {
|
|
|
// 家政员不为空判断
|
|
@@ -709,13 +709,10 @@ export default {
|
|
|
|
|
|
// 日期转时间戳 2014-07-10
|
|
|
function ycTime(t) {
|
|
|
- let stringTime = '2018/04/09 15:00:00';
|
|
|
- // let stringTime = t + ':00';
|
|
|
- alert('new Date(stringTime) ' + new Date(stringTime));
|
|
|
+ t = t.replace(/-/g, '/')
|
|
|
+ let stringTime = t + ':00';
|
|
|
let timestamp = Date.parse(new Date(stringTime));
|
|
|
- alert('timestamp: ' + timestamp);
|
|
|
timestamp = timestamp / 1000;
|
|
|
- alert('timestamp: ' + timestamp);
|
|
|
return timestamp;
|
|
|
}
|
|
|
</script>
|