1.页面
<image class="icon40" bindtap="addTeam" bindtouchmove="viewTouchMove" src="{{BaseURL}}uploadFile/groupImages/ProblemReport-zhu.png" style="left:{{left}}px;top:{{top}}px;"></image>
2.样式
.icon40 {
height: 50px;
width: 50px;
position: fixed;
bottom: 140rpx;
right: 40rpx;
border-radius: 50%;
z-index: 99999999;
}
3.js
//底部加好移动
viewTouchMove: function(e) {
var that = this;
that.setData({
left: e.touches[0].clientX - 50,
top: e.touches[0].clientY - 50
})
},