按钮标签的open-type="" 设置为contact 就行 具体内容详情https://uniapp.dcloud.io/component/button
<button open-type="contact" ></button>
关于如何在其他地方能点击出发button的问题 其实可以用定位解决例如
.serveimg{
position: fixed;
top: 850rpx;
right: 23rpx;
width: 115rpx;
height: 162rpx;
padding-top: 22rpx;
box-sizing: border-box;
}
.serveimg>button{
width: 100%;
height: 100%;
position: absolute;
top: 22rpx;
left: 0;
z-index: 300;
user-select: none;
background-color: transparent;
}
.serveimg>button::after{
border: none; //解决button边框问题
}
如有不明白的地方请留言或者私信我