Parcourir la source

Merge branch 'master' of git.oschina.net:yiguanjia/php

north il y a 7 ans
Parent
commit
5d14f8f83b

Fichier diff supprimé car celui-ci est trop grand
+ 0 - 0
www/webapp/housekeeping/home/static/css/app.css


Fichier diff supprimé car celui-ci est trop grand
+ 0 - 0
www/webapp/housekeeping/home/static/js/app.js


Fichier diff supprimé car celui-ci est trop grand
+ 0 - 0
www/webapp/housekeeping/home/static/js/app.js.map


Fichier diff supprimé car celui-ci est trop grand
+ 0 - 0
www/webapp/housekeeping/home/static/js/manifest.js.map


+ 15 - 6
www/webapp/housekeeping/src/components/reservation.vue

@@ -551,12 +551,21 @@
   }
 
   function time(t) {
-    let stringTime = '2000-01-11 ' + t + ':00';
-    // alert(stringTime);
-    let timestamp = Date.parse(new Date(stringTime));
-    alert(timestamp);
-    timestamp = timestamp / 1000;
-    return timestamp;
+    if (config.isiOS) {
+      let date = `2000-01-01 ${t}:00`;
+      date = date.substring(0, 19);
+      date = date.replace(/-/g, '/');
+      let timestamp = new Date(date).getTime();
+      timestamp = timestamp / 1000;
+      return timestamp;
+    } else {
+      console.log(config);
+      let stringTime = '2017-07-11 ' + t + ':00';
+      let timestamp = Date.parse(new Date(stringTime));
+      alert(timestamp);
+      timestamp = timestamp / 1000;
+      return timestamp;
+    }
   }
 
 

Certains fichiers n'ont pas été affichés car il y a eu trop de fichiers modifiés dans ce diff