You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
1003 B

2 years ago
<template>
<view class="right-nav row">
<view class="right-nav-button col-12" :style="{backgroundImage:'url('+staticImage.wechat+')'}"></view>
<view class="right-nav-button col-12" :style="{backgroundImage:'url('+staticImage.chat+')'}"></view>
<view @click="callPhone('15012345678')" class="right-nav-button col-12" :style="{backgroundImage:'url('+staticImage.phone+')'}"></view>
2 years ago
</view>
</template>
<script>
import { imghost } from '@/config/host.js'
export default{
data() {
return {
title: 'Hello',
loading: true,
staticImage:{
wechat: imghost + "/static/image/right-button-wechat.png",
chat: imghost + "/static/image/right-button-chat.png",
phone: imghost + "/static/image/right-button-phone.png",
}
2 years ago
}
},
onLoad() {
2 years ago
},
methods: {
callPhone(phone){
uni.makePhoneCall({
phoneNumber: phone.toString()
});
},
2 years ago
}
}
</script>
<style lang="scss">
@import './components/index.scss';
2 years ago
</style>