|
@@ -78,7 +78,7 @@ export default class Chat extends Component {
|
78
|
78
|
const { sendId, sendName, receiverId, receiverName } = this.$router.params
|
79
|
79
|
const { scene } = Taro.getStorageSync('router')
|
80
|
80
|
|
81
|
|
-
|
|
81
|
+
|
82
|
82
|
/**
|
83
|
83
|
* 当 scene ==1014 时,是从服务消息直接进入聊天页面,
|
84
|
84
|
* 则id为 sendId,反之是为receiverId
|
|
@@ -376,8 +376,10 @@ export default class Chat extends Component {
|
376
|
376
|
socket.sendNotice(payload, res => {
|
377
|
377
|
console.log('发送成功')
|
378
|
378
|
this.setState({
|
379
|
|
- inputText:'',
|
380
|
|
- })
|
|
379
|
+ inputText: '',
|
|
380
|
+ imageFile: '',
|
|
381
|
+ msgList: list
|
|
382
|
+ }, this.toBottom)
|
381
|
383
|
this.appendData(payload)
|
382
|
384
|
})
|
383
|
385
|
}
|