first
This commit is contained in:
14
commons/utils/prveImg.js
Normal file
14
commons/utils/prveImg.js
Normal file
@@ -0,0 +1,14 @@
|
||||
export function prveImg(arr, current) {
|
||||
uni.previewImage({
|
||||
urls: arr,current,
|
||||
longPressActions: {
|
||||
itemList: ['发送给朋友', '保存图片', '收藏'],
|
||||
success: function(data) {
|
||||
console.log('选中了第' + (data.tapIndex + 1) + '个按钮,第' + (data.index + 1) + '张图片');
|
||||
},
|
||||
fail: function(err) {
|
||||
console.log(err.errMsg);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user