<template>
  <view class="float-phone-icon" @click="makeCall">
	<u-icon size="60" color="#c10d12" class="row__icon" name="kefu-ermai"></u-icon>
  </view>
</template>

<script>
export default {
  methods: {
    makeCall() {
      uni.makePhoneCall({
        phoneNumber: '0519-81191800', // 这里替换为你要拨打的电话号码
        success: function () {
          console.log('拨打电话成功！')
        },
        fail: function () {
          console.log('拨打电话失败！')
        }
      })
    }
  }
}
</script>

<style scoped>
.float-phone-icon {
    position: fixed;
    right: 40rpx;
    bottom: 240rpx;
    width: 100rpx;
    height: 100rpx;
    z-index: 99999;
    border-radius: 100rpx;
    line-height: 100rpx;
	background-color: #fff;
	box-shadow: 1rpx 1rpx 10rpx rgba(0,0,0,0.3);
	    display: flex;
	    justify-content: center;
}
</style>