<view bindlongtap='copy' data-message='你要复制的内容'></view>
copy(e){
console.log(e,'长按复制')
var text = e.currentTarget.dataset.message
wx.setClipboardData({
data: text,
success: function (res) {
wx.showToast({
title: '复制成功',
});
}
})
},