|
var UIChatBox=api.require('UIChatBox');
UIChatBox.open({
placeholder: '',
maxRows: 4,
emotionPath: 'widget://res/emotion',
texts: {
recordBtn: {
normalTitle: '按住 说话',
activeTitle: '松开 结束'
},
sendBtn: {
title:'发送'
}
},
styles: {
inputBar: {
borderColor: '#d9d9d9',
bgColor: '#f2f2f2'
},
inputBox: {
borderColor: '#B3B3B3',
bgColor: '#FFFFFF'
},
emotionBtn: {
normalImg: 'widget://image/chatBox_face1.png'
},
extrasBtn: {
normalImg: 'widget://image/chatBox_add1.png'
},
keyboardBtn: {
normalImg: 'widget://image/chatBox_key1.png'
},
speechBtn:{
normalImg:'widget://image/chatBox_record1.png'
},
recordBtn: {
normalBg: '#c4c4c4',
activeBg: '#999999',
color: '#000',
size: 14
},
indicator: {
target: 'both',
color: '#c4c4c4',
activeColor: '#9e9e9e'
},
sendBtn: {
titleColor: '#FFFFFF',
bg: '#3366FF',
activeBg: '#46a91e',
titleSize: 16
}
},
extras: {
titleSize: 14,
titleColor: '#a3a3a3',
btns: [{
title: '图片',
normalImg: 'widget://image/chatBox_library1.png',
activeImg: 'widget://image/chatBox_library1.png'
}, {
title: '拍照',
normalImg: 'widget://image/chatBox_takePhoto1.png',
activeImg: 'widget://image/chatBox_takePhoto1.png'
},{
title: '位置',
normalImg: 'widget://image/chatBox_location1.png',
activeImg: 'widget://image/chatBox_location1.png'
}]
}
手机型号:三星s6edge |
|