Browse Source

兼容ios

张文飞 3 năm trước cách đây
mục cha
commit
3cee34b6ff
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 3 1
      pages/homePage/homePage.vue

+ 3 - 1
pages/homePage/homePage.vue

@@ -227,7 +227,9 @@
 	export default {
 		filters:{
 			formattime(val){
-				return displayDateFormatChi(val) +'前推广赚佣金'
+				val = val.replace(/-/g,'/');
+				let time = new Date(val).getTime();
+				return displayDateFormatChi(time) +'前推广赚佣金'
 			}
 		},
 		data() {