Browse Source

修正产品详情页

shenjj 7 years ago
parent
commit
296f2bf47c

+ 17 - 1
components/mobile/brand/ComponentDetail.vue

@@ -17,9 +17,13 @@
         <span v-if="component.attach">规格书:<img src="/images/mobile/@2x/productDetail/pdf.png" alt=""><span>查看</span></span>
         <span v-else>规格书:-</span>
       </div>
-      <div class="base-detail-item product-description">
+      <div class="base-detail-item product-description" v-if="component.description">
         <span class="description">产品描述:{{component.description || '-'}}</span>
       </div>
+      <div class="base-detail-item product-description center" v-else>
+        <img src="/images/mobile/@2x/brand/nostate-img.png"/>
+        暂无描述
+      </div>
       <i class="iconfont icon-shoucang" :style="isCollect?'color:#ff7800':'color: #ddd'" @click="collectComponent"></i>
     </div>
     <div class="product-switch-item">
@@ -365,6 +369,18 @@
         &.product-description {
           height: 1.58rem;
           margin-top: .6rem;
+          img {
+            width: 0.91rem;
+            height: 0.91rem;
+            margin-right: 0.1rem;
+          }
+          &.center {
+            text-align: center;
+            padding-top: 0.1rem;
+            line-height: 0.91rem;
+          }
+          font-size: 0.28rem;
+          color: #666;
         }
         .description {
           line-height: .4rem;

+ 2 - 2
pages/mobile/center/vendor/attentionBus.vue

@@ -5,7 +5,7 @@
         <span :class="activeType==='isattention'?'mobile-switch-btn active':'mobile-switch-btn'" @click="ChangeTab('isattention')">未关注</span>
       </div>
       <div class="search-content" style="padding-bottom: 0.25rem">
-        <input type="text" placeholder="类目(产品名称)/名称" v-model="keyword" @keyup.13="searchSeek">
+        <input type="text" placeholder="请输入您要搜索的类目(产品名称)" v-model="keyword" @keyup.13="searchSeek">
         <span @click="searchSeek" >
           <i class="iconfont icon-sousuo"></i>
           </span>
@@ -26,7 +26,7 @@
           </li>
         </ul>
       </div>
-      <div class="none-state" v-else>
+      <div class="none-state" v-if="isSearchSearchingMore && attentionList.length === 0">
         <img src="/images/mobile/@2x/search-empty.png">
         <p>暂无数据</p>
         <nuxt-link to="/">返回首页</nuxt-link>

+ 9 - 4
pages/mobile/product/_batchCode.vue

@@ -117,10 +117,10 @@
           <div v-if="checkInfo(storeInfo.enterprise.enAddress)">商家地址:{{storeInfo.enterprise.enAddress}}</div>
 -->
           <!--<div class="content-line link-url">在线咨询</div>-->
-          <div v-if="checkInfo(storeInfo.enterprise.enTel)">电话:<a :href="'tel:' + storeInfo.enterprise.enTel" target="_blank" class="content-line link-url">{{storeInfo.enterprise.enTel}}</a></div>
-          <div v-if="checkInfo(storeInfo.enterprise.enPhone)">手机:<a :href="'tel:' + storeInfo.enterprise.enPhone" target="_blank" class="content-line link-url">{{storeInfo.enterprise.enPhone}}</a></div>
-          <div v-if="checkInfo(storeInfo.enterprise.enWeixin)">微信:<span class="content-line">{{storeInfo.enterprise.enWeixin}}</span></div>
-          <div v-if="checkInfo(storeInfo.enterprise.enQQ)">Q&nbsp;Q:<span class="content-line">{{storeInfo.enterprise.enQQ}}</span></div>
+          <div v-if="checkInfo(storeInfo.enterprise.enTel)" class="clearfix"><span class="pull-left">电话:</span><a :href="'tel:' + storeInfo.enterprise.enTel" target="_blank" class="content-line link-url pull-left">{{storeInfo.enterprise.enTel}}</a></div>
+          <div v-if="checkInfo(storeInfo.enterprise.enPhone)" class="clearfix"><span class="pull-left">手机:</span><a :href="'tel:' + storeInfo.enterprise.enPhone" target="_blank" class="content-line link-url pull-left">{{storeInfo.enterprise.enPhone}}</a></div>
+          <div v-if="checkInfo(storeInfo.enterprise.enWeixin)" class="clearfix"><span class="pull-left">微信:</span><span class="content-line pull-left">{{storeInfo.enterprise.enWeixin}}</span></div>
+          <div v-if="checkInfo(storeInfo.enterprise.enQQ)" class="clearfix"><span class="pull-left">Q&nbsp;Q:</span><span class="content-line pull-left">{{storeInfo.enterprise.enQQ}}</span></div>
           <div v-if="!empty">暂无联系方式</div>
           <!--
           <div v-if="checkInfo(storeInfo.enterprise.enEmail)">邮件:<a :href="'mailto:' + storeInfo.enterprise.enEmail" target="_blank" class="content-line link-url">{{storeInfo.enterprise.enEmail}}</a></div>
@@ -534,6 +534,11 @@
         }
       }
     }
+    .mobile-modal-content {
+      .clearfix {
+        padding-left: 1rem;
+      }
+    }
   }
   .com-none-state {
     padding: .2rem 0;

BIN
static/images/mobile/@2x/brand/nostate-img.png