|
|
@@ -165,8 +165,8 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="list clearfix">
|
|
|
- <div class="pull-left cancat" @click="cancatAlert(item)">
|
|
|
- <i class="iconfont icon-kefu1"></i>联系买家
|
|
|
+ <div class="pull-left cancat" @click.stop="showStoreInfo = true">
|
|
|
+ <i class="iconfont icon-kefu1"></i>联系卖家
|
|
|
</div>
|
|
|
<div class="pull-right clearfix">
|
|
|
<div class="pull-left">加入购物车</div>
|
|
|
@@ -183,6 +183,19 @@
|
|
|
v-else
|
|
|
></empty-status>
|
|
|
</div>
|
|
|
+ <!-- 联系卖买家 -->
|
|
|
+ <div class="mobile-modal" v-if="showStoreInfo" @touchmove="preventTouchMove($event)">
|
|
|
+ <div class="mobile-modal-box mobile-link-en">
|
|
|
+ <div class="mobile-modal-header">联系方式<i @click="showStoreInfo = false" class="icon-guanbi iconfont"></i></div>
|
|
|
+ <div class="mobile-modal-content">
|
|
|
+ <div v-if="store.enterprise.enTel" class="clearfix"><span class="pull-left">电话:</span><a :href="'tel:' + store.enterprise.enTel" target="_blank" class="content-line link-url pull-left">{{store.enterprise.enTel}}</a></div>
|
|
|
+ <div v-if="store.enterprise.enPhone" class="clearfix"><span class="pull-left">手机:</span><a :href="'tel:' + store.enterprise.enPhone" target="_blank" class="content-line link-url pull-left">{{store.enterprise.enPhone}}</a></div>
|
|
|
+ <div v-if="store.enterprise.enWeixin" class="clearfix"><span class="pull-left">微信:</span><span class="content-line pull-left">{{store.enterprise.enWeixin}}</span></div>
|
|
|
+ <div v-if="store.enterprise.enQQ" class="clearfix"><span class="pull-left">Q Q:</span><span class="content-line pull-left">{{store.enterprise.enQQ}}</span></div>
|
|
|
+ <div v-if="!empty">暂无联系方式</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
<remind-box :title="collectResult" :timeoutCount="timeoutCount"></remind-box>
|
|
|
<login-box @onLoginBoxClose="showLoginBox = false" v-if="showLoginBox" :url="url"></login-box>
|
|
|
<pull-up :searchMore="fetching" :allPage="allPage" :page="page" @pullUpAction="getMoreSearch"></pull-up>
|
|
|
@@ -193,6 +206,7 @@
|
|
|
export default {
|
|
|
data () {
|
|
|
return {
|
|
|
+ showStoreInfo: false,
|
|
|
activeType: '',
|
|
|
collectResult: '收藏成功',
|
|
|
timeoutCount: 0,
|
|
|
@@ -249,6 +263,9 @@
|
|
|
this.clickPhone = false
|
|
|
},
|
|
|
computed: {
|
|
|
+ empty () {
|
|
|
+ return this.checkInfo(this.store.enterprise.enTel) || this.checkInfo(this.store.enterprise.enPhone) || this.checkInfo(this.store.enterprise.enWeixin) || this.checkInfo(this.store.enterprise.enQQ)
|
|
|
+ },
|
|
|
store () {
|
|
|
return this.$store.state.shop.storeInfo.store.data
|
|
|
},
|
|
|
@@ -281,6 +298,9 @@
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ checkInfo: function (str) {
|
|
|
+ return str && str.trim() !== ''
|
|
|
+ },
|
|
|
goAttach: function (url) {
|
|
|
if (this.user.logged) {
|
|
|
console.log(this.component)
|