|
我只测了iPhone5和iPhone7。都出现了的。
var UIActionSelector = api.require('UIActionSelector');
UIActionSelector.open({
datas: 'widget://third/city.json',
layout: {
row: 5,
col: 3,
height: 30,
size: 12,
sizeActive: 14,
rowSpacing: 5,
colSpacing: 10,
maskBg: 'rgba(0,0,0,0.2)',
bg: '#fff',
color: '#888',
colorActive: '#f00',
colorSelected: '#00a2ff'
},
animation: true,
cancel: {
text: '取消',
size: 12,
w: 90,
h: 35,
bg: 'widget://image/common/city_button_bg02.png',
bgActive: '#ccc',
color: '#888',
colorActive: '#fff'
},
ok: {
text: '确定',
size: 12,
w: 90,
h: 35,
bg: 'widget://image/common/city_button_bg02.png',
bgActive: '#ccc',
color: '#888',
colorActive: '#fff'
},
title: {
text: '请选择城市商家',
size: 12,
h: 44,
bg: '#eee',
color: '#888'
},
fixedOn: api.frameName
}, function(ret, err) {
...
}); |
|