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

电话回复处理

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