Commit a57ab097 authored by looker's avatar looker

fininsh

parent 1332c7e9
No preview for this file type
......@@ -99,7 +99,10 @@ export default {
temp = '[视频]'
break;
case 42:
temp = '[卡片]'
temp = '[链接]'
break;
case 49:
temp = `[小程序]${messages[messages.length-1].miniTitle}`
break;
case 34:
temp = '[语音]'
......
......@@ -17,6 +17,13 @@
<div class="text" v-html="replaceFace(item.content)"></div>
</div>
</div>
<div v-if="item.type==49" class="main" :class="{ self: item.isSend }">
<img class="avatar" width="36" height="36" :src="item.isSend ? user.img : selectedChat.user.img||'static/images/weixin.jpg'" />
<div class="time"><span>{{item.createTime | time}}</span></div>
<div class="content">
小程序[{{item.miniDescription}}],请到手机查看
</div>
</div>
<div v-if="item.type==10000" class="main" :class="{ self: item.isSend }">
<div class="time" style="text-align: center"><span>{{item.createTime | time}}</span></div>
<div style="text-align: center">
......@@ -54,7 +61,7 @@
<span style="font-size: 12px;color: gray">{{item.cardDescription}}</span>
</div>
<div style="width: 30%;height: 100%;float: right;">
<img width=30% height=100% :src="item.cardImageUrl" alt="">
<img width=100% height=100% :src="imgUrl+item.cardImageUrl" alt="">
</div>
</a>
</div>
......
......@@ -161,7 +161,7 @@ const user = {
let { chatlist, selectId } = state
for(let c in chatlist){
if(chatlist[c].id==selectId){
let temp = [...value, ...chatlist[c].messages]
let temp = singel([...value, ...chatlist[c].messages])
let aotps = getAutioLength(temp)
chatlist[c].messages = aotps.sort(compare('createTime'))
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment