Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-boutique-work-wechat
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
1
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 9c87985d
authored
May 19, 2025
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
录音链接分享。添加短链接口
1 parent
cd0da2fb
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
5 deletions
packageEquity/pages/receptionDetail/receptionDetail.js
packageEquity/receptionRecordsApi.js
packageEquity/pages/receptionDetail/receptionDetail.js
View file @
9c87985
// packageEquity/pages/receptionDetail/receptionDetail.js
// packageEquity/pages/receptionDetail/receptionDetail.js
import
reportPageTrackMixin
from
'~/mixins/reportPageTrackMixin'
import
reportPageTrackMixin
from
'~/mixins/reportPageTrackMixin'
import
{
getRecordDetailList
}
from
"../../receptionRecordsApi"
import
{
getRecordDetailList
,
getShortUrl
}
from
"../../receptionRecordsApi"
Page
({
Page
({
behaviors
:
[
reportPageTrackMixin
],
behaviors
:
[
reportPageTrackMixin
],
...
@@ -21,6 +21,7 @@ Page({
...
@@ -21,6 +21,7 @@ Page({
currentTime
:
'00:00'
,
//当前音频的播放位置
currentTime
:
'00:00'
,
//当前音频的播放位置
isOperate
:
true
,
isOperate
:
true
,
track_event_code
:
'reception_detail'
,
//埋点动作类型
track_event_code
:
'reception_detail'
,
//埋点动作类型
receptionStartTime
:
''
},
},
/**
/**
...
@@ -33,6 +34,9 @@ Page({
...
@@ -33,6 +34,9 @@ Page({
// 调用接口获取详情,默认取第一条
// 调用接口获取详情,默认取第一条
const
time
=
new
Date
(
+
options
.
receptionStartTime
).
format
(
'yyyy-MM-dd'
)
const
time
=
new
Date
(
+
options
.
receptionStartTime
).
format
(
'yyyy-MM-dd'
)
console
.
log
(
time
)
console
.
log
(
time
)
this
.
setData
({
receptionStartTime
:
options
.
receptionStartTime
})
const
params
=
{
const
params
=
{
batchId
:
options
.
batchId
,
batchId
:
options
.
batchId
,
merchantNo
:
options
.
merchantNo
,
merchantNo
:
options
.
merchantNo
,
...
@@ -272,7 +276,7 @@ Page({
...
@@ -272,7 +276,7 @@ Page({
qualityRef
()
{
qualityRef
()
{
return
this
.
selectComponent
(
'#quality'
)
return
this
.
selectComponent
(
'#quality'
)
},
},
share
(
e
)
{
async
share
(
e
)
{
let
userInfo
=
wx
.
$util
.
getUserInfo
()
||
{}
let
userInfo
=
wx
.
$util
.
getUserInfo
()
||
{}
const
{
const
{
record
record
...
@@ -285,14 +289,26 @@ Page({
...
@@ -285,14 +289,26 @@ Page({
endTime
,
endTime
,
totalDuration
,
totalDuration
,
fileUrl
,
fileUrl
,
startTime
startTime
,
merchantNo
,
batchId
,
// receptionStartTime
}
=
record
}
=
record
// 门店 - 接待开始时间 - 接待时长 - 员工标记的接待结果 - 接待录音mp3地址
console
.
log
(
record
,
'record'
)
let
text
=
[
record
.
merchantName
,
wx
.
$util
.
tsFormatTime
(
startTime
,
'Y年M月D日 h:m:s'
),
wx
.
$util
.
tsFormatTime
(
endTime
,
'Y年M月D日 h:m:s'
),
this
.
format
(
totalDuration
),
receptionStatus
,
fileUrl
].
join
(
' - '
)
// 获取短链地址
const
{
receptionStartTime
}
=
this
const
res
=
await
getShortUrl
({
merchantNo
,
batchId
,
receptionStartTime
})
console
.
log
(
res
,
'res'
)
if
(
res
.
code
==
'0'
)
{
// 门店 - 接待开始时间 - 接待时长 - 员工标记的接待结果 - 接待录音mp3地址(更换成短链)
let
text
=
[
record
.
merchantName
,
wx
.
$util
.
tsFormatTime
(
startTime
,
'Y年M月D日 h:m:s'
),
wx
.
$util
.
tsFormatTime
(
endTime
,
'Y年M月D日 h:m:s'
),
this
.
format
(
totalDuration
),
receptionStatus
,
res
.
data
].
join
(
' - '
)
wx
.
$util
.
setCopyData
(
text
)
wx
.
$util
.
setCopyData
(
text
)
this
.
setTrackData
(
'copy_content'
,
{
this
.
setTrackData
(
'copy_content'
,
{
context
:
text
,
context
:
text
,
})
})
}
else
{
wx
.
$util
.
showToast
(
'获取短链失败'
)
}
// wx.$util.showToast('复制成功')
// wx.$util.showToast('复制成功')
},
},
format
(
seconds
)
{
format
(
seconds
)
{
...
...
packageEquity/receptionRecordsApi.js
View file @
9c87985
...
@@ -11,5 +11,10 @@ module.exports = {
...
@@ -11,5 +11,10 @@ module.exports = {
// 分页查询接待列表
// 分页查询接待列表
getRecordDetailList
(
data
)
{
getRecordDetailList
(
data
)
{
return
api
.
post
(
"dj.api.smartcarlife.reception.findReceptionByConditionPage"
,
data
)
return
api
.
post
(
"dj.api.smartcarlife.reception.findReceptionByConditionPage"
,
data
)
},
// 获取短链地址
getShortUrl
(
data
)
{
return
api
.
post
(
"dj.api.car.boutique.inspection.batch.file.short.url"
,
data
)
}
}
}
}
\ No newline at end of file
\ No newline at end of file
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