intelligentGroup/components/secratary.vue

55 lines
1.2 KiB
Vue
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<template>
<view class="wrapper" v-if="isSecratary">
<view class="bg" @click="onTap">
<view class="edit" @click.stop>
<view class="bgcolor"></view>
<view class="title">联系秘书处</view>
<view class="ercode">
<image :src="HomeContent.secrataryqrcode" show-menu-by-longpress="true"></image>
<text>扫码添加秘书处微信</text>
</view>
<!-- -->
<view class="mt-15" @click="getCall(HomeContent.secrataryphone)">
<uni-icons type="phone-filled" size="40"></uni-icons>
</view>
<view @click="getCall(HomeContent.secrataryphone)">
<text class="bold size16 mb-5 mt-10">{{HomeContent.secrataryphone}}</text>
点击拨打
</view>
</view>
</view>
</view>
</template>
<script>
import {
mapState
} from "vuex";
export default {
name: "secratary",
data() {
return {
};
},
computed: {
...mapState(["HomeContent", 'isSecratary']),
},
methods: {
onTap() {
this.$store.commit("changeSecratary", false);
},
getCall(num) {
uni.makePhoneCall({
phoneNumber: num //仅为示例
}).catch((e) => {
console.log(e) //用catch(e)来捕获错误{makePhoneCall:fail cancel}
});
}
}
}
</script>
<style>
</style>