帖子
帖子
用户
博客
课程
12
返回列表 发新帖
67
帖子
2
勋章
1万+
Y币
模块咨询-Turbo 发表于 2017-2-10 14:08
试试1.0.3版本还存在这个问题吗?

刚刚修复了。1.0.3可以用了。谢谢。
20
帖子
0
勋章
90
Y币
IOS 10.3.1(最新)  UICustomPicker.setValue 仍旧无效 ,请验证。

var nowdate=new Date();
    var nowyear=nowdate.getFullYear();
    var nowmonth=nowdate.getMonth()+1;
    var yearstr=(nowyear-2)+'-'+nowyear;
      
    UICustomPicker = api.require('UICustomPicker');

UICustomPicker.open({
    rect: {
        x: 0,
        y:  $api.offset(header).h-20,
        w: api.frameWidth - 100,
        h: 50
    },
    styles: {
        bg: 'rgba(0,0,0,0)',
        normalColor: '#FFFF00',
        selectedColor: '#fff',
        selectedSize: 22,
        tagColor: '#fff',
        tagSize: 12
    },
    data: [{
        tag: '年',
        scope: yearstr
    }, {
        tag: '月',
        scope: '1-12'
    }],
    rows: 3,
    fixedOn: api.frameName,
    fixed: false
}, function(ret, err) {
    if (ret) {
       // alert(JSON.stringify(ret));
     if(ret.eventType=="selected"){ datestr=ret.data;}
    } else {
      //  alert(JSON.stringify(err));
    }
});

   UICustomPicker.setValue({
    id: 0,
    data: ['2017', '5']
});
12
您需要登录后才可以回帖 登录

本版积分规则