完成客服
This commit is contained in:
parent
529c001b66
commit
df0b61a179
|
@ -2,7 +2,7 @@
|
||||||
<view class="components-service">
|
<view class="components-service">
|
||||||
<widget-modal v-show="showService" @close="close" title="请选择客服">
|
<widget-modal v-show="showService" @close="close" title="请选择客服">
|
||||||
<view class="service-list">
|
<view class="service-list">
|
||||||
<button class="btn-item" @click="call">电话客服</button>
|
<button class="btn-item" @click="utils.callPhone(serviceMobile)">电话客服</button>
|
||||||
<button class="btn-item" open-type="contact">微信客服</button>
|
<button class="btn-item" open-type="contact">微信客服</button>
|
||||||
</view>
|
</view>
|
||||||
</widget-modal>
|
</widget-modal>
|
||||||
|
@ -11,10 +11,14 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import WidgetModal from "@/components/widgets/modal";
|
import WidgetModal from "@/components/widgets/modal";
|
||||||
|
import { mapState } from "vuex";
|
||||||
export default {
|
export default {
|
||||||
name: "widget-service",
|
name: "widget-service",
|
||||||
data() {
|
data() {
|
||||||
return {};
|
return {
|
||||||
|
utils: this.$utils,
|
||||||
|
serviceMobile: "",
|
||||||
|
};
|
||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
showService: {
|
showService: {
|
||||||
|
@ -25,8 +29,16 @@ export default {
|
||||||
components: {
|
components: {
|
||||||
WidgetModal,
|
WidgetModal,
|
||||||
},
|
},
|
||||||
|
computed: {
|
||||||
|
...mapState({
|
||||||
|
platformData: (state) => state.system.platformData,
|
||||||
|
}),
|
||||||
|
},
|
||||||
created() {},
|
created() {},
|
||||||
mounted() {},
|
async mounted() {
|
||||||
|
await this.$store.dispatch("system/platformData");
|
||||||
|
this.serviceMobile = this.platformData.serviceMobile;
|
||||||
|
},
|
||||||
destroyed() {},
|
destroyed() {},
|
||||||
methods: {
|
methods: {
|
||||||
close() {
|
close() {
|
||||||
|
|
Loading…
Reference in New Issue