Browse Source

倒计时

wkyy 2 năm trước cách đây
mục cha
commit
b484a475b0
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      pages/index/index.vue

+ 1 - 1
pages/index/index.vue

@@ -382,7 +382,7 @@
 					console.log(dateDay2)
 				}
 				
-				if(dateDay1 < dateDay2-2) {
+				if(dateDay1 <= dateDay2-2) {
 					this.description = dateDay2 - dateDay1 + '天'
 				} else {
 					var dateTime2=new Date(date).getTime()