Browse Source

处理搜索异常问题

wangcz 7 years ago
parent
commit
4c3271ef07
1 changed files with 3 additions and 3 deletions
  1. 3 3
      pages/mobile/center/user/collect/component/_key.vue

+ 3 - 3
pages/mobile/center/user/collect/component/_key.vue

@@ -12,7 +12,7 @@
           <i class="iconfont icon-sousuo"></i>
         </span>
         <ul class="similar brand-similar-list" v-show="showSimilarCodeList && keyword">
-          <li v-for="sBrand in similarBrand" :key="sBrand.code" @click.stop="setBrand(sBrand.code)">{{sBrand.code}}</li>
+          <li v-for="sBrand in similarBrand" @click.stop="setBrand(sBrand.code)" v-text="sBrand.code"></li>
         </ul>
       </div>
       <template v-if="compList && compList.length">
@@ -20,7 +20,7 @@
           <p>搜索“<span>{{keyword}}</span>”,为您找到{{compCollectList.data.total}}条信息</p>
         </div>
         <ul>
-          <li class="clearfix" :key="comp.componentid" v-for="comp in compList" @click="goUrl('/mobile/brand/componentDetail/' + comp.componentinfo.uuid)">
+          <li class="clearfix" v-for="comp in compList" @click="goUrl('/mobile/brand/componentDetail/' + comp.componentinfo.uuid)">
             <div class="fl">
               <p>品牌:<span v-text="comp.brand.nameEn || '-'"></span></p>
               <p>物料名称:<span v-text="comp.kind.nameCn || '-'"></span></p>
@@ -227,7 +227,7 @@
       z-index: 12;
       border: 1px solid #7e7e7e;
       border-radius: .05rem;
-      top: .7rem;
+      top: 100%;
       background: #fff;
       left: 0.1rem;
       right: 0;