yangc 7 年之前
父節點
當前提交
813496f12f
共有 1 個文件被更改,包括 11 次插入4 次删除
  1. 11 4
      components/applyPurchase/ApplyInfo.vue

+ 11 - 4
components/applyPurchase/ApplyInfo.vue

@@ -36,7 +36,8 @@
       <ul>
         <li v-for="(purchaseMan, index) in purchaseManList.content" :class="{'active': purchaseMan.active}">
           <div>{{purchaseMan.date| date}}</div>
-          <div :title="purchaseMan.userName || (purchaseMan.inquiry.enterprise ? purchaseMan.inquiry.enterprise.enName ? purchaseMan.inquiry.enterprise.enName : '-' : '-' || '-')">{{purchaseMan.userName || (purchaseMan.inquiry.enterprise ? purchaseMan.inquiry.enterprise.enName ? purchaseMan.inquiry.enterprise.enName : '-' : '-' || '-')}}</div>
+          <div v-if="purchaseMan.inquiry.enterprise && purchaseMan.inquiry.enterprise.enName">{{purchaseMan.inquiry.enterprise.enName | enterpriseFilter}}</div>
+          <div v-else>{{purchaseMan.userName | userNameFilter}}</div>
           <div :title="purchaseMan.cmpCode">{{purchaseMan.cmpCode || '-'}}</div>
           <div :title="purchaseMan.inbrand">{{purchaseMan.inbrand || '-'}}</div>
           <div class="date-content">
@@ -51,7 +52,7 @@
           </div>
           <div class="number-content"><img src="/images/applyPurchase/hot-fire.png" alt="" v-if="purchaseMan.offerAmount > 10"><span :style="purchaseMan.offerAmount > 10 ? 'color: #ff9a00': ''">{{purchaseMan.offerAmount || 0}}</span>&nbsp;条</div>
           <div class="btn-content">
-            <a @click="setLinkBoxIndex(index)">联系买家</a>
+            <!--<a @click="setLinkBoxIndex(index)">联系买家</a>-->
             <a v-if="purchaseMan.remainingTime > 0 && (!purchaseMan.quoted || purchaseMan.quoted != 1)" @click="sayPrice(purchaseMan, index)">我要报价</a>
             <div class="is-say-price" v-if="purchaseMan.remainingTime > 0 && purchaseMan.quoted == 1">已报价 <img src="/images/applyPurchase/green-check.png" alt="">
               <!--<div class="say-price-history">
@@ -262,6 +263,12 @@
       },
       phone: function (str) {
         return str.substring(0, 3) + '****' + str.substring(7, 11)
+      },
+      enterpriseFilter (str) {
+        return str.length > 4 ? str.substring(0, 2) + '**' + str.substring(str.length - 2, str.length) : str
+      },
+      userNameFilter (str) {
+        return str.substring(0, 1) + '**'
       }
     },
     computed: {
@@ -739,11 +746,11 @@
                 background: #3c7cf5;
                 border-radius: 3px;
                 cursor: pointer;
-                &:first-child {
+              /*  &:first-child {
                   background: #ffa200;
                   float: left;
                   margin-top: 19px;
-                }
+                }*/
               }
               .is-say-price {
                 display: inline-block;