|
Android
function open(x,y,w,h){
UIInput.open({
rect: {
x: x,//40,
y: y,//90,
w: w,//210,
h: h,//30
},
fixed:true,
styles: {
bgColor: '#fff',
size: 14,
color: '#000',
placeholder: {
color: '#ccc'
}
},
autoFocus: false,
maxRows: 0,
placeholder: '请输入或者扫描条形码',
keyboardType: 'default',
fixedOn:api.frameName
}, function(ret) {
if(ret.eventType == 'search') {
getMsg(id);
// $('#myalert2').fadeOut();hide(id2);
}
id = ret.id
;
// if(id == 1){
// hide(id);
// }
});
}
|
|