|
- var NVNavigationBar = api.require('NVNavigationBar');
- NVNavigationBar.open({
- rect: {
- x: 0,
- y: 45,
- w: api.frameWidth,
- h: 42
- },
- styles: {
- orientation: 'horizontal',
- bg: '#FFF',
- bgAlpha: 1,
- font: {
- size: 14,
- sizeSelected: 14,
- color: '#000',
- colorSelected: '#f00',
- alpha: 1,
- bold: true
- },
- itemSize: {
- w: 90,
- h: 44
- }
- },
- items: [{
- title: '全部',
- bg: '#fff',
- },{
- title: '200万以上',
- bg: '#fff',
- },{
- title: '100~200万',
- bg: '#fff',
- },{
- title: '50~100万',
- bg: '#fff',
- },{
- title: '30~50万',
- bg: '#fff',
- },{
- title: '30万以下',
- bg: '#fff',
- }],
- selectedIndex: 0,
- fixedOn: api.frameName,
- bounces: true,
- id: 'two'
- }, function(ret, err) {
- if(ret.eventType=='click') {
- alert(JSON.stringify(ret));
- }
- });
复制代码 |
|