帖子
帖子
用户
博客
课程
显示全部楼层
4
帖子
0
勋章
48
Y币

[BUG] UIMediaScanner模块 open后,相机文件夹照片不存在

[复制链接]
发表于 2017-11-27 10:25:48
今天 用  UIMediaScanner模块 open后,第一次打开 相机文件夹 ,里面的照片还没问题。
但是第二次打开后出现如下图问题,
微信图片_20171127101418.png

选中图片后,ret.list 里 无照片  

代码如下:
        var UIMediaScanner = api.require('UIMediaScanner');
        UIMediaScanner.open({
            type: 'picture',
            column: 4,
            classify: true,
            max: maxnum,
            sort: {
                key: 'time',
                order: 'desc'
            },
            texts: {
                stateText: '已选择*项',
                cancelText: '取消',
                finishText: '完成',
                classifyTitle:'相簿'
            },
            styles: {
                bg: '#fff',
                mark: {
                    icon: '',
                    position: 'bottom_left',
                    size: 20
                },
                nav: {
                    bg: '#eee',
                    stateColor: '#000',
                    stateSize: 18,
                    cancelBg: 'rgba(0,0,0,0)',
                    cancelColor: '#000',
                    cancelSize: 18,
                    finishBg: 'rgba(0,0,0,0)',
                    finishColor: '#000',
                    finishSize: 18
                }
            },
            exchange: true,
            rotation: false
        }, function(res) {
            if (res) {
                    // alert(JSON.stringify(res));
                    // console.log(JSON.stringify(res));
                    var list=res.list,
                            zonSize=0;

                    if(list&&list.length&&list.length>0){
                            var imgS=[];

                            for(var i=0;i<list.length;i++){

                                    (function(j){
                                              ……
                                    })(i);
                 
                            }                               
                                                            
                    }else{
                            _toast("你没有要上传的图片!");
                    }                                    
            }
        });

2
帖子
0
勋章
2271
Y币
您好,测试手机型号版本是?重启一下手机试试,是否正常。
4
帖子
0
勋章
48
Y币
cjapi 发表于 2017-11-27 10:33
您好,测试手机型号版本是?重启一下手机试试,是否正常。

手机型号是 :vivo Y13L   

版本 :Android 4.4.4
4
帖子
0
勋章
48
Y币
cjapi 发表于 2017-11-27 10:33
您好,测试手机型号版本是?重启一下手机试试,是否正常。

你好 。我找到原因了,是我自己删缓存时操作错误导致的。
麻烦了
2
帖子
0
勋章
2271
Y币
td水 发表于 2017-11-27 10:59
你好 。我找到原因了,是我自己删缓存时操作错误导致的。
麻烦了

恩,好的。
您需要登录后才可以回帖 登录

本版积分规则