帖子
帖子
用户
博客
课程
12下一页
返回列表 发新帖
显示全部楼层
35
帖子
0
勋章
229
Y币

[BUG] UISelector是不是对版本要有要求,怎么放在IOS7.1上不起作用?

[复制链接]
发表于 2016-3-21 13:33:04
本帖最后由 為大哥科學家 于 2016-3-21 13:51 编辑

如题,把uiselector在IOS7.1上运行无效(尝试过弄回调函数),无论是打包还是apploader。已经添加模块模块了。
代码如下:
  1. UISelector = api.require('UISelector');
  2.         UISelector.open({
  3.             rect: {
  4.                 x: 0,
  5.                 y: header_h + main_h,
  6.                 w: body_w,
  7.                 h: body_h - header_h - main_h
  8.             },
  9.             styles:{
  10.                 bg: '#fff',   
  11.                 text: {                  
  12.                     size: 14,            
  13.                     selected: '#1abc9c',     
  14.                     normal: '#989898'        
  15.                 },
  16.                 item: {                  
  17.                     w: 80,               
  18.                     h: 38,               
  19.                     normal: '#fff',   
  20.                     selected: '#fff',  
  21.                     zoomIn: 1.2
  22.                 }
  23.             },
  24.             rows: 5,
  25.             bounce: false,
  26.             fixed: true,
  27.             data: 'widget://res/cityList.json'
  28.         },function( ret, err){
  29.             if( ret ){
  30.                 if (ret.eventType == 'show') {
  31.                     UISelector.hide();
  32.                 }
  33.                 /*alert(JSON.stringify(ret));*/
  34.                 if (ret.eventType == 'selected') {
  35.                     $province = ret.selects[0].content;
  36.                     $city = ret.selects[1].content == "--" ? '':ret.selects[1].content;
  37.                     $area = ret.selects[2] ? ret.selects[2].content:'';
  38.                     if (ret.selects[2]) $area = ret.selects[2].content == "--" ? '':ret.selects[2].content;
  39.                 }
  40.             }else{
  41.                 alert(JSON.stringify(err));
  42.             }
  43.         });
复制代码


0
帖子
0
勋章
1320
Y币
提示: 作者被禁止或删除 内容自动屏蔽
35
帖子
0
勋章
229
Y币
BUG验证 发表于 2016-3-21 15:31
问题未复现,请贴一下二维码。

itms-services://?action=download-manifest&url=https://downloadpkg.apicloud.com:443/zip/e7/98/e79877623f4a702c65d6b3d89e9e9c11.plist
0
帖子
0
勋章
1320
Y币
提示: 作者被禁止或删除 内容自动屏蔽
35
帖子
0
勋章
229
Y币
BUG验证 发表于 2016-3-21 17:08
亲,这不是二维码吧

- -,一定要二维码吗? QQ截图20160321170721.png
35
帖子
0
勋章
229
Y币
BUG验证 发表于 2016-3-21 17:08
亲,这不是二维码吧

能大概给个时间说答复吗?目前快上线了
ios8和ios9上有问题没?
确保rect里的参数都没问题
35
帖子
0
勋章
229
Y币
模块咨询-Turbo 发表于 2016-3-21 17:31
ios8和ios9上有问题没?
确保rect里的参数都没问题

IOS8和IOS9暂时没测,不过JSON文件是绝对没有问题的
為大哥科學家 发表于 2016-3-21 18:11
IOS8和IOS9暂时没测,不过JSON文件是绝对没有问题的


         open里加上这行代码:   fixedOn:api.frameName
35
帖子
0
勋章
229
Y币
本帖最后由 為大哥科學家 于 2016-3-22 14:12 编辑
模块咨询-Turbo 发表于 2016-3-21 18:43
open里加上这行代码:   fixedOn:api.frameName

现在查到问题了,“无法读取JSON文件”。但是在Android上面可以的啊。json如下:
cityList.rar 下载附件
2016-3-22 14:12上传16.28 KB下载次数: 166
12下一页
您需要登录后才可以回帖 登录

本版积分规则