|
@@ -444,13 +444,14 @@
|
|
|
if (!phone) {
|
|
if (!phone) {
|
|
|
phone = this.$queue.getData('userName');
|
|
phone = this.$queue.getData('userName');
|
|
|
}
|
|
}
|
|
|
- let avatar = this.$queue.getData('avatar');
|
|
|
|
|
|
|
+ let avatar = this.$queue.getData('avatar') ? this.$queue.getData('avatar') : '';
|
|
|
|
|
+ let shopUserName = this.$queue.getData('shopUserName') ? this.$queue.getData('shopUserName'): '';
|
|
|
let data = {
|
|
let data = {
|
|
|
userId: userId,
|
|
userId: userId,
|
|
|
userHead: avatar,
|
|
userHead: avatar,
|
|
|
- userName: userName,
|
|
|
|
|
|
|
+ userName: shopUserName,
|
|
|
storeId: '0',
|
|
storeId: '0',
|
|
|
- storeHead: '码兄外卖',
|
|
|
|
|
|
|
+ storeHead: '',
|
|
|
storeName: ''
|
|
storeName: ''
|
|
|
}
|
|
}
|
|
|
this.$Request.postJson('/app/chats/save', data).then(res => {
|
|
this.$Request.postJson('/app/chats/save', data).then(res => {
|
|
@@ -482,13 +483,18 @@
|
|
|
',' + this.orderCreateTime +
|
|
',' + this.orderCreateTime +
|
|
|
',' + this.ordermoney
|
|
',' + this.ordermoney
|
|
|
}
|
|
}
|
|
|
|
|
+ let avatar = this.$queue.getData('avatar') ? this.$queue.getData('avatar') : '';
|
|
|
|
|
+ let shopUserName = this.$queue.getData('shopUserName') ? this.$queue.getData('shopUserName'): '';
|
|
|
let data = {
|
|
let data = {
|
|
|
userId: userId,
|
|
userId: userId,
|
|
|
|
|
+ userHead: avatar,
|
|
|
|
|
+ userName: shopUserName,
|
|
|
content: this.content,
|
|
content: this.content,
|
|
|
chatId: this.chatId,
|
|
chatId: this.chatId,
|
|
|
type: type,
|
|
type: type,
|
|
|
storeId: '0',
|
|
storeId: '0',
|
|
|
- sendType: '1'
|
|
|
|
|
|
|
+ sendType: '1',
|
|
|
|
|
+ storeName: ''
|
|
|
}
|
|
}
|
|
|
data = JSON.stringify(data);
|
|
data = JSON.stringify(data);
|
|
|
let that = this;
|
|
let that = this;
|