|
var UIListMeeting = api.require('UIListMeeting');
UIListMeeting.open({
rect: {
x: 0,
y: 0,
w: api.winWidth,
h: api.frameHeight - 40
},
data: [],
rightBtns: [],
showScrollBar: false,
styles: {
border: {
color: '#EEE',
width: 0.5
},
item: {
bgColor: '#FFF',
activeBgColor: '#F5F5F5',
height: 50.0,
headSize: 30,
nameSize: 14,
nameColor: '#000',
nameWidth: 60,
titleSize: 12.0,
titleColor: '#ff0000',
titleWidth: 100,
statusSize: 20.0,
markSize: 20,
}
},
fixedOn: api.frameName
}, function (ret, err) {
if (ret) {
//拨号
if (ret.eventType == 'clickContent') {
bohao(ret.index);
}
//公司好友添加/删除/编辑
if (ret.eventType == 'clickRightBtn') {
//添加/删除
if (ret.btnIndex == 0) {
adduser(ret.index);
}
//编辑
if (ret.btnIndex == 1) {
revise(ret.index);
}
//查看
if (ret.btnIndex == 2) {
selec(ret.index);
}
}
// dianhua_s(ret.index);
// alert(JSON.stringify(ret));
} else {
settoast(JSON.stringify(err));
}
}); |
|