You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

35 lines
771 B

<template>
<view>
<image src="../../static/cabtact.png" mode="" @click="yulan"></image>
</view>
</template>
<script>
export default {
data() {
return {
}
},
methods: {
yulan(){
uni.previewImage({
urls: ["https://zsy-m.mianyang.cn/upload/2021/12/08/c339a2e0-3be1-4691-81ab-5bc8d4083116.png"],
longPressActions: {
itemList: ['发送给朋友', '保存图片', '收藏'],
success: function(data) {
console.log('选中了第' + (data.tapIndex + 1) + '个按钮,第' + (data.index + 1) + '张图片');
},
fail: function(err) {
console.log(err.errMsg);
}
}
});
}
}
}
</script>
<style>
</style>