|
|
|
@ -2,7 +2,7 @@
|
|
|
|
|
* @Author: ch
|
|
|
|
|
* @Date: 2022-05-11 11:45:08
|
|
|
|
|
* @LastEditors: ch
|
|
|
|
|
* @LastEditTime: 2022-05-21 11:38:36
|
|
|
|
|
* @LastEditTime: 2022-05-21 16:11:51
|
|
|
|
|
* @Description: file content
|
|
|
|
|
-->
|
|
|
|
|
<template>
|
|
|
|
@ -45,7 +45,7 @@
|
|
|
|
|
</view>
|
|
|
|
|
</template>
|
|
|
|
|
<script>
|
|
|
|
|
import {Im} from '@/common/utils';
|
|
|
|
|
import {Im, ToAsyncAwait} from '@/common/utils';
|
|
|
|
|
import {MSG_TYPE} from '@/common/dicts/im';
|
|
|
|
|
import {Request} from '@/common/utils';
|
|
|
|
|
import {ApiPutUser} from '@/common/api/account';
|
|
|
|
@ -64,6 +64,10 @@ export default {
|
|
|
|
|
goodsInfo : {
|
|
|
|
|
type : Object,
|
|
|
|
|
default : () => ({})
|
|
|
|
|
},
|
|
|
|
|
sessionId : {
|
|
|
|
|
type : Number | String,
|
|
|
|
|
default : ''
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
data(){
|
|
|
|
@ -130,15 +134,19 @@ export default {
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
let res = await Im.sendMsg({
|
|
|
|
|
const {error, result} = await ToAsyncAwait(Im.sendMsg({
|
|
|
|
|
fromId : this.$store.state.userInfo.id,
|
|
|
|
|
content: {
|
|
|
|
|
toSessionId : this.$Route.query.sessionId,
|
|
|
|
|
toSessionId : this.sessionId,
|
|
|
|
|
payload : payload,
|
|
|
|
|
toId : 1,
|
|
|
|
|
type : type
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}));
|
|
|
|
|
if(error){
|
|
|
|
|
uni.$u.toast(error.message);
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
this.msgCtx = '';
|
|
|
|
|
this.focus = false;
|
|
|
|
|
this.$nextTick(() => {
|
|
|
|
|