小程序
小游戏
企业微信
微信支付
扫描小程序码分享
安卓手机小程序中分享tif格式的图片,调用微信的showShareImageMenu方法为什么报path是非法的安卓手机小程序中分享tif格式的图片,调用微信的showShareImageMenu方法为什么报path是非法的,在ios是好的
2 个回答
加粗
标红
插入代码
插入链接
插入图片
上传视频
你好,麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)
你好,麻烦通过点击下方“反馈信息”按钮,提供出现问题的。
Taro.downloadFile({
url: url,
filePath: `${wx?.env.USER_DATA_PATH}/${fullName?.replace('TIF', 'JPG')}`,
success: (res) => {
console.log(res, 'res');
const saveOptions = {
path: res.filePath,
fail: failFn,
fileName: fullName,
success: (res: any) => {
resolve(res);
},
};
if (wx.showShareImageMenu) {
console.error(saveOptions, 'saveOptions');
wx.showShareImageMenu(saveOptions);
} else {
Taro.hideLoading();
Taro.showModal({
title: '提示',
content: '当前微信版本过低,无法使用该功能,请升级到最新微信版本后重试。',
});
}
附上截图一目了然
关注后,可在微信内接收相应的重要提醒。
请使用微信扫描二维码关注 “微信开放社区” 公众号
你好,麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)
Taro.downloadFile({
url: url,
filePath: `${wx?.env.USER_DATA_PATH}/${fullName?.replace('TIF', 'JPG')}`,
success: (res) => {
console.log(res, 'res');
const saveOptions = {
path: res.filePath,
fail: failFn,
fileName: fullName,
success: (res: any) => {
resolve(res);
},
};
if (wx.showShareImageMenu) {
console.error(saveOptions, 'saveOptions');
wx.showShareImageMenu(saveOptions);
} else {
Taro.hideLoading();
Taro.showModal({
title: '提示',
content: '当前微信版本过低,无法使用该功能,请升级到最新微信版本后重试。',
});
}
附上截图一目了然