|
|
|
@ -20,19 +20,6 @@ Page({
|
|
|
|
loading:false,
|
|
|
|
loading:false,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
],
|
|
|
|
/* 录音状态
|
|
|
|
|
|
|
|
* -1 未录音,
|
|
|
|
|
|
|
|
* 0 按下
|
|
|
|
|
|
|
|
* 1 长按事件
|
|
|
|
|
|
|
|
* 2 同意授权,
|
|
|
|
|
|
|
|
* 3 拒绝授权,
|
|
|
|
|
|
|
|
* 4 没有进行授权操作
|
|
|
|
|
|
|
|
* 5 开始录音
|
|
|
|
|
|
|
|
* 6 抬起并结束录音
|
|
|
|
|
|
|
|
* 7 超出操作范围,提示取消录音
|
|
|
|
|
|
|
|
* 8 录音异常
|
|
|
|
|
|
|
|
* 9 抬起
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
voiceSpeed:-1,
|
|
|
|
voiceSpeed:-1,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
@ -42,7 +29,7 @@ Page({
|
|
|
|
const res = wx.getSystemInfoSync();
|
|
|
|
const res = wx.getSystemInfoSync();
|
|
|
|
console.log('设备数据',res);
|
|
|
|
console.log('设备数据',res);
|
|
|
|
this.setData({
|
|
|
|
this.setData({
|
|
|
|
screenHeight: res.screenHeight + 'px',
|
|
|
|
screenHeight: (res.screenHeight - 92) + 'px',
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
handleEvent(e) {
|
|
|
|
handleEvent(e) {
|
|
|
|
@ -217,6 +204,16 @@ Page({
|
|
|
|
],
|
|
|
|
],
|
|
|
|
sendText:''
|
|
|
|
sendText:''
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
setTimeout(()=>{
|
|
|
|
|
|
|
|
that.data.list.forEach(item=>{
|
|
|
|
|
|
|
|
item.loading = false;
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
that.setData({
|
|
|
|
|
|
|
|
list:[
|
|
|
|
|
|
|
|
...that.data.list,
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
},300)
|
|
|
|
},
|
|
|
|
},
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 语音消息发送
|
|
|
|
* 语音消息发送
|
|
|
|
|