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

[BUG] uicitylist及citylist在安卓云编译闪退

[复制链接]
发表于 2017-5-11 09:56:37
在使用uicitylist或者citylist在本地测试或者自定义loadder使用是没有问题的。但在云编译打开的时候就直接杀掉app。两个模块是没有同时引用的。测试机子小米note
1.png
2
帖子
0
勋章
2271
Y币
您好,我们测试一下。
380
帖子
4
勋章
6
Y币
解压一下你云编译的安装包。找到widget目录,然后找找res目录有没有UICityList.json 文件
6
帖子
0
勋章
21
Y币
技术支持-F 发表于 2017-5-11 10:23
解压一下你云编译的安装包。找到widget目录,然后找找res目录有没有UICityList.json 文件 ...

有的。自定义loader或者直接本地测试一点问题都没有
0
帖子
0
勋章
1320
Y币
提示: 作者被禁止或删除 内容自动屏蔽
6
帖子
0
勋章
21
Y币
BUG验证 发表于 2017-5-11 10:33
经过测试未复现你的问题,请发出来一下你的安装包,

最简单的demo
citylist.zip 下载附件
2017-5-11 10:44上传132.05 KB下载次数: 102
0
帖子
1
勋章
1640
Y币

发一下闪退log
2
帖子
0
勋章
2271
Y币
var UICityList = api.require('UICityList');
            UICityList.open({
                rect : {
                    x : 0,
                    y : 0,
                    w : api.frameWidth,
                    h : api.frameHeight
                },
                resource : 'widget://res/UICityList.json',
                styles : {
                    searchBar : {
                        bgColor : '#696969',
                        cancelColor : '#E3E3E3'
                    },
                    location : {
                        color : '#696969',
                        size : 12
                    },
                    sectionTitle : {
                        bgColor : '#eee',
                        color : '#000',
                        size : 12
                    },
                    item : {
                        bgColor : '#fff',
                        activeBgColor : '#696969',
                        color : '#000',
                        size : 14,
                        height : 40
                    },
                    indicator : {
                        bgColor : '#fff',
                        color : '#696969'
                    }
                },
                currentCity : '北京',
                locationWay : 'GPS',
                hotTitle : '热门城市',
                fixedOn : api.frameName,
                placeholder : '输入城市名或首字母查询'
            }, function(ret, err) {
                if (ret) {
                    alert(JSON.stringify(ret));
                } else {
                    alert(JSON.stringify(err));
                }
            });
您好,可能云编译的时候,UICityList.json文件没有同步进去导致的,我这边测试正常。

Android.png
您需要登录后才可以回帖 登录

本版积分规则