|
[建议]
请问UIChatTools模块,点击发送按钮
[复制链接]
选择表情到input栏后,点击发送按钮为什么弹出的是表情图片的地址?怎么能弹出表情的"text": "[抓狂]"属性?
- // 聊天框初始化
- var UIChatTools = api.require('UIChatTools');
- UIChatTools.open({
- chatBox: {
- placeholder: '聊天内容',
- autoFocuse: false,
- maxRows: 6
- },
- styles: {
- bgColor: '#00000',
- margin: 10
- },
- tools: {
- h: 35,
- iconSize: 30,
- recorder: {
- normal: 'fs://UIChatTolls/recorder.png',
- selected: 'fs://UIChatTolls/recorder1.png'
- },
- image: {
- normal: 'fs://UIChatTolls/image.png',
- selected: 'fs://UIChatTolls/image1.png'
- },
- video: {
- normal: 'fs://UIChatTolls/video.png',
- selected: 'fs://UIChatTolls/video1.png'
- },
- packet: {
- normal: 'fs://UIChatTolls/packet.png',
- selected: 'fs://UIChatTolls/packet1.png'
- },
- face: {
- normal: 'fs://UIChatTolls/face.png',
- selected: 'fs://UIChatTolls/face1.png'
- },
- append: {
- normal: 'fs://UIChatTolls/append.png',
- selected: 'fs://UIChatTolls/append1.png'
- }
- },
- emotions: ['widget://res/emotions/basic', 'widget://res/emotions/append1', 'widget://res/emotions/append2']
- }, function(ret) {api.alert({
- msg: JSON.stringify(ret)
- });}
复制代码
|
|