Commit 31797b7c by qiyeqing

群聊!

1 parent 6f32c84a
...@@ -14,6 +14,13 @@ const getTree=(params)=>{ ...@@ -14,6 +14,13 @@ const getTree=(params)=>{
params, params,
}) })
} }
const chatGrounpList=(params)=>{
return request({
url:'/wecom/finance/getChatRoomContactList',
method: 'get',
params,
})
}
const listByCustomer=(params)=>{ const listByCustomer=(params)=>{
return request({ return request({
url:'/wecom/customer/list', url:'/wecom/customer/list',
...@@ -33,5 +40,6 @@ const getTree=(params)=>{ ...@@ -33,5 +40,6 @@ const getTree=(params)=>{
getTree, getTree,
chatList, chatList,
listByCustomer, listByCustomer,
getChatAllList getChatAllList,
chatGrounpList
} }
\ No newline at end of file \ No newline at end of file
...@@ -6,15 +6,14 @@ ...@@ -6,15 +6,14 @@
<el-row style="padding:10px" v-if="item.finalChatContext.msgtype=='text'"> <el-row style="padding:10px" v-if="item.finalChatContext.msgtype=='text'">
<el-col :span="3"> <img :src="item.finalChatContext.fromInfo.avatar"></el-col> <el-col :span="3"> <img v-if="item.finalChatContext.fromInfo" :src="item.finalChatContext.fromInfo.avatar"></el-col>
<el-col :span="21"> <el-col :span="21">
<p>{{item.roomInfo.groupName}} <span class="fr gray">{{parseTime(item.finalChatContext.fromInfo.updateTime)}}</span></p> <p>{{item.finalChatContext.roomInfo.name}} <span class="fr gray">{{parseTime(item.finalChatContext.fromInfo.updateTime)}}</span></p>
<p class="gray padt10" v-if="item.finalChatContext.fromInfo">{{item.finalChatContext.fromInfo.name}}:{{item.finalChatContext.text.content}}</p> <p class="gray padt10" v-if="item.finalChatContext.fromInfo">{{item.finalChatContext.fromInfo.name}}:{{item.finalChatContext.text.content}}</p>
</el-col> </el-col>
</el-row> </el-row>
<el-row style="padding:10px" v-if="item.finalChatContext.msgtype=='file'"> <el-row style="padding:10px" v-if="item.finalChatContext.msgtype=='file'">
<el-col :span="3">&nbsp; `</el-col>
<el-col :span="3">&nbsp;</el-col>
<el-col :span="21"> <el-col :span="21">
<p><span class="fr gray">{{parseTime(item.finalChatContext.msgtime)}}</span></p> <p><span class="fr gray">{{parseTime(item.finalChatContext.msgtime)}}</span></p>
<p class="gray padt10" >{{item.finalChatContext.from}}: <p class="gray padt10" >{{item.finalChatContext.from}}:
...@@ -49,7 +48,7 @@ ...@@ -49,7 +48,7 @@
}, },
methods:{ methods:{
liClick(e){ liClick(e){
this.$emit('chatFn',e) this.$emit('groupFn',e)
} }
} }
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!