Explorar o código

代理经销-查看更多店铺,改为内部路由跳转;店铺首页店铺信息enAddress字段更改为address,并加上空值控制。

yangc %!s(int64=8) %!d(string=hai) anos
pai
achega
aecf6a6120

+ 1 - 1
components/provider/ExcellentSuppliers.vue

@@ -2,7 +2,7 @@
   <div class="container marketing" style="padding-top: 25px;">
     <div class="head">
       <span class="title">优秀商家</span>
-      <a class="see-more" href="/provider/list" v-if="isShowMore">查看更多</a>
+      <nuxt-link class="see-more" :to="'/provider/list'" v-if="isShowMore">查看更多</nuxt-link>
     </div>
     <ul class="list-unstyled list-inline">
       <li class="store-box" v-for="(store, index) in stores" :class="{ 'margin-left-zero' : index % 5 == 0}" >

+ 4 - 4
components/store/common/StoreHeader.vue

@@ -27,14 +27,14 @@
             </div>
             <div style="background: #FFFFFF;" v-if="isOpen">
               <ul class = "shop-contact list-unstyled" style="padding: 15px 0; margin-bottom: 0; border-top: #e8e8e8 1px solid; margin-top: 20px;">
-                <li v-if="storeInfo.enterprise.enTel.length > 0">
+                <li v-if="storeInfo.enterprise.enTel&&storeInfo.enterprise.enTel.length > 0">
                   <span>电话:</span><span v-text="storeInfo.enterprise.enTel"></span>
                 </li>
-                <li v-if="storeInfo.enterprise.enFax.length > 0">
+                <li v-if="storeInfo.enterprise.enFax&&storeInfo.enterprise.enFax.length > 0">
                   <span>传真:</span><span v-text="storeInfo.enterprise.enFax"></span>
                 </li>
-                <li v-if="storeInfo.enterprise.enAddress.length > 0">
-                  <span>地址:</span><span v-text="storeInfo.enterprise.enAddress"></span>
+                <li v-if="storeInfo.enterprise.address&&storeInfo.enterprise.address.length > 0">
+                  <span>地址:</span><span v-text="storeInfo.enterprise.address"></span>
                 </li>
                 <li class="text-right">
                   <nuxt-link :to="{ name: 'store-uuid-description', params: { uuid: storeInfo.uuid } }">了解更多&gt;</nuxt-link>