Browse Source

bug修改

yangc 7 years ago
parent
commit
6ffddbf185

+ 2 - 2
components/applyPurchase/BatchPublish.vue

@@ -361,7 +361,7 @@
     },
     methods: {
       getDate1: function () {
-        this.modifyObj.deadline = this.baseUtils.formatDate(this.modifyObj.deadline, 'yyyy-MM-dd hh:mm:ss')
+        this.modifyObj.deadline = this.modifyObj.deadline ? this.baseUtils.getFullDay(this.modifyObj.deadline.getTime()) : null
         this.validObj.deadline = true
       },
       initModifyObj: function () {
@@ -559,7 +559,7 @@
           })
       },
       isValidTime: function (time) {
-        let now = new Date().getTime()
+        let now = this.baseUtils.getClearDay(this.baseUtils.formatDate(new Date(), 'yyyy-MM-dd'))
         return !time || (time >= now && time <= now + 1000 * 60 * 60 * 24 * 91)
       },
       isValidDate: function (date) {

+ 2 - 0
components/pcb/home/EnterpriseInfo.vue

@@ -336,6 +336,8 @@
                 span.look {
                   color: #2496f1;
                   cursor: pointer;
+                  position: absolute;
+                  right: 10px;
                 }
               }
               div{

+ 2 - 0
components/store/home/EnterpriseInfo.vue

@@ -394,6 +394,8 @@
                 span.look {
                   color: #2496f1;
                   cursor: pointer;
+                  position: absolute;
+                  right: 10px;
                 }
               }
               div{

+ 1 - 1
utils/baseUtils.js

@@ -474,7 +474,7 @@ const _getClearDay = (date = new Date()) => {
  * @date 默认当天 Date格式
  * */
 const _getFullDay = (date = new Date()) => {
-  return new Date(date.getTime() + 23 * 60 * 60 * 1000 + 59 * 60 * 1000 + 59 * 1000)
+  return new Date((typeof date === 'object' ? date.getTime() : date) + 23 * 60 * 60 * 1000 + 59 * 60 * 1000 + 59 * 1000)
 }
 
 export default {