|
[多端开发]
UIPhotoViewer 之前还好好的,今天在安卓上打死不行。
[复制链接]
本帖最后由 跳跳娃 于 2021-8-26 13:58 编辑
UIPhotoViewer模块,之前还好好的,今天重新打包后在安卓上打死不行。IOS上正常,测试了在代码UIPhotoViewer.open时安卓程序弹停止运行。然后关闭。重新绑定模块再取消模块再绑定再打包依然不行。
fangBigTu(it) {
var that = this;
var ex_bj=0;
var UIPhotoViewer = api.require('UIPhotoViewer');
console.log(it);
UIPhotoViewer.open({
images: ['http://th**.**/images/tupian2.jpg'],
placeholderImg: 'widget://res/img/apicloud.png',
bgColor: '#000'
}, function(ret, err) {
if (ret) {
if (ret.index != that.data.up_pic_index&&ex_bj==0&&that.data.up_pic_index !=0){
UIPhotoViewer.setIndex({index: that.data.up_pic_index });
ex_bj=1;
}
if (ret.eventType == 'click') {
UIPhotoViewer.close();
}
} else {
}
});
},
只要images参数有值,安卓下就程序直接奔溃,IOS正常、
|
|