Эх сурвалжийг харах

修改店铺基本信息显示判断

yangc 7 жил өмнө
parent
commit
736bb86e79

+ 6 - 8
components/store/BaseInfo.vue

@@ -29,14 +29,12 @@
             联系我们
           </h3>
         </div>
-        <div ng-if="storeInfo.enterprise">
-          <div class="contact-text">
-            <div v-text="storeInfo.enterprise.enName">深圳市华商龙商务互联科技有限公司</div>
-            <div v-if="storeInfo.enterprise.enAddress.length >0">地址:<span v-text="storeInfo.enterprise.enAddress">深圳市南山区科技园科技南五路英唐大厦一楼</span></div>
-            <div v-if="storeInfo.enterprise.enTel.length >0">电话:<span v-text="storeInfo.enterprise.enTel">0755-26038000/26038047/26038008/86140880</span></div>
-            <div v-if="storeInfo.enterprise.enFax && storeInfo.enterprise.enFax.length > 0">传真:<span v-text="storeInfo.enterprise.enFax">0755-26038111</span></div>
-             <div v-if="storeInfo.enterprise.enUrl.length >0">官网地址:<a :href=storeInfo.enterprise.enUrl target="_blank">{{storeInfo.enterprise.enUrl}}</a></div>
-          </div>
+        <div class="contact-text">
+          <div v-text="storeInfo.enterprise.enName || '-'"></div>
+          <div>地址:<span v-text="storeInfo.enterprise.enAddress || '-'"></span></div>
+          <div>电话:<span v-text="storeInfo.enterprise.enTel || '-'"></span></div>
+          <div>传真:<span v-text="storeInfo.enterprise.enFax || '-'"></span></div>
+          <div>官网地址:<a :href=storeInfo.enterprise.enUrl target="_blank">{{storeInfo.enterprise.enUrl || '-'}}</a></div>
         </div>
       </div>
     </div>