Browse Source

手机联系弹窗,增加联系方式

gaoxm 7 years ago
parent
commit
6aa868e4f5

+ 2 - 3
components/mobile/common/StatisticsMobile.vue

@@ -221,8 +221,8 @@
       <li v-for="(item, index) in itemRight">
         <span class="number" v-if="item.type === 2">
           <span class="name" v-html="nameRight[index]"></span>
-          <span class="month" v-if="index === 5">(上月)</span>
-          <span class="month" v-if="index === 6">(本月)</span>
+          <span class="month" v-if="item.id === '上月询价单'">(上月)</span>
+          <span class="month" v-if="item.id === '本月询价单'">(本月)</span>
           <span class="num" v-html="formatDouble(item.count)"></span>
           <span class="unit">条</span>
         </span>
@@ -295,7 +295,6 @@
             let isChange = true
             this.timerIndexL++
             let _transitionEvent = whichTransitionEvent()
-            console.log(this.$refs.pingdanListWrapper)
             _transitionEvent && this.$refs.pingdanListWrapper.addEventListener(
               _transitionEvent, () => {
                 if (isChange) {

+ 8 - 2
pages/mobile/product/_batchCode.vue

@@ -115,8 +115,11 @@
           <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-else>暂无联系方式</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="!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>
 -->
@@ -176,6 +179,9 @@
       },
       component () {
         return this.$store.state.shop.storeInfo.component.data
+      },
+      empty () {
+        return this.checkInfo(this.storeInfo.enterprise.enTel) || this.checkInfo(this.storeInfo.enterprise.enPhone) || this.checkInfo(this.storeInfo.enterprise.enWeixin) || this.checkInfo(this.storeInfo.enterprise.enQQ)
       }
     },
     methods: {