复制文字
@click=‘copywx’
// 复制微信号copywx(){var that = this;wx.setClipboardData({data: 'wx:123456',success(res){wx.showToast({title: '复制成功',})}})}
长按保存图片
@longpress=“saveImg()”
methods:{// 保存图片saveImg(w){console.log(w)uni.downloadFile({//下载图片url:'/static/imges/mine/Customer_Service.png',success:(res)=>{console.log(res.tempFilePath)uni.saveImageToPhotosAlbum({//将图片保存在手机filePath:res.tempFilePath,//保存的位置success: (res) => {console.log(res)console.log('长按保存图片')}})}})},}