From c0c68187246d6c05b264d888c86203c8b6fbbfe6 Mon Sep 17 00:00:00 2001 From: yvan.ni Date: Tue, 23 Aug 2022 09:30:10 +0800 Subject: [PATCH] 预览图片 --- pages/giftpack/giftpacklist/giftpacklist.js | 8 ++++++++ 1 file changed, 8 insertions(+), 0 deletions(-) diff --git a/pages/giftpack/giftpacklist/giftpacklist.js b/pages/giftpack/giftpacklist/giftpacklist.js index 39044b3..7e11402 100644 --- a/pages/giftpack/giftpacklist/giftpacklist.js +++ b/pages/giftpack/giftpacklist/giftpacklist.js @@ -1147,6 +1147,14 @@ Page({ savePic() { getApp().savePic(this); }, + // 预览海报 + previewPoster() { + getApp().globalData.no_clear=1; + wx.previewImage({ + current: this.data.shareImgPath, // 当前显示图片的http链接 + urls: [this.data.shareImgPath] ,// 需要预览的图片http链接列表 + }); + }, -- libgit2 0.21.4