Commit 8f2890f8 authored by Junling Bu's avatar Junling Bu
Browse files

chore[litemall-vue]: 删除客服组件

parent 76269132
......@@ -42,7 +42,6 @@
</div>
<van-goods-action>
<!-- <van-goods-action-mini-btn @click="doContact" icon="wangwang" iconClass="red afterTag"/> -->
<van-goods-action-mini-btn @click="toCart" icon="cart" :info="cartInfo"/>
<van-goods-action-mini-btn
:style="collectAdd ? 'color: #f7b444;':''"
......@@ -53,9 +52,6 @@
<van-goods-action-big-btn primary @click="openSku('buy')" text="立即购买"/>
</van-goods-action>
<van-popup v-model="showContact">
<md-kefu mobile="16454193338"/>
</van-popup>
</div>
</template>
......@@ -71,8 +67,6 @@ import {
Popup
} from 'vant';
import md_kefu from '@/vue/components/md-kefu/';
export default {
props: {
itemId: [String, Number]
......@@ -84,9 +78,7 @@ export default {
isLogin,
itemImgs: [],
collectAdd: false,
showContact: false,
cartInfo: '0',
mobile: '13454193338',
selectSku: {
selectedNum: 1,
selectedSkuComb: {}
......@@ -170,9 +162,6 @@ export default {
// });
// }
},
doContact() {
this.showContact = true;
},
toCart() {
this.$router.push({
name: 'cart'
......@@ -196,7 +185,6 @@ export default {
},
components: {
[md_kefu.name]: md_kefu,
[Popup.name]: Popup,
[Swipe.name]: Swipe,
[SwipeItem.name]: SwipeItem,
......
......@@ -6,14 +6,13 @@
<van-cell title="常见问题" isLink></van-cell>
</van-cell-group>
<van-popup v-model="showKefu">
<md-kefu mobile="16454193338"/>
电话 XXX
</van-popup>
</div>
</template>
<script>
import { Popup } from 'vant';
import md_kefu from '@/vue/components/md-kefu/';
export default {
data() {
......@@ -23,8 +22,7 @@ export default {
},
components: {
[Popup.name]: Popup,
[md_kefu.name]: md_kefu
[Popup.name]: Popup
}
};
</script>
......@@ -6,7 +6,7 @@
<!-- <van-cell icon="gold-bean" title="我的金豆" isLink /> -->
<van-cell icon="dingwei" title="收货地址" to="/user/address" isLink/>
<!-- <van-cell icon="id-card" title="实名认证" to="/user/autonym" isLink /> -->
<!-- <van-cell icon="kefu" title="服务中心" to="/user/server" isLink/> -->
<van-cell icon="kefu" title="服务中心" to="/user/server" isLink/>
</van-cell-group>
</div>
</template>
......
<template>
<div class="contact_popup">
<div class="contact_box contact_top">
<div>微信长按识别店主二维码</div>
<div><img src="../../../assets/images/qc_code.png" alt="店主二维码"></div>
</div>
<div class="contact_box">
<div><van-icon name="phone" /> {{mobile}}</div>
<div class="contact_btn"><a :href="'tel:' + mobile">联系店家</a></div>
</div>
</div>
</template>
<script>
export default {
name: 'md-kefu',
props: {
qcCode: String,
mobile: String
}
};
</script>
<style lang="scss" scoped>
.contact_popup {
white-space: nowrap;
background-color: $bg-color;
text-align: center;
border-radius: 5px;
.contact_box {
padding: 20px 30px;
> div:first-child {
margin-bottom: 20px;
}
}
.contact_top {
@include one-border;
&::after {
border-bottom-color: #999;
}
}
.contact_btn {
border: 1px solid $red;
width: 80%;
margin: 0 auto;
color: #fff;
background-color: $red;
padding: 5px 0;
border-radius: 3px;
a {
color: #fff;
display: block;
}
}
img {
max-width: 100%;
max-height: 100%;
}
}
</style>
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment