Commit f9881f94 authored by 潘永坪's avatar 潘永坪

电话回复处理

parent a2afcd08
......@@ -121,38 +121,45 @@ export default{
if(list.length>0){
this.firstData=list[0]
list.forEach(item=>{
if(item.commentText){
//游客发起
let imgList=[]
//游客发起数据
let imgList1=[]
let imgList2=[]
item.commentImgList.forEach(item2=>{
if(item2.imgCommentType==0){
//游客发送的图片
imgList.push(item2)
imgList1.push(item2)
}
if(item2.imgCommentType==1){
//商家发送的图片
imgList2.push(item2)
}
})
this.detailList.push({
title:'您发起投诉',
text:item.commentText,
time:item.createTime,
imgList
imgList:imgList1
})
}
if(item.commentReply){
//商家回复
let imgList=[]
item.commentImgList.forEach(item2=>{
if(item2.imgCommentType==1){
//商家发送的图片
imgList.push(item2)
}
//商家回复数据
if(item.handleType===0){
//商家电话回复
this.detailList.push({
title:'商家回复',
text:item.commentReply||'客服已进行电话回复',
time:item.updateTime,
imgList:imgList2
})
}
if(item.handleType===1||item.handleType===2){
//商家文字回复,或者电话+文字回复
this.detailList.push({
title:'商家回复',
text:item.commentReply,
text:item.commentReply||'',
time:item.updateTime,
imgList
imgList:imgList2
})
}
})
this.detailList.reverse()
}
......
......@@ -67,38 +67,44 @@ export default{
if(list.length>0){
this.firstData=list[0]
list.forEach(item=>{
if(item.commentText){
//游客发起
let imgList=[]
//游客发起数据
let imgList1=[]
let imgList2=[]
item.commentImgList.forEach(item2=>{
if(item2.imgCommentType==0){
//游客发送的图片
imgList.push(item2)
imgList1.push(item2)
}
if(item2.imgCommentType==1){
//商家发送的图片
imgList2.push(item2)
}
})
this.detailList.push({
title:'您发起建议',
title:'您发起投诉',
text:item.commentText,
time:item.createTime,
imgList
imgList:imgList1
})
}
if(item.commentReply){
//商家回复
let imgList=[]
item.commentImgList.forEach(item2=>{
if(item2.imgCommentType==1){
//商家发送的图片
imgList.push(item2)
}
//商家回复数据
if(item.handleType===0){
this.detailList.push({
title:'商家回复',
text:item.commentReply||'客服已进行电话回复',
time:item.updateTime,
imgList:imgList2
})
}
if(item.handleType===1||item.handleType===2){
//商家文字回复,或者电话+文字回复
this.detailList.push({
title:'商家回复',
text:item.commentReply,
text:item.commentReply||'',
time:item.updateTime,
imgList
imgList:imgList2
})
}
})
this.detailList.reverse()
}
......
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