Browse Source

数据绑定

yangc 8 years ago
parent
commit
724cdb63fd
1 changed files with 6 additions and 4 deletions
  1. 6 4
      components/applyPurchase/ApplyInfo.vue

+ 6 - 4
components/applyPurchase/ApplyInfo.vue

@@ -24,9 +24,9 @@
           <span>{{purchaseMan.releaseDate | date}}</span>
           <span>{{purchaseMan.tel | phone}}</span>
           <span>{{purchaseMan.code}}</span>
-          <span>panasonic</span>
+          <span>{{purchaseMan.brand}}</span>
           <span class="date-content"><span>剩余</span><span> 8 </span>天<span> 8 </span>小时</span>
-          <span class="number-content"><span>1000</span>&nbsp;条</span>
+          <span class="number-content"><span>{{purchaseMan.amount}}</span>&nbsp;条</span>
           <span class="btn-content">
             <a>联系买家</a>
             <a>我要报价</a>
@@ -51,8 +51,8 @@
       Page
     },
     filters: {
-      date: function (input) {
-        const d = new Date(Number(input))
+      date: function (date) {
+        const d = new Date(Number(date))
         const year = d.getFullYear()
         const monthTemp = d.getMonth() + 1
         const month = monthTemp < 10 ? '0' + monthTemp : '' + monthTemp
@@ -61,6 +61,8 @@
         const day = d.getDate() < 10 ? '0' + d.getDate() : '' + d.getDate() + ' '
         return year + '-' + month + '-' + day + ' ' + hour + ':' + minutes
       },
+      deadLine: function (date) {
+      },
       phone: function (str) {
         return str.substring(0, 3) + '****' + str.substring(7, 11)
       }