Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
factory_front
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
qinjianhui
factory_front
Commits
aa58fd40
Commit
aa58fd40
authored
Jun 13, 2026
by
wusiyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 称重分拣添加tiktok订单提醒
parent
1da25f55
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
src/assets/audio/weight_tiktok.mp3
+0
-0
src/views/order/components/weigh.ts
+12
-0
No files found.
src/assets/audio/weight_tiktok.mp3
0 → 100644
View file @
aa58fd40
File added
src/views/order/components/weigh.ts
View file @
aa58fd40
...
...
@@ -48,6 +48,7 @@ type AudioKey =
|
'weight_repeat'
|
'weight_search_error'
|
'weight_search_success'
|
'weight_tiktok'
type
AudioFiles
=
Record
<
AudioKey
,
string
>
// API 响应类型
...
...
@@ -87,6 +88,10 @@ class Weigh extends Lock {
'@/assets/audio/weight_search_success.mp3'
,
import
.
meta
.
url
,
).
href
,
weight_tiktok
:
new
URL
(
'@/assets/audio/weight_tiktok.mp3'
,
import
.
meta
.
url
,
).
href
,
}
this
.
audioElements
=
new
Map
()
this
.
preloadAudios
()
...
...
@@ -354,6 +359,12 @@ class Weigh extends Lock {
this
.
weightInput
=
false
callback
?.(
this
.
list
)
this
.
playAudio
(
'weight_search_success'
)
if
(
data
[
0
].
platform
===
'TIKTOK'
)
{
setTimeout
(()
=>
{
this
.
playAudio
(
'weight_tiktok'
)
},
500
)
}
}
playAudio
(
key
:
AudioKey
,
message
?:
string
):
void
{
...
...
@@ -365,6 +376,7 @@ class Weigh extends Lock {
weight_search_error
:
`请录入
${
this
.
selectType
===
'trackingNumber'
?
'跟踪号'
:
'店铺单号'
}
或重量`
,
weight_search_success
:
''
,
weight_tiktok
:
''
,
}
const
displayMessage
=
message
||
messageMap
[
key
]
...
...
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