目前鸿蒙用户都是百分百重现,鸿蒙系统,企业微信扩展程序内,拍照和选择图都显示不了,如视频显示:
<img height="79px" width="79px"
@click="showPhotoBrowser(index)"
:src="(itemSrc.type?itemSrc.localID:itemSrc.txtsrc)">
显示图片代码如上,安卓和IOS都是正常显示的,如下图:
WX.chooseImage使用代码如下:
// 点击选择图片
addClick: function (event) {
let vm = this;
wx.chooseImage({
count: vm.maxNum - vm.lstImages.length,
sizeType: vm.sizeType,
sourceType: vm.sourceType,
success: vm.successAfterChoosed
});
},
// wx.chooseImage的选择图片后获得本地的图片ID
successAfterChoosed: function (res) {
let vm = this;
for (let i = 0; i < res.localIds.length; i++) {
alert(JSON.stringify(res.localIds[i]));
vm.lstImages.push({
'type': 1,// type 0:服务端传回图片 1:本地选择图片
'txtsrc': '',
'serverID': '',
'localID': res.localIds[i]
});
}
},
求官方修复bug

企业微信工作台内,网页部署:
安卓正常显示效果: