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