55 lines
1.2 KiB
Vue
55 lines
1.2 KiB
Vue
|
|
<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>
|