shenjj 7 år sedan
förälder
incheckning
9baf956a62

+ 1 - 1
components/mobile/applyPurchase/SayPriceInfo.vue

@@ -26,7 +26,7 @@
           </div>
           <div class="base-info">
             <div class="content-line">
-              买家:<span>{{purchaseDetail.inquiry.enterprise.enName || purchaseDetail.userName}}</span>
+              买家:<span>{{purchaseDetail.inquiry.enterprise && purchaseDetail.inquiry.enterprise.enName || purchaseDetail.userName}}</span>
             </div>
             <div class="content-line">
               联系电话:<span>{{purchaseDetail.userTel || '-'}}</span>

+ 28 - 3
components/store/BaseInfo.vue

@@ -32,9 +32,12 @@
         <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.enAddress.length >0"><span class="public">地址:</span><span v-text="storeInfo.enterprise.address || storeInfo.enterprise.enAddress">深圳市南山区科技园科技南五路英唐大厦一楼</span></div>
+            <div v-if="storeInfo.enterprise.enTel.length >0"><span class="public">电话:</span><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 class="public">传真:</span><span v-text="storeInfo.enterprise.enFax">0755-26038111</span></div>
+            <div v-if="storeInfo.enterprise.enPhone && storeInfo.enterprise.enPhone.length > 0"><span class="public">手机:</span><span v-text="storeInfo.enterprise.enPhone">136********</span></div>
+            <div v-if="storeInfo.enterprise.enWeixin && storeInfo.enterprise.enWeixin.length > 0"><span class="public">微信:</span><span v-text="storeInfo.enterprise.enWeixin">好名字更容易让人记住你</span></div>
+            <div v-if="storeInfo.enterprise.enQQ && storeInfo.enterprise.enQQ.length > 0"><span class="public">Q&nbsp;Q:</span><span v-text="storeInfo.enterprise.enQQ">123456789</span></div>
           </div>
         </div>
       </div>
@@ -162,6 +165,28 @@ export default {
 		line-height: 28px;
 	}
 
+  #contact-fragment .contact-text div {
+		height: 25px;
+	}
+
+  #contact-fragment .contact-text span{
+    display:inline-block;
+    height: 100%
+  }
+  #contact-fragment .contact-text .public {
+    width:44px;
+    display:inline-block;
+    text-align: justify;
+    vertical-align:top;
+  }
+  #contact-fragment .contact-text .public::after{
+    content:"";
+    display: inline-block;
+    width:100%;
+    overflow:hidden;
+    height:0;
+  }
+
   #proof-fragment .proof-title {
 		margin-bottom: 10px;
 	}

+ 32 - 3
components/store/common/StoreHeader.vue

@@ -43,13 +43,22 @@
             <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">
-                  <span>电话:</span><span v-text="storeInfo.enterprise.enTel"></span>
+                  <span class="public">电话:</span><span v-text="storeInfo.enterprise.enTel"></span>
                 </li>
                 <li v-if="storeInfo.enterprise.enFax">
-                  <span>传真:</span><span v-text="storeInfo.enterprise.enFax"></span>
+                  <span class="public">传真:</span><span v-text="storeInfo.enterprise.enFax"></span>
                 </li>
                 <li v-if="storeInfo.enterprise.address || storeInfo.enterprise.enAddress">
-                  <span>地址:</span><span v-text="storeInfo.enterprise.address || storeInfo.enterprise.enAddress"></span>
+                  <span class="public">地址:</span><span v-text="storeInfo.enterprise.address || storeInfo.enterprise.enAddress"></span>
+                </li>
+                <li v-if="storeInfo.enterprise.enPhone || storeInfo.enterprise.enPhone">
+                  <span class="public">手机:</span><span v-text="storeInfo.enterprise.enPhone || storeInfo.enterprise.enPhone"></span>
+                </li>
+                <li v-if="storeInfo.enterprise.enWeixin || storeInfo.enterprise.enWeixin">
+                  <span class="public">微信:</span><span v-text="storeInfo.enterprise.enWeixin || storeInfo.enterprise.enWeixin"></span>
+                </li>
+                <li v-if="storeInfo.enterprise.enQQ || storeInfo.enterprise.enQQ">
+                  <span class="public">Q&nbsp;Q:</span><span v-text="storeInfo.enterprise.enQQ || storeInfo.enterprise.enQQ"></span>
                 </li>
                 <li class="text-right">
                   <nuxt-link :to="{ name: 'store-uuid-description', params: { uuid: storeInfo.uuid } }">了解更多&gt;</nuxt-link>
@@ -315,6 +324,26 @@ export default {
 	#nav_fragment .shop-contact a{
 		color: rgb(33,71,151);
 	}
+  #nav_fragment .shop-contact li {
+    height: 25px;
+  }
+  #nav_fragment .shop-contact span{
+    display:inline-block;
+    height: 100%
+  }
+  #nav_fragment .shop-contact .public {
+    width:44px;
+    display:inline-block;
+    text-align: justify;
+    vertical-align:top;
+  }
+  #nav_fragment .shop-contact .public::after{
+    content:"";
+    display: inline-block;
+    width:100%;
+    overflow:hidden;
+    height:0;
+  }
 
 	#nav_fragment #search_input {
 		height: 40px;