例如这个:
<view>
<image src='/img/img/servicewx.png' class='card-img'>
<button open-type="contact" class='card-img' style="opacity:0">进入客服会话</button>
</image>
<button open-type="contact" class='buy'></button>
</view>
/*客服 */
.card-img {
width: 100rpx;
height: 100rpx;
position: fixed;
right: 30rpx;
bottom: 201rpx;
}
button::after {
background: none;
}
.buy {
width: 100rpx;
height: 100rpx;
position: fixed;
right: 30rpx;
bottom: 109rpx;
opacity: 0;
}