爆灯最新
This commit is contained in:
parent
56bcf7c94a
commit
69a86ad738
|
|
@ -647,11 +647,9 @@
|
||||||
}
|
}
|
||||||
_this.messages.push(tempMessage)
|
_this.messages.push(tempMessage)
|
||||||
_this.sendingMessages.add(tempId)
|
_this.sendingMessages.add(tempId)
|
||||||
|
|
||||||
_this.$nextTick(() => {
|
_this.$nextTick(() => {
|
||||||
_this.scrollToBottom()
|
_this.scrollToBottom()
|
||||||
})
|
})
|
||||||
|
|
||||||
wx.uploadFile({
|
wx.uploadFile({
|
||||||
url: 'https://up-z2.qiniup.com',
|
url: 'https://up-z2.qiniup.com',
|
||||||
name: 'file',
|
name: 'file',
|
||||||
|
|
@ -664,13 +662,11 @@
|
||||||
console.log(res, 'resres')
|
console.log(res, 'resres')
|
||||||
let str = JSON.parse(res.data)
|
let str = JSON.parse(res.data)
|
||||||
const imageUrl = 'https://api.ccttiot.com/' + str.key
|
const imageUrl = 'https://api.ccttiot.com/' + str.key
|
||||||
|
|
||||||
// 更新消息内容为真实URL
|
// 更新消息内容为真实URL
|
||||||
const index = _this.messages.findIndex(msg => msg.tempId === tempId)
|
const index = _this.messages.findIndex(msg => msg.tempId === tempId)
|
||||||
if (index !== -1) {
|
if (index !== -1) {
|
||||||
_this.messages[index].content = imageUrl
|
_this.messages[index].content = imageUrl
|
||||||
}
|
}
|
||||||
|
|
||||||
// 发送消息到服务器
|
// 发送消息到服务器
|
||||||
let data = {
|
let data = {
|
||||||
teamId: _this.teamId,
|
teamId: _this.teamId,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user