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 cc4dbb26
authored
Oct 23, 2024
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
时间
1 parent
a5f98c87
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
7 deletions
components/HomeFrame/components/RecordList.vue
env.js
manifest.json
mixin/click.js
store/modules/audio.js
components/HomeFrame/components/RecordList.vue
View file @
cc4dbb2
...
@@ -187,6 +187,8 @@ export default {
...
@@ -187,6 +187,8 @@ export default {
this
.
getPreRecordFail
()
this
.
getPreRecordFail
()
}
,
}
,
jumpDetail
(
item
)
{
jumpDetail
(
item
)
{
console
.
log
(
this
.
firstIndex
,
'this.firstIndex'
)
if
(
this
.
firstIndex
!=
2
)
return
this
.
showRecord
=
false
;
this
.
showRecord
=
false
;
this
.
customerInfo
=
item
this
.
customerInfo
=
item
}
,
}
,
...
@@ -245,7 +247,7 @@ export default {
...
@@ -245,7 +247,7 @@ export default {
getPreRecordNum
()
{
getPreRecordNum
()
{
const
preRecordList
=
uni
.
$storage
.
get
(
STORAGE_OBJECTkEY
.
preRecordList
)
||
[]
const
preRecordList
=
uni
.
$storage
.
get
(
STORAGE_OBJECTkEY
.
preRecordList
)
||
[]
console
.
log
(
preRecordList
)
console
.
log
(
preRecordList
)
this
.
preRecordFailList
=
preRecordList
this
.
preRecordFailList
=
preRecordList
.
reverse
()
}
,
}
,
getRecordFail
()
{
getRecordFail
()
{
this
.
getRecordNum
()
this
.
getRecordNum
()
...
...
env.js
View file @
cc4dbb2
const
target
=
[
'ip'
,
'dev'
,
'uat'
,
'prod'
,
'beta'
]
const
target
=
[
'ip'
,
'dev'
,
'uat'
,
'prod'
,
'beta'
]
const
index
=
1
const
index
=
2
/**
/**
*
*
0本地
0本地
...
...
manifest.json
View file @
cc4dbb2
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
"name"
:
"展业助手"
,
"name"
:
"展业助手"
,
"appid"
:
"__UNI__D3BD3DF"
,
"appid"
:
"__UNI__D3BD3DF"
,
"description"
:
""
,
"description"
:
""
,
"versionName"
:
"1.9.
0
"
,
"versionName"
:
"1.9.
1
"
,
"versionCode"
:
"100"
,
"versionCode"
:
"100"
,
"transformPx"
:
false
,
"transformPx"
:
false
,
/*
5
+App特有相关
*/
/*
5
+App特有相关
*/
...
...
mixin/click.js
View file @
cc4dbb2
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: 前端 qianduan01@didihu.com.cn
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2024-04-08 11:28:48
* @Date: 2024-04-08 11:28:48
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2024-10-
18 16:49:15
* @LastEditTime: 2024-10-
21 10:49:34
* @FilePath: \gl_tape\mixin\click.js
* @FilePath: \gl_tape\mixin\click.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
*/
...
@@ -14,6 +14,7 @@ const UPLOAD_STATUS = {
...
@@ -14,6 +14,7 @@ const UPLOAD_STATUS = {
success
:
1
,
success
:
1
,
fail
:
2
fail
:
2
}
}
const
audioTime
=
10
*
60
*
1000
import
{
mapMutations
,
mapState
}
from
'vuex'
import
{
mapMutations
,
mapState
}
from
'vuex'
import
utils
from
'@/utils/utils.js'
import
utils
from
'@/utils/utils.js'
export
default
{
export
default
{
...
@@ -163,14 +164,14 @@ export default {
...
@@ -163,14 +164,14 @@ export default {
},
1000
)
},
1000
)
})
})
recorderManager
.
start
({
recorderManager
.
start
({
duration
:
60000
,
duration
:
audioTime
,
sampleRate
:
16000
,
sampleRate
:
16000
,
numberOfChannels
:
1
numberOfChannels
:
1
})
})
recorderManager
.
onStop
(
async
res
=>
{
recorderManager
.
onStop
(
async
res
=>
{
if
(
this
.
audioInfo
.
audioStatus
==
'start'
)
{
if
(
this
.
audioInfo
.
audioStatus
==
'start'
)
{
uni
.
getRecorderManager
().
start
({
uni
.
getRecorderManager
().
start
({
duration
:
60000
,
duration
:
audioTime
,
sampleRate
:
16000
,
sampleRate
:
16000
,
numberOfChannels
:
1
numberOfChannels
:
1
})
})
...
...
store/modules/audio.js
View file @
cc4dbb2
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
* @Author: huyue
* @Author: huyue
* @Date: 2024-04-07 18:15:11
* @Date: 2024-04-07 18:15:11
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2024-10-
18 11:40:02
* @LastEditTime: 2024-10-
21 11:49:44
*/
*/
// import { setToken, getToken, removeToken } from '@/utils/token';;
// import { setToken, getToken, removeToken } from '@/utils/token';;
import
utils
from
'@/utils/utils'
import
utils
from
'@/utils/utils'
...
@@ -31,6 +31,7 @@ export default {
...
@@ -31,6 +31,7 @@ export default {
setAudioInfo
(
state
,
data
)
{
setAudioInfo
(
state
,
data
)
{
if
(
data
.
audioStatus
==
'start'
)
{
if
(
data
.
audioStatus
==
'start'
)
{
data
.
receptionStartTime
=
utils
.
convertDateTimeFormat
(
new
Date
(),
'/'
)
data
.
receptionStartTime
=
utils
.
convertDateTimeFormat
(
new
Date
(),
'/'
)
data
.
receptionEndTime
=
''
}
}
if
(
data
.
audioStatus
==
'end'
)
{
if
(
data
.
audioStatus
==
'end'
)
{
data
.
receptionEndTime
=
utils
.
convertDateTimeFormat
(
new
Date
(),
'/'
)
data
.
receptionEndTime
=
utils
.
convertDateTimeFormat
(
new
Date
(),
'/'
)
...
...
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