瀏覽代碼

手机求购bug

yangc 7 年之前
父節點
當前提交
6171007772
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      components/mobile/applyPurchase/PublishSeek.vue

+ 2 - 2
components/mobile/applyPurchase/PublishSeek.vue

@@ -146,7 +146,7 @@
       },
       emptyForm: function () {
         for (let attr in this.applyObj) {
-          this.applyObj[attr] = attr === 'currency' ? 'RMB' : ''
+          this.applyObj[attr] = attr === 'currency' ? '不限' : ''
         }
       },
       setRemindText: function (str) {
@@ -216,7 +216,7 @@
         this.showCurrencyList = false
       },
       isValidDate: function (date) {
-        let now = new Date().getTime()
+        let now = new Date(formatDate(new Date(), 'yyyy-MM-dd')).getTime()
         let time = new Date(date).getTime()
         return !time || (time >= now && time <= now + 1000 * 60 * 60 * 24 * 91)
       },