Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
U
uni-pdtravel
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
panyongping
uni-pdtravel
Commits
f9881f94
Commit
f9881f94
authored
Dec 17, 2024
by
潘永坪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
电话回复处理
parent
a2afcd08
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
82 additions
and
69 deletions
+82
-69
complaintDetail.vue
...s/my/suggestComplaint/complaintDetail/complaintDetail.vue
+39
-32
suggestDetail.vue
pages/my/suggestComplaint/suggestDetail/suggestDetail.vue
+43
-37
No files found.
pages/my/suggestComplaint/complaintDetail/complaintDetail.vue
View file @
f9881f94
...
@@ -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
){
this
.
detailList
.
push
({
//商家发送的图片
title
:
'您发起投诉'
,
imgList2
.
push
(
item2
)
text
:
item
.
commentText
,
}
time
:
item
.
createTime
,
})
imgList
this
.
detailList
.
push
({
})
title
:
'您发起投诉'
,
}
text
:
item
.
commentText
,
if
(
item
.
commentReply
){
time
:
item
.
createTime
,
//商家回复
imgList
:
imgList1
let
imgList
=
[]
})
item
.
commentImgList
.
forEach
(
item2
=>
{
//商家回复数据
if
(
item2
.
imgCommentType
==
1
){
if
(
item
.
handleType
===
0
){
//商家发送的图片
//商家电话回复
imgList
.
push
(
item2
)
this
.
detailList
.
push
({
}
title
:
'商家回复'
,
})
text
:
item
.
commentReply
||
'客服已进行电话回复'
,
this
.
detailList
.
push
({
time
:
item
.
updateTime
,
title
:
'商家回复'
,
imgList
:
imgList2
text
:
item
.
commentReply
,
})
time
:
item
.
updateTime
,
}
imgList
if
(
item
.
handleType
===
1
||
item
.
handleType
===
2
){
})
//商家文字回复,或者电话+文字回复
}
this
.
detailList
.
push
({
title
:
'商家回复'
,
text
:
item
.
commentReply
||
''
,
time
:
item
.
updateTime
,
imgList
:
imgList2
})
}
})
})
this
.
detailList
.
reverse
()
this
.
detailList
.
reverse
()
}
}
...
...
pages/my/suggestComplaint/suggestDetail/suggestDetail.vue
View file @
f9881f94
...
@@ -64,44 +64,50 @@ export default{
...
@@ -64,44 +64,50 @@ export default{
this
.
$request
(
'comment/userComment/loadInfo'
,
data
).
then
((
res
)
=>
{
this
.
$request
(
'comment/userComment/loadInfo'
,
data
).
then
((
res
)
=>
{
if
(
res
.
code
==
'00'
){
if
(
res
.
code
==
'00'
){
let
list
=
res
.
data
||
[]
let
list
=
res
.
data
||
[]
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
({
title
:
'您发起投诉'
,
text
:
item
.
commentText
,
time
:
item
.
createTime
,
imgList
:
imgList1
})
//商家回复数据
if
(
item
.
handleType
===
0
){
this
.
detailList
.
push
({
title
:
'商家回复'
,
text
:
item
.
commentReply
||
'客服已进行电话回复'
,
time
:
item
.
updateTime
,
imgList
:
imgList2
})
})
this
.
detailList
.
push
({
}
title
:
'您发起建议'
,
if
(
item
.
handleType
===
1
||
item
.
handleType
===
2
){
text
:
item
.
commentText
,
//商家文字回复,或者电话+文字回复
time
:
item
.
createTime
,
this
.
detailList
.
push
({
imgList
title
:
'商家回复'
,
})
text
:
item
.
commentReply
||
''
,
}
time
:
item
.
updateTime
,
if
(
item
.
commentReply
){
imgList
:
imgList2
//商家回复
})
let
imgList
=
[]
}
item
.
commentImgList
.
forEach
(
item2
=>
{
if
(
item2
.
imgCommentType
==
1
){
})
//商家发送的图片
this
.
detailList
.
reverse
()
imgList
.
push
(
item2
)
}
}
})
this
.
detailList
.
push
({
title
:
'商家回复'
,
text
:
item
.
commentReply
,
time
:
item
.
updateTime
,
imgList
})
}
})
this
.
detailList
.
reverse
()
}
}
else
{
}
else
{
uni
.
showToast
({
uni
.
showToast
({
title
:
res
.
message
,
title
:
res
.
message
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment