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 5addbe11
authored
Jun 06, 2024
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
sentry环境处理
1 parent
9891032f
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
138 additions
and
88 deletions
assets/css/sprite.scss
assets/images/sprite.png
main.js
pages/boutique/case.vue
pages/boutique/history.vue
pages/boutique/invitation.vue
utils/audio/record.js
assets/css/sprite.scss
View file @
5addbe1
.sprite-icon
{
background-image
:
url(@/assets/images/sprite.png)
;
background-size
:
10
70rpx
876
rpx
;}
.sprite-icon
{
background-image
:
url(@/assets/images/sprite.png)
;
background-size
:
10
85rpx
971
rpx
;}
.icon-aito
{
width
:
320rpx
;
height
:
36rpx
;
background-position
:
0rpx
-7
34
rpx
;}
.icon-aito
{
width
:
320rpx
;
height
:
36rpx
;
background-position
:
0rpx
-7
49
rpx
;}
.icon-arrow-right
{
width
:
32rpx
;
height
:
32rpx
;
background-position
:
-10
32rpx
-60
rpx
;}
.icon-arrow-right
{
width
:
32rpx
;
height
:
32rpx
;
background-position
:
-10
52rpx
-65
rpx
;}
.icon-back
{
width
:
128rpx
;
height
:
50rpx
;
background-position
:
-9
42
rpx
0rpx
;}
.icon-back
{
width
:
128rpx
;
height
:
50rpx
;
background-position
:
-9
57
rpx
0rpx
;}
.icon-change-account
{
width
:
32rpx
;
height
:
32rpx
;
background-position
:
-10
32rpx
-10
2rpx
;}
.icon-change-account
{
width
:
32rpx
;
height
:
32rpx
;
background-position
:
-10
52rpx
-11
2rpx
;}
.icon-customer-1
{
width
:
400rpx
;
height
:
400rpx
;
background-position
:
0rpx
0rpx
;}
.icon-customer-1
{
width
:
400rpx
;
height
:
400rpx
;
background-position
:
0rpx
0rpx
;}
.icon-customer-2
{
width
:
400rpx
;
height
:
400rpx
;
background-position
:
-410rpx
0rpx
;}
.icon-customer-detail
{
width
:
40rpx
;
height
:
40rpx
;
background-position
:
-1024rpx
-420rpx
;}
.icon-face-error-active
{
width
:
96rpx
;
height
:
96rpx
;
background-position
:
-820rpx
-610rpx
;}
.icon-face-error
{
width
:
96rpx
;
height
:
96rpx
;
background-position
:
0rpx
-780rpx
;}
.icon-face-success-active
{
width
:
96rpx
;
height
:
96rpx
;
background-position
:
-106rpx
-780rpx
;}
.icon-face-success
{
width
:
96rpx
;
height
:
96rpx
;
background-position
:
-212rpx
-780rpx
;}
.icon-feedback
{
width
:
32rpx
;
height
:
32rpx
;
background-position
:
-1032rpx
-150rpx
;}
.icon-first-nav
{
width
:
464rpx
;
height
:
176rpx
;
background-position
:
0rpx
-410rpx
;}
.icon-home-active
{
width
:
80rpx
;
height
:
80rpx
;
background-position
:
-942rpx
-60rpx
;}
.icon-home
{
width
:
80rpx
;
height
:
80rpx
;
background-position
:
-942rpx
-150rpx
;}
.icon-icon-addr
{
width
:
32rpx
;
height
:
32rpx
;
background-position
:
-1032rpx
-192rpx
;}
.icon-icon-avatar
{
width
:
112rpx
;
height
:
112rpx
;
background-position
:
-820rpx
0rpx
;}
.icon-icon-female
{
width
:
32rpx
;
height
:
32rpx
;
background-position
:
-1032rpx
-240rpx
;}
.icon-icon-handshake
{
width
:
72rpx
;
height
:
72rpx
;
background-position
:
-942rpx
-420rpx
;}
.icon-icon-male
{
width
:
32rpx
;
height
:
32rpx
;
background-position
:
-1032rpx
-282rpx
;}
.icon-icon-shop
{
width
:
32rpx
;
height
:
32rpx
;
background-position
:
-1032rpx
-330rpx
;}
.icon-icon-upload
{
width
:
128rpx
;
height
:
128rpx
;
background-position
:
-644rpx
-410rpx
;}
.icon-icon-weixin
{
width
:
32rpx
;
height
:
32rpx
;
background-position
:
-1032rpx
-372rpx
;}
.icon-kf-0
{
width
:
32rpx
;
height
:
32rpx
;
background-position
:
-1012rpx
-650rpx
;}
.icon-kf-1
{
width
:
32rpx
;
height
:
32rpx
;
background-position
:
-1012rpx
-720rpx
;}
.icon-kf-2
{
width
:
32rpx
;
height
:
32rpx
;
background-position
:
-1012rpx
-790rpx
;}
.icon-kf-3
{
width
:
32rpx
;
height
:
32rpx
;
background-position
:
-820rpx
-716rpx
;}
.icon-logo
{
width
:
160rpx
;
height
:
160rpx
;
background-position
:
-474rpx
-410rpx
;}
.icon-new-addr
{
width
:
32rpx
;
height
:
32rpx
;
background-position
:
-862rpx
-716rpx
;}
.icon-new-avatar
{
width
:
96rpx
;
height
:
96rpx
;
background-position
:
-318rpx
-780rpx
;}
.icon-new-feedback
{
width
:
64rpx
;
height
:
64rpx
;
background-position
:
-942rpx
-502rpx
;}
.icon-new-home-active
{
width
:
112rpx
;
height
:
112rpx
;
background-position
:
-820rpx
-122rpx
;}
.icon-new-home
{
width
:
112rpx
;
height
:
112rpx
;
background-position
:
-820rpx
-244rpx
;}
.icon-new-record-active
{
width
:
112rpx
;
height
:
112rpx
;
background-position
:
-820rpx
-366rpx
;}
.icon-new-record
{
width
:
112rpx
;
height
:
112rpx
;
background-position
:
-820rpx
-488rpx
;}
.icon-new-setting
{
width
:
64rpx
;
height
:
64rpx
;
background-position
:
-942rpx
-576rpx
;}
.icon-pen-active
{
width
:
120rpx
;
height
:
120rpx
;
background-position
:
-490rpx
-596rpx
;}
.icon-pen
{
width
:
120rpx
;
height
:
120rpx
;
background-position
:
-620rpx
-596rpx
;}
.icon-qr-success
{
width
:
96rpx
;
height
:
96rpx
;
background-position
:
-424rpx
-780rpx
;}
.icon-qw
{
width
:
48rpx
;
height
:
48rpx
;
background-position
:
-1016rpx
-502rpx
;}
.icon-record-active
{
width
:
80rpx
;
height
:
80rpx
;
background-position
:
-942rpx
-240rpx
;}
.icon-record
{
width
:
80rpx
;
height
:
80rpx
;
background-position
:
-942rpx
-330rpx
;}
.icon-scan
{
width
:
32rpx
;
height
:
32rpx
;
background-position
:
-750rpx
-596rpx
;}
.icon-scene-0
{
width
:
96rpx
;
height
:
96rpx
;
background-position
:
-530rpx
-780rpx
;}
.icon-scene-1
{
width
:
96rpx
;
height
:
96rpx
;
background-position
:
-636rpx
-780rpx
;}
.icon-search
{
width
:
40rpx
;
height
:
40rpx
;
background-position
:
-1016rpx
-576rpx
;}
.icon-second-nav
{
width
:
480rpx
;
height
:
128rpx
;
background-position
:
0rpx
-596rpx
;}
.icon-store
{
width
:
96rpx
;
height
:
96rpx
;
background-position
:
-742rpx
-780rpx
;}
.icon-tool-file
{
width
:
60rpx
;
height
:
60rpx
;
background-position
:
-942rpx
-650rpx
;}
.icon-tool-finish
{
width
:
60rpx
;
height
:
60rpx
;
background-position
:
-942rpx
-720rpx
;}
.icon-tool-pay
{
width
:
60rpx
;
height
:
60rpx
;
background-position
:
-942rpx
-790rpx
;}
.icon-settings
{
width
:
32rpx
;
height
:
32rpx
;
background-position
:
-750rpx
-638rpx
;}
\ No newline at end of file
\ No newline at end of file
.icon-customer-2
{
width
:
400rpx
;
height
:
400rpx
;
background-position
:
-415rpx
0rpx
;}
.icon-customer-detail
{
width
:
40rpx
;
height
:
40rpx
;
background-position
:
-1044rpx
-445rpx
;}
.icon-face-error-active
{
width
:
96rpx
;
height
:
96rpx
;
background-position
:
-830rpx
-635rpx
;}
.icon-face-error
{
width
:
96rpx
;
height
:
96rpx
;
background-position
:
0rpx
-800rpx
;}
.icon-face-success-active
{
width
:
96rpx
;
height
:
96rpx
;
background-position
:
-111rpx
-800rpx
;}
.icon-face-success
{
width
:
96rpx
;
height
:
96rpx
;
background-position
:
-222rpx
-800rpx
;}
.icon-feedback
{
width
:
32rpx
;
height
:
32rpx
;
background-position
:
-1052rpx
-160rpx
;}
.icon-first-nav
{
width
:
464rpx
;
height
:
176rpx
;
background-position
:
0rpx
-415rpx
;}
.icon-home-active
{
width
:
80rpx
;
height
:
80rpx
;
background-position
:
-957rpx
-65rpx
;}
.icon-home
{
width
:
80rpx
;
height
:
80rpx
;
background-position
:
-957rpx
-160rpx
;}
.icon-icon-addr
{
width
:
32rpx
;
height
:
32rpx
;
background-position
:
-1052rpx
-207rpx
;}
.icon-icon-avatar
{
width
:
112rpx
;
height
:
112rpx
;
background-position
:
-830rpx
0rpx
;}
.icon-icon-female
{
width
:
32rpx
;
height
:
32rpx
;
background-position
:
-1052rpx
-255rpx
;}
.icon-icon-handshake
{
width
:
72rpx
;
height
:
72rpx
;
background-position
:
-957rpx
-445rpx
;}
.icon-icon-male
{
width
:
32rpx
;
height
:
32rpx
;
background-position
:
-1052rpx
-302rpx
;}
.icon-icon-shop
{
width
:
32rpx
;
height
:
32rpx
;
background-position
:
-1052rpx
-350rpx
;}
.icon-icon-upload
{
width
:
128rpx
;
height
:
128rpx
;
background-position
:
-654rpx
-415rpx
;}
.icon-icon-weixin
{
width
:
32rpx
;
height
:
32rpx
;
background-position
:
-1052rpx
-397rpx
;}
.icon-kf-0
{
width
:
32rpx
;
height
:
32rpx
;
background-position
:
-1032rpx
-690rpx
;}
.icon-kf-1
{
width
:
32rpx
;
height
:
32rpx
;
background-position
:
-1032rpx
-765rpx
;}
.icon-kf-2
{
width
:
32rpx
;
height
:
32rpx
;
background-position
:
-957rpx
-840rpx
;}
.icon-kf-3
{
width
:
32rpx
;
height
:
32rpx
;
background-position
:
-1004rpx
-840rpx
;}
.icon-logo
{
width
:
160rpx
;
height
:
160rpx
;
background-position
:
-479rpx
-415rpx
;}
.icon-new-addr
{
width
:
32rpx
;
height
:
32rpx
;
background-position
:
-1051rpx
-840rpx
;}
.icon-new-avatar
{
width
:
96rpx
;
height
:
96rpx
;
background-position
:
-333rpx
-800rpx
;}
.icon-new-feedback
{
width
:
64rpx
;
height
:
64rpx
;
background-position
:
-957rpx
-532rpx
;}
.icon-new-home-active
{
width
:
112rpx
;
height
:
112rpx
;
background-position
:
-830rpx
-127rpx
;}
.icon-new-home
{
width
:
112rpx
;
height
:
112rpx
;
background-position
:
-830rpx
-254rpx
;}
.icon-new-record-active
{
width
:
112rpx
;
height
:
112rpx
;
background-position
:
-830rpx
-381rpx
;}
.icon-new-record
{
width
:
112rpx
;
height
:
112rpx
;
background-position
:
-830rpx
-508rpx
;}
.icon-new-setting
{
width
:
64rpx
;
height
:
64rpx
;
background-position
:
-957rpx
-611rpx
;}
.icon-pen-active
{
width
:
120rpx
;
height
:
120rpx
;
background-position
:
-495rpx
-606rpx
;}
.icon-pen
{
width
:
120rpx
;
height
:
120rpx
;
background-position
:
-630rpx
-606rpx
;}
.icon-qr-success
{
width
:
96rpx
;
height
:
96rpx
;
background-position
:
-444rpx
-800rpx
;}
.icon-qw
{
width
:
48rpx
;
height
:
48rpx
;
background-position
:
-1036rpx
-532rpx
;}
.icon-record-active
{
width
:
80rpx
;
height
:
80rpx
;
background-position
:
-957rpx
-255rpx
;}
.icon-record
{
width
:
80rpx
;
height
:
80rpx
;
background-position
:
-957rpx
-350rpx
;}
.icon-scan
{
width
:
32rpx
;
height
:
32rpx
;
background-position
:
-830rpx
-746rpx
;}
.icon-scene-0
{
width
:
96rpx
;
height
:
96rpx
;
background-position
:
-555rpx
-800rpx
;}
.icon-scene-1
{
width
:
96rpx
;
height
:
96rpx
;
background-position
:
-666rpx
-800rpx
;}
.icon-search
{
width
:
40rpx
;
height
:
40rpx
;
background-position
:
-1036rpx
-611rpx
;}
.icon-second-nav
{
width
:
480rpx
;
height
:
128rpx
;
background-position
:
0rpx
-606rpx
;}
.icon-settings
{
width
:
32rpx
;
height
:
32rpx
;
background-position
:
-877rpx
-746rpx
;}
.icon-store
{
width
:
96rpx
;
height
:
96rpx
;
background-position
:
-777rpx
-800rpx
;}
.icon-tool-file
{
width
:
60rpx
;
height
:
60rpx
;
background-position
:
-957rpx
-690rpx
;}
.icon-tool-finish
{
width
:
60rpx
;
height
:
60rpx
;
background-position
:
-957rpx
-765rpx
;}
.icon-tool-pay
{
width
:
60rpx
;
height
:
60rpx
;
background-position
:
0rpx
-911rpx
;}
\ No newline at end of file
\ No newline at end of file
assets/images/sprite.png
View file @
5addbe1
945 KB
|
W:
|
H:
950 KB
|
W:
|
H:
2-up
Swipe
Onion skin
main.js
View file @
5addbe1
...
@@ -39,9 +39,9 @@ import { index } from "./env";
...
@@ -39,9 +39,9 @@ import { index } from "./env";
// }
// }
Vue
.
prototype
.
$permision
=
permision
;
Vue
.
prototype
.
$permision
=
permision
;
import
sentryInit
from
"@/utils/sentryConfig/sentryInit"
;
import
sentryInit
from
"@/utils/sentryConfig/sentryInit"
;
const
sentry
=
sentryInit
();
Vue
.
prototype
.
$sendSentry
=
function
(
e
)
{
Vue
.
prototype
.
$sendSentry
=
function
(
e
)
{
if
(
index
==
3
)
{
if
(
index
==
3
)
{
const
sentry
=
sentryInit
();
sentry
.
captureException
(
e
);
sentry
.
captureException
(
e
);
}
}
};
};
...
...
pages/boutique/case.vue
View file @
5addbe1
...
@@ -21,10 +21,7 @@
...
@@ -21,10 +21,7 @@
></view>
></view>
</view>
</view>
<scroll-view
<scroll-view
class=
"record-box"
scroll-y
>
class=
"record-box"
scroll-y
>
<view
class=
"list"
>
<view
class=
"list"
>
<template
v-if=
"list.length"
>
<template
v-if=
"list.length"
>
<template
v-for=
"item in list"
>
<template
v-for=
"item in list"
>
...
@@ -82,13 +79,20 @@ export default {
...
@@ -82,13 +79,20 @@ export default {
default
:
()
=>
[]
default
:
()
=>
[]
}
}
},
},
beforeDestroy
()
{
computed
:
{
this
.
popupShow
=
false
watchStatus
()
{
return
this
.
$store
.
state
.
user
.
historyStatus
},
},
},
mounted
()
{
watch
:
{
// this.list = utils.deepClone(this.views)
watchStatus
:{
console
.
log
(
this
.
views
)
handler
()
{
this
.
list
=
this
.
views
this
.
name
=
''
;
this
.
isSearch
=
false
this
.
list
=
this
.
views
},
immediate
:
true
}
},
},
methods
:
{
methods
:
{
playVideo
(
item
)
{
playVideo
(
item
)
{
...
@@ -161,11 +165,14 @@ export default {
...
@@ -161,11 +165,14 @@ export default {
}
}
}
}
}
}
.record-box
{
height
:
calc
(
100vh
-
300
rpx
);
padding-top
:
48
rpx
;
}
.list
{
.list
{
display
:
flex
;
display
:
flex
;
flex-wrap
:
wrap
;
flex-wrap
:
wrap
;
gap
:
48
rpx
60
rpx
;
gap
:
48
rpx
50
rpx
;
padding-top
:
48
rpx
;
.item
{
.item
{
width
:
404
rpx
;
width
:
404
rpx
;
height
:
544
rpx
;
height
:
544
rpx
;
...
...
pages/boutique/history.vue
View file @
5addbe1
...
@@ -46,6 +46,7 @@
...
@@ -46,6 +46,7 @@
?
item
.
goodsList
[
0
].
goodsName
?
item
.
goodsList
[
0
].
goodsName
:
"-"
:
"-"
}}
}}
X
{{
item
.
goodsList
.
length
}}
件
<image
<image
v-if=
"item.goodsList.length > 1"
v-if=
"item.goodsList.length > 1"
@
click=
"handleLook(item.goodsList)"
@
click=
"handleLook(item.goodsList)"
...
@@ -114,13 +115,15 @@
...
@@ -114,13 +115,15 @@
<view
class=
"th"
>
件数
</view>
<view
class=
"th"
>
件数
</view>
</view>
</view>
</view>
</view>
<table
class=
"tabel-box"
cellspacing=
"0"
border=
"0"
cellpadding=
"0"
>
<view
class=
"tabel-container"
>
<tr
v-for=
"i in goodsList"
>
<table
class=
"tabel-box"
cellspacing=
"0"
border=
"0"
cellpadding=
"0"
>
<td>
{{ i.goodsName }}
</td>
<tr
v-for=
"i in goodsList"
>
<td>
{{ i.goodsPositionName || "-" }}
</td>
<td>
{{ i.goodsName }}
</td>
<td>
{{ i.number }}
</td>
<td>
{{ i.goodsPositionName || "-" }}
</td>
</tr>
<td>
{{ i.number }}
</td>
</table>
</tr>
</table>
</view>
</view>
</view>
</MessageBox>
</MessageBox>
</view>
</view>
...
@@ -150,8 +153,19 @@ export default {
...
@@ -150,8 +153,19 @@ export default {
],
],
}
}
},
},
mounted
()
{
computed
:
{
this
.
getRecordList
()
watchStatus
()
{
return
this
.
$store
.
state
.
user
.
historyStatus
},
},
watch
:{
watchStatus
:
{
handler
()
{
this
.
changeIndex
(
1
,
true
)
},
immediate
:
true
}
},
},
methods
:
{
methods
:
{
formatTime
(
val
,
key
)
{
formatTime
(
val
,
key
)
{
...
@@ -170,8 +184,8 @@ export default {
...
@@ -170,8 +184,8 @@ export default {
this
.
$refs
.
historyRef
.
open
()
this
.
$refs
.
historyRef
.
open
()
this
.
goodsList
=
data
this
.
goodsList
=
data
},
},
changeIndex
(
index
)
{
changeIndex
(
index
,
isStart
=
false
)
{
if
(
this
.
groupIndex
==
index
)
return
if
(
this
.
groupIndex
==
index
&&
!
isStart
)
return
this
.
flag
=
false
this
.
flag
=
false
this
.
nothing
=
false
this
.
nothing
=
false
this
.
total
=
0
this
.
total
=
0
...
@@ -461,6 +475,10 @@ export default {
...
@@ -461,6 +475,10 @@ export default {
}
}
}
}
}
}
.tabel-container
{
max-height
:
50vh
;
overflow
:
auto
;
}
.tabel-box
{
.tabel-box
{
margin-top
:
20
rpx
;
margin-top
:
20
rpx
;
width
:
100%
;
width
:
100%
;
...
...
pages/boutique/invitation.vue
View file @
5addbe1
...
@@ -32,8 +32,8 @@
...
@@ -32,8 +32,8 @@
<template
v-for=
"item in list"
>
<template
v-for=
"item in list"
>
<view
class=
"item"
:key=
"item.id"
@
click=
"reception(item)"
>
<view
class=
"item"
:key=
"item.id"
@
click=
"reception(item)"
>
<view
<view
:class=
"['status flex', 'status_' +
item.inviteStatus
]"
:class=
"['status flex', 'status_' +
formatInvite(item)
]"
>
{{
inviteStatus
[
item
.
inviteStatus
]
}}
</view
>
{{
inviteStatus
[
formatInvite
(
item
)
]
}}
</view
>
>
<view
class=
"name"
>
<view
class=
"name"
>
{{
item
.
customerName
}}
{{
item
.
customerName
}}
...
@@ -101,15 +101,32 @@ export default {
...
@@ -101,15 +101,32 @@ export default {
chooseItem
:
{}
chooseItem
:
{}
}
}
},
},
watch
:
{
computed
:
{
show
(
n
)
{
watchStatus
()
{
if
(
n
)
this
.
getRecordList
()
return
this
.
$store
.
state
.
user
.
historyStatus
}
},
},
mounted
()
{
this
.
getRecordList
()
},
},
watch
:{
watchStatus
:{
handler
()
{
this
.
customerNameOrPhone
=
''
;
this
.
isSearch
=
false
this
.
pageNum
=
1
this
.
flag
=
false
this
.
getRecordList
()
},
immediate
:
true
}
},
methods
:
{
methods
:
{
//已预约的并且预约时间小于当前时间的,显示超时未到店,否则显示已预约
formatInvite
(
val
)
{
if
(
val
.
inviteStatus
==
2
&&
new
Date
().
getTime
()
>
new
Date
(
val
.
receiveCouponDate
).
getTime
())
{
return
5
}
return
val
.
inviteStatus
},
formatTime
(
val
,
key
)
{
formatTime
(
val
,
key
)
{
if
(
key
==
'customerPhone'
)
{
if
(
key
==
'customerPhone'
)
{
return
val
.
slice
(
0
,
3
)
+
" "
+
val
.
slice
(
3
,
7
)
+
" "
+
val
.
slice
(
7
)
return
val
.
slice
(
0
,
3
)
+
" "
+
val
.
slice
(
3
,
7
)
+
" "
+
val
.
slice
(
7
)
...
@@ -129,8 +146,9 @@ export default {
...
@@ -129,8 +146,9 @@ export default {
this
.
customerNameOrPhone
=
e
.
detail
.
value
this
.
customerNameOrPhone
=
e
.
detail
.
value
if
(
this
.
customerNameOrPhone
==
''
)
if
(
this
.
customerNameOrPhone
==
''
)
this
.
isSearch
=
false
this
.
isSearch
=
false
this
.
pageNum
=
1
this
.
pageNum
=
1
this
.
getRecordList
()
this
.
flag
=
false
this
.
getRecordList
()
},
},
focus
()
{
focus
()
{
this
.
isSearch
=
true
this
.
isSearch
=
true
...
...
utils/audio/record.js
View file @
5addbe1
class
RecorderManager
{
class
RecorderManager
{
constructor
(
options
)
{
constructor
(
options
)
{
const
{
duration
,
callback
}
=
options
||
{};
const
{
duration
,
callback
,
isEndCallback
}
=
options
||
{};
this
.
recorderManager
=
uni
.
getRecorderManager
();
this
.
recorderManager
=
uni
.
getRecorderManager
();
this
.
start
(
duration
);
this
.
start
(
duration
);
this
.
isEndCallback
=
isEndCallback
;
this
.
recorderManager
.
onStop
((
res
)
=>
{
this
.
recorderManager
.
onStop
((
res
)
=>
{
console
.
log
(
"结束录音"
,
res
);
callback
(
res
.
tempFilePath
);
callback
(
res
.
tempFilePath
);
const
isEnd
=
this
.
isEndCallback
();
// 获取最新的 isEnd 值
if
(
!
isEnd
)
{
this
.
start
();
// 重新开始录音
}
});
});
}
}
start
(
duration
=
60000
)
{
start
(
duration
=
60000
)
{
console
.
log
(
"开始录音"
);
this
.
recorderManager
.
start
({
this
.
recorderManager
.
start
({
duration
,
duration
,
sampleRate
:
16000
,
sampleRate
:
16000
,
...
...
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