Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
gl_tape
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
3
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 1536f6e1
authored
Jun 17, 2025
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat(receptionDetail): 添加接待记录分享功能
- 在接待详情页面添加分享按钮
1 parent
e84c3c2c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
56 additions
and
4 deletions
pages/common/receptionDetail/index.vue
pages/common/receptionDetail/index.vue
View file @
1536f6e
...
@@ -49,7 +49,10 @@
...
@@ -49,7 +49,10 @@
<
/template
>
<
/template
>
<
/view
>
<
/view
>
<
view
class
=
"control-box flex"
>
<
view
class
=
"control-box flex"
>
<
view
class
=
"sprite-icon icon-reception-share"
><
/view
>
<
view
class
=
"sprite-icon icon-reception-share"
@
click
=
"share"
><
/view
>
<
view
<
view
class
=
"play-box flex"
class
=
"play-box flex"
@
click
=
"onHandle"
@
click
=
"onHandle"
...
@@ -98,6 +101,7 @@ import Dialogue from './components/Dialogue.vue'
...
@@ -98,6 +101,7 @@ import Dialogue from './components/Dialogue.vue'
import
Quality
from
'./components/Quality.vue'
import
Quality
from
'./components/Quality.vue'
import
Tags
from
'./components/Tags.vue'
import
Tags
from
'./components/Tags.vue'
import
QualityTable
from
'./components/QualityTable.vue'
import
QualityTable
from
'./components/QualityTable.vue'
import
dayjs
from
'dayjs'
export
default
{
export
default
{
components
:
{
components
:
{
QualityTable
,
QualityTable
,
...
@@ -183,6 +187,7 @@ export default {
...
@@ -183,6 +187,7 @@ export default {
}
,
}
,
setAudio
(
recordingUrl
)
{
setAudio
(
recordingUrl
)
{
this
.
qualityAudio
=
uni
.
createInnerAudioContext
()
this
.
qualityAudio
=
uni
.
createInnerAudioContext
()
console
.
log
(
recordingUrl
)
this
.
qualityAudio
.
src
=
recordingUrl
this
.
qualityAudio
.
src
=
recordingUrl
this
.
qualityAudio
.
onPause
(()
=>
{
this
.
qualityAudio
.
onPause
(()
=>
{
...
@@ -257,14 +262,61 @@ export default {
...
@@ -257,14 +262,61 @@ export default {
item
.
conversationDetailDTOList
[
item
.
conversationDetailDTOList
.
length
-
1
].
scriptRec
=
scriptRec
item
.
conversationDetailDTOList
[
item
.
conversationDetailDTOList
.
length
-
1
].
scriptRec
=
scriptRec
}
}
}
else
item
.
conversationDetailDTOList
=
[{
}
else
item
.
conversationDetailDTOList
=
[{
scriptRec
:
scriptRec
||
'暂无
建议
'
scriptRec
:
scriptRec
||
'暂无
话术推荐
'
}
]
}
]
}
)
}
)
this
.
qualityData
=
res
this
.
qualityData
=
res
}
,
}
,
desensitizePhoneNumber
(
phoneNumber
){
desensitizePhoneNumber
(
phoneNumber
)
{
return
phoneNumber
.
replace
(
phoneNumber
.
slice
(
3
,
7
),
'****'
)
return
phoneNumber
.
replace
(
phoneNumber
.
slice
(
3
,
7
),
'****'
)
}
,
async
share
()
{
try
{
const
{
merchantName
,
receptionStartTime
,
receptionEndTime
,
duration
,
merchantId
,
batchId
,
receptionStatus
}
=
this
.
pageData
,
receptionStatusText
=
{
1
:
'成交'
,
2
:
'战败'
,
3
:
'未知'
}
[
receptionStatus
]
// 获取短链地址
const
url
=
await
uni
.
$api
.
receptionApi
.
getShortUrl
({
merchantNo
:
merchantId
,
batchId
,
receptionStartTime
:
receptionStartTime
}
)
if
(
url
)
{
// 门店 - 接待开始时间 - 接待时长 - 员工标记的接待结果 - 接待录音mp3地址(更换成短链)
let
text
=
[
merchantName
,
dayjs
(
receptionStartTime
).
format
(
"YYYY年MM月DD日 HH:mm:ss"
),
dayjs
(
receptionEndTime
).
format
(
"YYYY年MM月DD日 HH:mm:ss"
),
duration
,
receptionStatusText
,
url
].
join
(
' - '
)
uni
.
setClipboardData
({
data
:
text
,
}
)
}
else
uni
.
showToast
({
title
:
"获取短链失败"
,
icon
:
"none"
,
}
)
}
catch
(
error
)
{
uni
.
showToast
({
title
:
error
,
icon
:
"none"
,
}
)
}
}
}
,
}
}
}
}
<
/script
>
<
/script
>
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment