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 48216e90
authored
Aug 28, 2025
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'SAAS+V4.55.1' into 'master'
上线合并 See merge request
!28
2 parents
30defc06
ac3f2b8c
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
256 additions
and
170 deletions
components/HomeFrame/components/Message/index.vue
components/HomeFrame/components/MessagePop.vue
components/HomeFrame/index.vue
components/SwiperComponent.vue
mixin/record/recorder.js
pages/boutique/case.vue
pages/boutique/history.vue
pages/boutique/index.vue
pages/equity/index.vue
utils/recordManager/TempRecord.js
components/HomeFrame/components/Message/index.vue
View file @
48216e9
...
@@ -24,7 +24,6 @@ export default {
...
@@ -24,7 +24,6 @@ export default {
})
})
},
},
mounted
()
{
mounted
()
{
console
.
log
(
'消息'
)
this
.
getMessageSummary
()
this
.
getMessageSummary
()
},
},
methods
:
{
methods
:
{
...
...
components/HomeFrame/components/MessagePop.vue
View file @
48216e9
...
@@ -45,7 +45,6 @@ export default {
...
@@ -45,7 +45,6 @@ export default {
},
},
inject
:
[
'showPage'
],
inject
:
[
'showPage'
],
mounted
()
{
mounted
()
{
console
.
log
(
this
.
messageData
)
},
},
methods
:
{
methods
:
{
open
()
{
open
()
{
...
@@ -55,7 +54,6 @@ export default {
...
@@ -55,7 +54,6 @@ export default {
this
.
$refs
.
popup
.
close
()
this
.
$refs
.
popup
.
close
()
},
},
toMessage
()
{
toMessage
()
{
console
.
log
(
this
.
messageData
)
const
{
messageData
}
=
this
const
{
messageData
}
=
this
this
.
showPage
(
'MessageDetail'
,
{...
messageData
,
type
:
'read'
})
this
.
showPage
(
'MessageDetail'
,
{...
messageData
,
type
:
'read'
})
this
.
close
()
this
.
close
()
...
...
components/HomeFrame/index.vue
View file @
48216e9
...
@@ -223,7 +223,6 @@ export default {
...
@@ -223,7 +223,6 @@ export default {
mounted
()
{
mounted
()
{
const
userInfo
=
uni
.
$storage
.
get
(
'userInfo'
)
||
{}
const
userInfo
=
uni
.
$storage
.
get
(
'userInfo'
)
||
{}
this
.
userInfo
=
userInfo
this
.
userInfo
=
userInfo
this
.
checkVersion
()
permision
.
requestAndroidPermission
(
'android.permission.RECORD_AUDIO'
)
// 进入界面时检查权限
permision
.
requestAndroidPermission
(
'android.permission.RECORD_AUDIO'
)
// 进入界面时检查权限
},
},
provide
()
{
provide
()
{
...
@@ -393,6 +392,10 @@ export default {
...
@@ -393,6 +392,10 @@ export default {
eventCode
:
'app_reception_begins'
eventCode
:
'app_reception_begins'
})
})
this
.
$emit
(
'start'
)
this
.
$emit
(
'start'
)
},
async
updateApp
(
requested
=
false
)
{
if
(
!
requested
)
await
uni
.
$api
.
systemApi
.
getMockData
(
true
)
this
.
checkVersion
()
}
}
}
}
}
}
...
...
components/SwiperComponent.vue
View file @
48216e9
...
@@ -258,6 +258,7 @@ export default {
...
@@ -258,6 +258,7 @@ export default {
let
{
blockX
,
ismove
}
=
this
let
{
blockX
,
ismove
}
=
this
let
pageX
=
e
.
changedTouches
[
0
].
pageX
let
pageX
=
e
.
changedTouches
[
0
].
pageX
let
nums
=
ismove
-
pageX
let
nums
=
ismove
-
pageX
if
(
nums
==
0
)
return
if
(
!
(
nums
>
50
||
blockX
<
-
30
)
||
!
(
nums
<
-
50
||
blockX
>
30
))
{
if
(
!
(
nums
>
50
||
blockX
<
-
30
)
||
!
(
nums
<
-
50
||
blockX
>
30
))
{
this
.
viewX
=
-
10
this
.
viewX
=
-
10
setTimeout
(()
=>
{
setTimeout
(()
=>
{
...
...
mixin/record/recorder.js
View file @
48216e9
/*
/*
* @Author: 前端 qianduan01@didihu.com.cn
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2024-12-26 10:03:54
* @Date: 2024-12-26 10:03:54
* @LastEditors:
yangming@didihu.com.cn yangming@didihu.com.c
n
* @LastEditors:
limi
n
* @LastEditTime: 2025-0
4-15 17:59:20
* @LastEditTime: 2025-0
8-12 10:32:25
* @FilePath: \gl_tape\mixin\record\recorder.js
* @FilePath: \gl_tape\mixin\record\recorder.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
*/
*/
...
@@ -12,12 +12,12 @@ import utils from '@/utils/utils.js'
...
@@ -12,12 +12,12 @@ import utils from '@/utils/utils.js'
import
{
storageApi
}
from
'@/utils/cache'
import
{
storageApi
}
from
'@/utils/cache'
import
permision
from
'@/js_sdk/wa-permission/permission.js'
import
permision
from
'@/js_sdk/wa-permission/permission.js'
export
default
{
export
default
{
provide
()
{
provide
()
{
return
{
return
{
getRecorder
:
()
=>
this
.
record
getRecorder
:
()
=>
this
.
record
}
}
},
},
async
mounted
()
{
async
mounted
()
{
this
.
audioManager
=
new
AudioManager
(
this
.
onAudioStart
,
this
.
onAudioStop
,
this
.
onError
)
this
.
audioManager
=
new
AudioManager
(
this
.
onAudioStart
,
this
.
onAudioStop
,
this
.
onError
)
this
.
initDto
()
this
.
initDto
()
this
.
record
=
new
TempRecord
(
this
.
tempRecord
,
this
.
triggleTempNumber
)
this
.
record
=
new
TempRecord
(
this
.
tempRecord
,
this
.
triggleTempNumber
)
...
@@ -35,23 +35,23 @@ export default {
...
@@ -35,23 +35,23 @@ export default {
// deep: true
// deep: true
// },
// },
customerKey
:
{
customerKey
:
{
handler
()
{
handler
()
{
this
.
handler
(
this
.
customerInfo
,
this
.
updateCustomerInfo
)
this
.
handler
(
this
.
customerInfo
,
this
.
updateCustomerInfo
)
},
},
deep
:
true
deep
:
true
},
},
booksList
:
{
booksList
:
{
handler
(
val
)
{
handler
(
val
)
{
this
.
handler
(
val
,
this
.
updateBookList
)
this
.
handler
(
val
,
this
.
updateBookList
)
}
}
},
},
receptionStatus
:
{
receptionStatus
:
{
handler
(
val
)
{
handler
(
val
)
{
this
.
handler
(
val
,
this
.
updateReceptionStatus
)
this
.
handler
(
val
,
this
.
updateReceptionStatus
)
}
}
},
},
receptionKey
:
{
receptionKey
:
{
handler
(
val
)
{
handler
(
val
)
{
this
.
handler
(
this
.
receptionTrack
,
this
.
updateMaterialPointList
)
this
.
handler
(
this
.
receptionTrack
,
this
.
updateMaterialPointList
)
}
}
}
}
...
@@ -64,28 +64,28 @@ export default {
...
@@ -64,28 +64,28 @@ export default {
...
mapMutations
(
'audio'
,
[
'setReceptionStatus'
,
'setBooks'
,
'setPerRecordNumber'
]),
...
mapMutations
(
'audio'
,
[
'setReceptionStatus'
,
'setBooks'
,
'setPerRecordNumber'
]),
...
mapMutations
([
'clearCustomerInfo'
]),
...
mapMutations
([
'clearCustomerInfo'
]),
//开始录音
//开始录音
startAudio
:
utils
.
throttle
(
async
function
()
{
startAudio
:
utils
.
throttle
(
async
function
(
isInitData
=
true
)
{
const
isPermission
=
await
this
.
checkBeforeStart
()
const
isPermission
=
await
this
.
checkBeforeStart
()
if
(
!
isPermission
)
return
if
(
!
isPermission
)
return
uni
.
$logger
.
local
.
info
(
'〖接待管理Recorder〗 == 开始接待 '
)
uni
.
$logger
.
local
.
info
(
'〖接待管理Recorder〗 == 开始接待 '
)
this
.
initReception
()
isInitData
&&
this
.
initReception
()
this
.
initTime
()
this
.
audioManager
.
start
()
this
.
audioManager
.
start
()
},
300
),
},
300
),
initReception
()
{
initReception
()
{
this
.
setBooks
([])
this
.
setBooks
([])
this
.
clearCustomerInfo
()
this
.
clearCustomerInfo
()
this
.
setReceptionStatus
(
''
)
this
.
setReceptionStatus
(
''
)
this
.
initTime
()
},
},
async
onAudioStart
()
{
async
onAudioStart
()
{
if
(
this
.
audioManager
.
counter
===
0
)
{
if
(
this
.
audioManager
.
counter
===
0
)
{
await
this
.
record
.
add
()
await
this
.
record
.
add
()
}
else
{
}
else
{
this
.
record
.
addAudio
()
this
.
record
.
addAudio
()
}
}
},
},
async
onAudioStop
()
{
async
onAudioStop
()
{
if
(
this
.
audioManager
.
isRecording
)
{
if
(
this
.
audioManager
.
isRecording
)
{
uni
.
$logger
.
local
.
info
(
'〖接待管理Recorder〗 == 接待中,再次开启录音! '
)
uni
.
$logger
.
local
.
info
(
'〖接待管理Recorder〗 == 接待中,再次开启录音! '
)
this
.
audioManager
.
start
()
this
.
audioManager
.
start
()
...
@@ -93,7 +93,7 @@ export default {
...
@@ -93,7 +93,7 @@ export default {
uni
.
$logger
.
local
.
info
(
'〖接待管理Recorder〗 == 断开录音! '
)
uni
.
$logger
.
local
.
info
(
'〖接待管理Recorder〗 == 断开录音! '
)
}
}
},
},
onAudioError
(
error
)
{
onAudioError
(
error
)
{
const
message
=
error
.
message
const
message
=
error
.
message
this
.
reportError
(
`录音异常: error:
${
message
}
`
,
message
)
this
.
reportError
(
`录音异常: error:
${
message
}
`
,
message
)
},
},
...
@@ -102,38 +102,40 @@ export default {
...
@@ -102,38 +102,40 @@ export default {
* @params {boolean} status true 不保存记录/AUDIO_STATUS.ABNORMAL 只要断开录音
* @params {boolean} status true 不保存记录/AUDIO_STATUS.ABNORMAL 只要断开录音
* @returns {void}
* @returns {void}
*/
*/
async
stopAudio
(
isNotSave
=
false
)
{
async
stopAudio
(
isNotSave
=
false
)
{
uni
.
$logger
.
local
.
info
(
'〖接待管理Recorder〗 == 结束接待! '
)
uni
.
$logger
.
local
.
info
(
'〖接待管理Recorder〗 == 结束接待! '
)
this
.
stop
()
this
.
stop
()
await
this
.
saveAndClearRecord
(
isNotSave
)
await
this
.
saveAndClearRecord
(
isNotSave
)
},
},
async
saveAndClearRecord
(
isNotSave
=
false
)
{
async
saveAndClearRecord
(
isNotSave
=
false
)
{
if
(
isNotSave
)
{
if
(
isNotSave
)
{
uni
.
$logger
.
local
.
info
(
'〖接待管理Recorder〗 == 不保存记录! '
)
uni
.
$logger
.
local
.
info
(
'〖接待管理Recorder〗 == 不保存记录! '
)
return
this
.
record
.
clearLocalRecord
()
this
.
record
.
clearSavedFiles
()
this
.
record
.
clearLocalRecord
()
return
}
}
this
.
record
.
setReceptionEndTime
()
//设置接待结束时间
this
.
record
.
setReceptionEndTime
()
//设置接待结束时间
//如果不需要保存记录
//如果不需要保存记录
await
this
.
record
.
save
()
await
this
.
record
.
save
()
},
},
stop
()
{
stop
()
{
this
.
endWatchClick
()
this
.
endWatchClick
()
this
.
record
.
clearLoopTimer
()
this
.
record
.
clearLoopTimer
()
if
(
this
.
audioManager
.
isRecording
)
{
if
(
this
.
audioManager
.
isRecording
)
{
this
.
audioManager
.
stop
()
this
.
audioManager
.
stop
()
}
}
},
},
handler
(
params
,
fn
)
{
handler
(
params
,
fn
)
{
if
(
this
.
audioManager
.
isRecording
||
this
.
record
?.
currentRecord
?.
endReasonType
==
1
)
{
if
(
this
.
audioManager
.
isRecording
||
this
.
record
?.
currentRecord
?.
endReasonType
==
1
)
{
fn
.
call
(
this
,
params
)
fn
.
call
(
this
,
params
)
}
}
},
},
reset
()
{
reset
()
{
this
.
audioManager
=
null
this
.
audioManager
=
null
this
.
record
=
null
this
.
record
=
null
this
.
tempRecord
=
null
this
.
tempRecord
=
null
},
},
initDto
()
{
initDto
()
{
const
{
shopMerchantId
,
phone
,
sceneType
,
uuid
,
name
,
merchantId
,
channelType
,
merchantName
}
=
storageApi
.
getUserInfo
()
const
{
shopMerchantId
,
phone
,
sceneType
,
uuid
,
name
,
merchantId
,
channelType
,
merchantName
}
=
storageApi
.
getUserInfo
()
const
{
deviceId
:
appCode
}
=
uni
.
getDeviceInfo
()
const
{
deviceId
:
appCode
}
=
uni
.
getDeviceInfo
()
const
dto
=
new
RecordDto
({
const
dto
=
new
RecordDto
({
...
@@ -146,12 +148,12 @@ export default {
...
@@ -146,12 +148,12 @@ export default {
merchantId
:
shopMerchantId
,
merchantId
:
shopMerchantId
,
merchantName
,
merchantName
,
bussinessType
:
sceneType
==
0
?
1
:
2
,
// sceneType 0延保 1精品。 bussinessType 1.延保 2.轻改
bussinessType
:
sceneType
==
0
?
1
:
2
,
// sceneType 0延保 1精品。 bussinessType 1.延保 2.轻改
channelType
:
channelType
||
1
,
//1问界 2 比亚迪 3 其他
channelType
:
channelType
||
1
//1问界 2 比亚迪 3 其他
})
})
this
.
sceneType
=
sceneType
this
.
sceneType
=
sceneType
this
.
tempRecord
=
dto
this
.
tempRecord
=
dto
},
},
updateCustomerInfo
(
customerInfo
=
{})
{
updateCustomerInfo
(
customerInfo
=
{})
{
const
{
customerName
,
phoneNumber
,
salesUuid
,
carModel
,
staffName
:
salesName
,
carBrand
,
carBrandId
,
oneCarBrand
,
oneCarBrandId
}
=
customerInfo
const
{
customerName
,
phoneNumber
,
salesUuid
,
carModel
,
staffName
:
salesName
,
carBrand
,
carBrandId
,
oneCarBrand
,
oneCarBrandId
}
=
customerInfo
this
.
record
.
updatePreRecords
({
this
.
record
.
updatePreRecords
({
customerName
,
customerName
,
...
@@ -165,7 +167,7 @@ export default {
...
@@ -165,7 +167,7 @@ export default {
oneCarBrandId
oneCarBrandId
})
})
},
},
updateBookList
(
booksList
)
{
updateBookList
(
booksList
)
{
const
receptionCustomerPaySourceList
=
booksList
.
map
(
item
=>
{
const
receptionCustomerPaySourceList
=
booksList
.
map
(
item
=>
{
return
{
return
{
id
:
item
.
id
,
id
:
item
.
id
,
...
@@ -175,7 +177,7 @@ export default {
...
@@ -175,7 +177,7 @@ export default {
})
})
this
.
record
.
updatePreRecords
({
receptionCustomerPaySourceList
})
this
.
record
.
updatePreRecords
({
receptionCustomerPaySourceList
})
},
},
updateMaterialPointList
(
receptionTrack
)
{
updateMaterialPointList
(
receptionTrack
)
{
const
{
merchantId
,
staffUuid
,
staffName
}
=
this
.
tempRecord
const
{
merchantId
,
staffUuid
,
staffName
}
=
this
.
tempRecord
let
receptionCustomerMaterialPointList
=
[]
let
receptionCustomerMaterialPointList
=
[]
Object
.
keys
(
receptionTrack
).
map
(
key
=>
{
Object
.
keys
(
receptionTrack
).
map
(
key
=>
{
...
@@ -189,17 +191,17 @@ export default {
...
@@ -189,17 +191,17 @@ export default {
})
})
this
.
record
.
updatePreRecords
({
receptionCustomerMaterialPointList
})
this
.
record
.
updatePreRecords
({
receptionCustomerMaterialPointList
})
},
},
updateReceptionStatus
(
status
)
{
updateReceptionStatus
(
status
)
{
this
.
record
.
updatePreRecords
({
receptionStatus
:
status
})
this
.
record
.
updatePreRecords
({
receptionStatus
:
status
})
},
},
getRecorder
()
{
getRecorder
()
{
return
this
.
record
return
this
.
record
},
},
async
triggleTempNumber
()
{
async
triggleTempNumber
()
{
const
_records
=
await
this
.
record
.
getRecords
()
const
_records
=
await
this
.
record
.
getRecords
()
this
.
setPerRecordNumber
(
_records
.
length
)
this
.
setPerRecordNumber
(
_records
.
length
)
},
},
async
isPermission
(
hintText
=
'为了记录语音通话,请打开录音权限'
)
{
async
isPermission
(
hintText
=
'为了记录语音通话,请打开录音权限'
)
{
const
result
=
await
permision
.
requestAndroidPermission
(
'android.permission.RECORD_AUDIO'
)
const
result
=
await
permision
.
requestAndroidPermission
(
'android.permission.RECORD_AUDIO'
)
await
helpler
.
sleep
(
0
)
await
helpler
.
sleep
(
0
)
if
(
result
!==
1
)
{
if
(
result
!==
1
)
{
...
@@ -210,13 +212,13 @@ export default {
...
@@ -210,13 +212,13 @@ export default {
}
}
return
result
===
1
return
result
===
1
},
},
async
checkBeforeStart
()
{
async
checkBeforeStart
()
{
const
isPermission
=
await
this
.
isPermission
()
const
isPermission
=
await
this
.
isPermission
()
const
isRecording
=
this
.
audioManager
.
isRecording
const
isRecording
=
this
.
audioManager
.
isRecording
return
isPermission
&&
!
isRecording
return
isPermission
&&
!
isRecording
}
}
},
},
beforeDestroy
()
{
beforeDestroy
()
{
this
.
stop
()
this
.
stop
()
this
.
reset
()
this
.
reset
()
}
}
...
...
pages/boutique/case.vue
View file @
48216e9
<
template
>
<
template
>
<view
<view
class=
"layout"
>
class=
"layout"
@
click=
"hideSelect"
>
<view
class=
"bg"
></view>
<view
class=
"bg"
></view>
<wnCanvas
<wnCanvas
:canvasId=
"`c-$
{madiaId}`"
:canvasId=
"`c-$
{madiaId}`"
...
@@ -15,31 +12,6 @@
...
@@ -15,31 +12,6 @@
<view
class=
"layout-content"
>
<view
class=
"layout-content"
>
<view
class=
"box"
>
<view
class=
"box"
>
<view
class=
"select-box"
>
<view
class=
"select"
@
click
.
stop=
"selectType"
>
{{
selectIndex
}}
<view
class=
"sprite-icon icon-arrow-bottom"
></view>
</view>
<view
class=
"pop-box"
v-show=
"isSelect"
>
<view
v-for=
"i in selectList"
:key=
"i.label"
class=
"type-item"
:class=
"i.value == selectIndex ? 'active' : ''"
@
click=
"chooseType(i)"
>
{{
i
.
label
}}
</view>
<!--
<view
class=
"type-item active"
>
全部
</view>
<view
class=
"type-item"
>
视频
</view>
<view
class=
"type-item"
>
图片
</view>
<view
class=
"type-item"
>
PDF
</view>
-->
</view>
</view>
<view
class=
"input-box"
>
<view
class=
"input-box"
>
<input
<input
type=
"text"
type=
"text"
...
@@ -51,7 +23,7 @@
...
@@ -51,7 +23,7 @@
/>
/>
<view
<view
class=
"input-tips"
class=
"input-tips"
v-if=
"!isSearch"
v-if=
"!isSearch
&& !name
"
>
搜索图片/视频名称
<uni-icons
>
搜索图片/视频名称
<uni-icons
type=
"search"
type=
"search"
class=
"icon"
class=
"icon"
...
@@ -59,7 +31,7 @@
...
@@ -59,7 +31,7 @@
size=
"20"
size=
"20"
></uni-icons></view>
></uni-icons></view>
<uni-icons
<uni-icons
v-if=
"
isSearch
"
v-if=
"
name
"
type=
"closeempty"
type=
"closeempty"
class=
"close"
class=
"close"
color=
"#999"
color=
"#999"
...
@@ -67,11 +39,44 @@
...
@@ -67,11 +39,44 @@
size=
"20"
size=
"20"
></uni-icons>
></uni-icons>
</view>
</view>
<view
class=
"content-box"
>
<scroll-view
class=
"scroll-box"
scroll-x
enable-flex
>
<view
class=
"classif-box flex"
>
<template
v-for=
"(i,index) in caseMaterials"
>
<view
:class=
"['first-item classif-item flex',
{'classif-active':carModelName == i.label}]"
:key="index"
@click="carModelName = i.label"
>
{{
i
.
label
}}
</view>
</
template
>
</view>
</scroll-view>
<scroll-view
class=
"scroll-box"
enable-flex
scroll-x
>
<view
class=
"classif-box flex"
>
<
template
v-for=
"(i,index) in secondClassifList"
>
<view
:class=
"['second-item classif-item flex',
{'classif-active second-ative':category == i}]"
:key="index"
@click="category = i"
>
{{
i
}}
</view>
</
template
>
</view>
</scroll-view>
<scroll-view
<scroll-view
class=
"record-box"
class=
"record-box"
scroll-y
scroll-y
:scroll-top=
"scrollTop"
>
>
<view
class=
"list"
>
<view
class=
"list"
>
<
template
v-if=
"list.length"
>
<
template
v-if=
"list.length"
>
...
@@ -108,9 +113,11 @@
...
@@ -108,9 +113,11 @@
</view>
</view>
</
template
>
</
template
>
</view>
</view>
<view
class=
"list-bottom-mask"
></view>
</scroll-view>
</scroll-view>
</view>
</view>
</view>
</view>
</view>
</template>
</template>
</wnCanvas>
</wnCanvas>
<view
<view
...
@@ -149,22 +156,14 @@ export default {
...
@@ -149,22 +156,14 @@ export default {
return
{
return
{
name
:
''
,
name
:
''
,
list
:
[],
list
:
[],
searchList
:
[],
popupShow
:
false
,
popupShow
:
false
,
isSearch
:
false
,
isSearch
:
false
,
videoSrc
:
''
,
videoSrc
:
''
,
isSelect
:
false
,
isSelect
:
false
,
selectIndex
:
'全部'
,
userInfo
:
{},
selectList
:
[
carModelName
:
''
,
{
category
:
''
,
label
:
'全部'
,
caseMaterials
:
[]
value
:
'全部'
},
],
scrollTop
:
0
,
startDate
:
''
,
endDate
:
''
,
userInfo
:
{}
}
}
},
},
props
:
{
props
:
{
...
@@ -176,40 +175,49 @@ export default {
...
@@ -176,40 +175,49 @@ export default {
watchStatus
()
{
watchStatus
()
{
return
this
.
$store
.
state
.
user
.
historyStatus
return
this
.
$store
.
state
.
user
.
historyStatus
},
},
secondClassifList
()
{
let
{
caseMaterials
,
carModelName
}
=
this
,
item
=
{}
if
(
caseMaterials
.
length
)
item
=
caseMaterials
.
find
(
e
=>
e
.
label
==
(
!
carModelName
?
caseMaterials
[
0
].
label
:
carModelName
))
return
item
?.
cases
||
[]
}
},
},
watch
:
{
watch
:
{
watchStatus
:
{
show
:
{
handler
(
newValue
)
{
if
(
newValue
)
{
this
.
init
()
this
.
getCaseTags
()
}
else
this
.
handleLeavePage
()
},
immediate
:
true
},
carModelName
:
{
handler
(
val
)
{
handler
(
val
)
{
this
.
selectIndex
=
'全部'
let
{
caseMaterials
}
=
this
// this.name = '';
if
(
caseMaterials
.
length
&&
val
)
{
// this.isSearch = false
this
.
category
=
this
.
secondClassifList
[
0
]
// this.list = this.views
}
// this.init()
},
},
immediate
:
true
immediate
:
true
},
},
show
:
{
category
:
{
handler
(
newValue
)
{
handler
(
val
)
{
console
.
log
(
'案例视频'
,
newValue
)
if
(
val
)
this
.
getCaseList
()
if
(
newValue
)
this
.
init
()
if
(
!
newValue
)
this
.
handleLeavePage
()
},
},
immediate
:
true
immediate
:
true
}
}
,
},
},
mounted
()
{
mounted
()
{
const
userInfo
=
uni
.
$storage
.
get
(
"userInfo"
)
const
userInfo
=
uni
.
$storage
.
get
(
"userInfo"
)
this
.
userInfo
=
userInfo
this
.
userInfo
=
userInfo
this
.
init
()
this
.
init
()
console
.
log
(
'案例视频'
)
this
.
getCategory
()
},
},
methods
:
{
methods
:
{
// 离开页面时上传埋点并清空缓存
// 离开页面时上传埋点并清空缓存
async
handleLeavePage
()
{
async
handleLeavePage
()
{
try
{
try
{
const
caseInfo
=
uni
.
$storage
.
get
(
"caseInfo"
)
const
caseInfo
=
uni
.
$storage
.
get
(
"caseInfo"
)
console
.
log
(
caseInfo
,
'caseInfo'
)
if
(
caseInfo
&&
caseInfo
.
length
>
0
)
{
if
(
caseInfo
&&
caseInfo
.
length
>
0
)
{
await
this
.
uploadData
(
caseInfo
)
await
this
.
uploadData
(
caseInfo
)
uni
.
$storage
.
rm
(
"caseInfo"
)
uni
.
$storage
.
rm
(
"caseInfo"
)
...
@@ -223,7 +231,6 @@ export default {
...
@@ -223,7 +231,6 @@ export default {
// 埋点
// 埋点
async
sendData
(
params
)
{
async
sendData
(
params
)
{
const
{
shopMerchantId
,
sceneType
,
uuid
,
name
}
=
this
.
userInfo
const
{
shopMerchantId
,
sceneType
,
uuid
,
name
}
=
this
.
userInfo
const
{
startDate
,
endDate
}
=
this
const
default_params
=
{
const
default_params
=
{
merchantId
:
shopMerchantId
,
merchantId
:
shopMerchantId
,
businessScene
:
sceneType
,
businessScene
:
sceneType
,
...
@@ -241,7 +248,6 @@ export default {
...
@@ -241,7 +248,6 @@ export default {
// 查找是否有相同素材(id相同)
// 查找是否有相同素材(id相同)
const
idx
=
caseInfo
.
findIndex
(
item
=>
item
.
materialId
===
params
.
materialId
)
const
idx
=
caseInfo
.
findIndex
(
item
=>
item
.
materialId
===
params
.
materialId
)
console
.
log
(
idx
,
'idx'
)
if
(
idx
!==
-
1
)
{
if
(
idx
!==
-
1
)
{
// 已存在,openCount+1
// 已存在,openCount+1
caseInfo
[
idx
].
openCount
=
(
caseInfo
[
idx
].
openCount
||
1
)
+
1
caseInfo
[
idx
].
openCount
=
(
caseInfo
[
idx
].
openCount
||
1
)
+
1
...
@@ -257,15 +263,12 @@ export default {
...
@@ -257,15 +263,12 @@ export default {
},
},
// 上传埋点
// 上传埋点
async
uploadData
(
caseInfo
)
{
async
uploadData
(
caseInfo
)
{
console
.
log
(
caseInfo
,
'caseInfo'
)
// const caseInfo = uni.$storage.get("caseInfo")
// const caseInfo = uni.$storage.get("caseInfo")
if
(
caseInfo
&&
caseInfo
.
length
>
0
)
{
if
(
caseInfo
&&
caseInfo
.
length
>
0
)
{
await
uni
.
$api
.
boutiqueApi
.
caseVideoCenter
({
receptionCustomerMaterialPointList
:
caseInfo
})
await
uni
.
$api
.
boutiqueApi
.
caseVideoCenter
({
receptionCustomerMaterialPointList
:
caseInfo
})
}
}
},
},
playVideo
(
item
)
{
playVideo
(
item
)
{
console
.
log
(
item
,
'item'
)
this
.
$emit
(
'preview'
,
item
)
this
.
$emit
(
'preview'
,
item
)
const
params
=
{
const
params
=
{
materialId
:
item
.
id
,
materialId
:
item
.
id
,
...
@@ -276,67 +279,81 @@ export default {
...
@@ -276,67 +279,81 @@ export default {
},
},
focus
()
{
focus
()
{
this
.
isSearch
=
true
this
.
isSearch
=
true
},
},
init
()
{
init
()
{
this
.
name
=
''
;
this
.
name
=
''
;
this
.
searchValue
=
''
this
.
isSelect
=
false
this
.
isSelect
=
false
setTimeout
(()
=>
{
this
.
isSearch
=
false
// this.list = this.views
this
.
getCaseList
(
this
.
selectIndex
==
'全部'
?
''
:
this
.
selectIndex
)
},
300
);
},
},
handleClear
()
{
handleClear
()
{
this
.
name
=
''
this
.
name
=
''
this
.
searchValue
=
''
this
.
isSearch
=
false
this
.
isSearch
=
false
this
.
getCase
List
(
this
.
selectIndex
==
'全部'
?
''
:
this
.
selectIndex
)
this
.
getCase
Tags
(
)
this
.
clearCanvas
()
this
.
clearCanvas
()
},
},
input
(
e
)
{
input
(
e
)
{
this
.
name
=
e
.
detail
.
value
let
{
value
}
=
e
.
detail
if
(
this
.
name
==
''
)
this
.
isSearch
=
false
this
.
isSearch
=
false
// this.list = this.searchList.filter(i => i.name.includes(this.name))
if
(
this
.
searchValue
==
value
)
return
this
.
getCaseList
(
this
.
selectIndex
==
'全部'
?
''
:
this
.
selectIndex
,
this
.
name
)
this
.
searchValue
=
value
this
.
clearCanvas
()
this
.
getCaseTags
()
},
selectType
()
{
this
.
isSelect
=
!
this
.
isSelect
},
hideSelect
()
{
this
.
isSelect
=
false
},
chooseType
(
val
)
{
this
.
selectIndex
=
val
.
value
this
.
isSelect
=
false
this
.
getCaseList
(
this
.
selectIndex
==
'全部'
?
''
:
this
.
selectIndex
,
this
.
name
)
this
.
clearCanvas
()
this
.
clearCanvas
()
},
},
async
getCaseList
(
category
=
''
,
name
=
''
)
{
async
getCaseList
()
{
try
{
uni
.
showLoading
({
mask
:
true
})
this
.
list
=
[]
let
{
searchValue
,
carModelName
,
category
}
=
this
const
userInfo
=
uni
.
$storage
.
get
(
"userInfo"
),
const
userInfo
=
uni
.
$storage
.
get
(
"userInfo"
),
{
shopMerchantId
}
=
userInfo
;
// 44217687
{
shopMerchantId
}
=
userInfo
;
// 44217687
const
params
=
{
merchantId
:
shopMerchantId
,
category
}
const
params
=
{
if
(
name
)
params
.
materialName
=
name
merchantId
:
shopMerchantId
,
const
res
=
await
uni
.
$api
.
boutiqueApi
.
getCaseList
(
params
)
carModelName
:
carModelName
,
this
.
list
=
res
.
list
category
:
category
this
.
searchList
=
res
.
list
}
this
.
scrollTop
=
1
if
(
searchValue
)
params
.
materialName
=
searchValue
setTimeout
(()
=>
{
const
{
list
}
=
await
uni
.
$api
.
boutiqueApi
.
getCaseList
(
params
)
this
.
scrollTop
=
0
uni
.
hideLoading
()
},
100
);
if
(
list
&&
list
.
length
)
this
.
list
=
list
}
catch
(
error
)
{
uni
.
hideLoading
()
}
},
},
async
getCategory
()
{
async
getCaseTags
()
{
this
.
carModelName
=
''
this
.
category
=
''
let
{
searchValue
}
=
this
const
userInfo
=
uni
.
$storage
.
get
(
"userInfo"
),
const
userInfo
=
uni
.
$storage
.
get
(
"userInfo"
),
{
shopMerchantId
}
=
userInfo
;
{
shopMerchantId
}
=
userInfo
;
// 44217687
const
res
=
await
uni
.
$api
.
boutiqueApi
.
getCategory
({
merchantId
:
shopMerchantId
})
const
params
=
{
merchantId
:
shopMerchantId
}
const
_list
=
res
.
map
(
item
=>
{
if
(
searchValue
)
params
.
materialName
=
searchValue
return
{
const
{
list
}
=
await
uni
.
$api
.
boutiqueApi
.
getCaseList
(
params
)
label
:
item
,
if
(
list
&&
list
.
length
)
{
value
:
item
let
arr
=
Array
.
from
(
new
Set
([...
list
.
map
((
e
)
=>
e
.
carModelName
)])),
}
caseMaterials
=
[]
arr
.
map
((
e
,
index
)
=>
{
caseMaterials
.
push
({
label
:
e
,
cases
:
[]
})
let
secondClassifList
=
new
Array
(
arr
.
length
).
fill
([])
list
.
map
(
i
=>
{
if
(
e
==
i
.
carModelName
)
secondClassifList
[
index
].
push
(
i
.
category
)
})
caseMaterials
[
index
].
cases
=
Array
.
from
(
new
Set
([...
secondClassifList
[
index
]]))
})
})
this
.
selectList
=
[...
this
.
selectList
,
...
_list
]
this
.
caseMaterials
=
caseMaterials
let
[
item
]
=
list
this
.
carModelName
=
item
.
carModelName
this
.
category
=
item
.
category
}
else
{
this
.
caseMaterials
=
[]
this
.
list
=
[]
}
},
},
clearCanvas
()
{
clearCanvas
()
{
this
.
$refs
.
caseCanvas
.
clearBoard
()
this
.
$refs
.
caseCanvas
.
clearBoard
()
...
@@ -368,7 +385,7 @@ export default {
...
@@ -368,7 +385,7 @@ export default {
top
:
0
;
top
:
0
;
}
}
.box
{
.box
{
padding-top
:
toRpx
(
16
0
);
padding-top
:
toRpx
(
16
8
);
position
:
relative
;
position
:
relative
;
.select-box
{
.select-box
{
position
:
absolute
;
position
:
absolute
;
...
@@ -446,15 +463,57 @@ export default {
...
@@ -446,15 +463,57 @@ export default {
justify-content
:
center
;
justify-content
:
center
;
}
}
}
}
.content-box
{
height
:
calc
(
100vh
-
#{
toRpx
(
272
)}
);
margin
:
toRpx
(
24
)
44rpx
0
;
border-radius
:
48rpx
48rpx
0
0
;
background
:
#ffffff
;
backdrop-filter
:
blur
(
16rpx
);
box-shadow
:
inset
0
0
16rpx
0
#ffffff
;
padding-top
:
24rpx
;
box-sizing
:
border-box
;
.scroll-box
{
width
:
calc
(
100%
-
88
rpx
);
margin
:
16
rpx
44
rpx
0
;
height
:
80
rpx
;
.classif-box
{
width
:
100%
;
gap
:
toRpx
(
24
);
flex-wrap
:
nowrap
;
}
}
.classif-item
{
height
:
80
rpx
;
padding
:
0
32
rpx
;
color
:
#666666
;
width
:
fit-content
;
flex-shrink
:
0
;
}
.first-item
{
font-size
:
32
rpx
;
}
.classif-active
{
color
:
#2d66f7
;
font-weight
:
500
;
}
.second-item
{
font-size
:
28
rpx
;
border-radius
:
16
rpx
;
background
:
#f2f2f2
;
}
.second-ative
{
background
:
#2d66f71
a
;
}
}
.record-box
{
.record-box
{
height
:
calc
(
100vh
-
#{
toRpx
(
224
)}
)
;
margin-top
:
40
rpx
;
padding-top
:
toRpx
(
48
);
height
:
calc
(
100%
-
#{
toRpx
(
232
)}
);
}
}
.list
{
.list
{
display
:
grid
;
display
:
grid
;
grid-template-columns
:
repeat
(
5
,
1
fr
);
grid-template-columns
:
repeat
(
5
,
1
fr
);
gap
:
toRpx
(
48
)
toRpx
(
50
);
gap
:
toRpx
(
48
)
toRpx
(
38
);
margin
:
0
toRpx
(
6
4
);
margin
:
0
toRpx
(
4
4
);
.item
{
.item
{
height
:
toRpx
(
536
);
height
:
toRpx
(
536
);
background
:
#ffffff
;
background
:
#ffffff
;
...
@@ -494,6 +553,10 @@ export default {
...
@@ -494,6 +553,10 @@ export default {
}
}
}
}
}
}
.list-bottom-mask
{
height
:
100
rpx
;
width
:
100%
;
}
}
}
}
}
.popup-box
{
.popup-box
{
...
...
pages/boutique/history.vue
View file @
48216e9
...
@@ -58,7 +58,7 @@
...
@@ -58,7 +58,7 @@
?
item
.
goodsList
[
0
].
goodsName
?
item
.
goodsList
[
0
].
goodsName
:
"-"
:
"-"
}}
</view>
}}
</view>
X
{{
item
.
goodsList
.
length
}}
件
x
{{
item
.
goodsList
.
length
}}
件
<image
<image
class=
"image-look"
class=
"image-look"
src=
"../../assets/images/boutique/look.png"
src=
"../../assets/images/boutique/look.png"
...
@@ -70,7 +70,7 @@
...
@@ -70,7 +70,7 @@
:key=
"ind"
:key=
"ind"
>
>
<view
class=
"label"
>
{{
k
.
label
}}
</view>
<view
class=
"label"
>
{{
k
.
label
}}
</view>
<view
:class=
"
{ value: true, bold: k.isBold }
">
{{
<view
:class=
"
['value text-hide',
{bold: k.isBold}]
">
{{
k
.
format
k
.
format
?
formatTime
(
item
[
k
.
key
])
?
formatTime
(
item
[
k
.
key
])
:
item
[
k
.
key
]
||
"-"
:
item
[
k
.
key
]
||
"-"
...
@@ -83,7 +83,7 @@
...
@@ -83,7 +83,7 @@
<image
<image
class=
"image-pay"
class=
"image-pay"
:src=
"
:src=
"
require(`@/assets/images/boutique/pay_${item.payType}.png`)
require(`@/assets/images/boutique/pay_${item.payType
> 5 ? 5 : item.payType
}.png`)
"
"
/>
/>
</view>
</view>
...
@@ -465,6 +465,7 @@ export default {
...
@@ -465,6 +465,7 @@ export default {
color
:
#999ea8
;
color
:
#999ea8
;
.label
{
.label
{
width
:
toRpx
(
160
);
width
:
toRpx
(
160
);
flex-shrink
:
0
;
}
}
.value
{
.value
{
margin-left
:
toRpx
(
20
);
margin-left
:
toRpx
(
20
);
...
...
pages/boutique/index.vue
View file @
48216e9
...
@@ -101,7 +101,8 @@ export default {
...
@@ -101,7 +101,8 @@ export default {
icon
:
'icon-customer-2'
icon
:
'icon-customer-2'
}
}
]),
]),
loadComplete
:
false
loadComplete
:
false
,
requested
:
false
}
}
},
},
onBackPress
(
options
)
{
onBackPress
(
options
)
{
...
@@ -114,11 +115,13 @@ export default {
...
@@ -114,11 +115,13 @@ export default {
// 其他情况允许正常返回
// 其他情况允许正常返回
return
false
;
return
false
;
},
},
onLoad
()
{
async
onLoad
()
{
await
uni
.
$api
.
systemApi
.
getMockData
(
true
)
//获取APP配置信息
this
.
init
();
this
.
init
();
uni
.
$api
.
systemApi
.
getMockData
(
true
)
this
.
requested
=
true
this
.
$refs
.
home
.
updateApp
(
true
)
},
},
onShow
()
{
async
onShow
()
{
const
userInfo
=
uni
.
$storage
.
get
(
"userInfo"
)
const
userInfo
=
uni
.
$storage
.
get
(
"userInfo"
)
if
(
!
userInfo
.
shopMerchantId
||
!
userInfo
.
shopMerchantName
)
{
if
(
!
userInfo
.
shopMerchantId
||
!
userInfo
.
shopMerchantName
)
{
uni
.
$storage
.
rm
(
"userInfo"
);
uni
.
$storage
.
rm
(
"userInfo"
);
...
@@ -128,6 +131,7 @@ export default {
...
@@ -128,6 +131,7 @@ export default {
});
});
return
;
return
;
}
}
if
(
this
.
requested
&&
!
this
.
id
)
this
.
$refs
.
home
.
updateApp
()
},
},
computed
:
{
computed
:
{
},
},
...
@@ -207,7 +211,6 @@ export default {
...
@@ -207,7 +211,6 @@ export default {
this
.
$store
.
state
.
user
.
boutiqueMediaConfig
=
boutiqueMediaConfig
this
.
$store
.
state
.
user
.
boutiqueMediaConfig
=
boutiqueMediaConfig
this
.
$store
.
state
.
user
.
boutiqueCarList
=
boutiqueCarList
this
.
$store
.
state
.
user
.
boutiqueCarList
=
boutiqueCarList
}).
catch
(
error
=>
{
}).
catch
(
error
=>
{
console
.
log
(
error
)
uni
.
hideLoading
()
uni
.
hideLoading
()
uni
.
showToast
({
uni
.
showToast
({
title
:
error
,
title
:
error
,
...
@@ -238,8 +241,6 @@ export default {
...
@@ -238,8 +241,6 @@ export default {
this
.
id
=
id
;
this
.
id
=
id
;
this
.
tabId
=
tabId
this
.
tabId
=
tabId
this
.
currentCarId
=
this
.
carBannerList
[
this
.
currentIndex
].
carModelId
this
.
currentCarId
=
this
.
carBannerList
[
this
.
currentIndex
].
carModelId
console
.
log
(
id
)
},
},
back
()
{
back
()
{
if
(
!
this
.
id
)
return
uni
.
navigateBack
();
if
(
!
this
.
id
)
return
uni
.
navigateBack
();
...
@@ -265,13 +266,14 @@ export default {
...
@@ -265,13 +266,14 @@ export default {
this
.
clearHistory
();
this
.
clearHistory
();
this
.
recording
=
false
this
.
recording
=
false
this
.
$refs
.
home
.
$refs
.
leftBox
.
getMessageInfo
()
this
.
$refs
.
home
.
$refs
.
leftBox
.
getMessageInfo
()
if
(
this
.
requested
)
this
.
$refs
.
home
.
updateApp
()
},
},
async
start
(
before
=
true
)
{
async
start
(
before
=
true
)
{
const
isPermision
=
await
this
.
$refs
.
home
.
isPermission
()
const
isPermision
=
await
this
.
$refs
.
home
.
isPermission
()
if
(
!
isPermision
)
return
false
if
(
!
isPermision
)
return
false
uni
.
$logger
.
local
.
info
(
'〖接待管理Recorder〗 == 开始接待 '
)
uni
.
$logger
.
local
.
info
(
'〖接待管理Recorder〗 == 开始接待 '
)
if
(
before
)
this
.
clearHistory
();
if
(
before
)
this
.
clearHistory
();
this
.
$refs
.
home
.
audioManager
.
start
(
)
this
.
$refs
.
home
.
startAudio
(
false
)
this
.
recording
=
true
this
.
recording
=
true
return
true
return
true
},
},
...
@@ -322,9 +324,12 @@ export default {
...
@@ -322,9 +324,12 @@ export default {
/**客户邀约接待 */
/**客户邀约接待 */
reception
(
customer
)
{
reception
(
customer
)
{
this
.
currentCarId
=
''
this
.
currentCarId
=
''
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(
async
()
=>
{
let
{
customerType
}
=
this
let
{
customerType
}
=
this
if
(
customerType
==
-
1
)
this
.
start
(
false
)
//开始接待
if
(
customerType
==
-
1
)
{
const
flag
=
await
this
.
start
(
false
)
if
(
!
flag
)
return
}
//开始接待
this
.
customerType
=
0
this
.
customerType
=
0
this
.
jumpPage
()
this
.
jumpPage
()
this
.
$nextTick
(()
=>
this
.
$store
.
dispatch
(
'setCustomerInfo'
,
customer
))
this
.
$nextTick
(()
=>
this
.
$store
.
dispatch
(
'setCustomerInfo'
,
customer
))
...
...
pages/equity/index.vue
View file @
48216e9
...
@@ -53,7 +53,8 @@ export default {
...
@@ -53,7 +53,8 @@ export default {
recording
:
false
,
recording
:
false
,
aitoCarModelIds
:
[],
aitoCarModelIds
:
[],
mediaId
:
''
,
mediaId
:
''
,
loadComplete
:
false
loadComplete
:
false
,
requested
:
false
}
}
},
},
computed
:
{
computed
:
{
...
@@ -82,14 +83,15 @@ export default {
...
@@ -82,14 +83,15 @@ export default {
},
},
async
onLoad
()
{
async
onLoad
()
{
const
mockdata
=
await
uni
.
$api
.
systemApi
.
getMockData
(
true
)
//获取APP配置信息
const
mockdata
=
await
uni
.
$api
.
systemApi
.
getMockData
(
true
)
//获取APP配置信息
if
(
this
.
channelType
==
1
&&
mockdata
.
boutiqueDefaultCarBrandId
)
{
if
(
this
.
channelType
==
1
&&
mockdata
.
boutiqueDefaultCarBrandId
)
{
this
.
$store
.
state
.
user
.
boutiqueDefaultCarBrandId
=
mockdata
.
boutiqueDefaultCarBrandId
//默认车辆品牌
this
.
$store
.
state
.
user
.
boutiqueDefaultCarBrandId
=
mockdata
.
boutiqueDefaultCarBrandId
//默认车辆品牌
if
(
mockdata
.
defaultCarId
)
this
.
$store
.
state
.
user
.
defaultCarId
=
mockdata
.
defaultCarId
//默认车系
if
(
mockdata
.
defaultCarId
)
this
.
$store
.
state
.
user
.
defaultCarId
=
mockdata
.
defaultCarId
//默认车系
}
}
this
.
get_Vehicle_Sales_Data
()
this
.
get_Vehicle_Sales_Data
()
this
.
requested
=
true
this
.
$refs
.
home
.
updateApp
(
true
)
},
},
onShow
()
{
async
onShow
()
{
const
userInfo
=
uni
.
$storage
.
get
(
'userInfo'
)
const
userInfo
=
uni
.
$storage
.
get
(
'userInfo'
)
if
(
!
userInfo
.
shopMerchantId
||
!
userInfo
.
shopMerchantName
)
{
if
(
!
userInfo
.
shopMerchantId
||
!
userInfo
.
shopMerchantName
)
{
uni
.
$storage
.
rm
(
'userInfo'
)
uni
.
$storage
.
rm
(
'userInfo'
)
...
@@ -105,6 +107,7 @@ export default {
...
@@ -105,6 +107,7 @@ export default {
...
mapMutations
(
'audio'
,
[
'setReceptionStatus'
]),
...
mapMutations
(
'audio'
,
[
'setReceptionStatus'
]),
init
()
{
init
()
{
this
.
findPayInfo
()
this
.
findPayInfo
()
if
(
this
.
requested
&&
!
this
.
id
)
this
.
$refs
.
home
.
updateApp
()
},
},
/**获取车型&销售数据 */
/**获取车型&销售数据 */
get_Vehicle_Sales_Data
()
{
get_Vehicle_Sales_Data
()
{
...
...
utils/recordManager/TempRecord.js
View file @
48216e9
...
@@ -3,8 +3,8 @@
...
@@ -3,8 +3,8 @@
* @version: 1.0.0
* @version: 1.0.0
* @Author: limin
* @Author: limin
* @Date: 2025-01-02 18:49:17
* @Date: 2025-01-02 18:49:17
* @LastEditors:
前端 qianduan01@didihu.com.c
n
* @LastEditors:
limi
n
* @LastEditTime: 2025-0
4-11 15:59:20
* @LastEditTime: 2025-0
8-12 10:23:15
* @FilePath: \gl_tape\utils\recordManager\TempRecord.js
* @FilePath: \gl_tape\utils\recordManager\TempRecord.js
*/
*/
import
utils
from
'../utils'
import
utils
from
'../utils'
...
@@ -91,6 +91,17 @@ class TempRecord {
...
@@ -91,6 +91,17 @@ class TempRecord {
record
=
null
record
=
null
uni
.
$logger
.
local
.
info
(
'〖接待记录Record〗 == 置空接待记录'
)
uni
.
$logger
.
local
.
info
(
'〖接待记录Record〗 == 置空接待记录'
)
}
}
/**
* 清除已保存的录音文件
* @param {Object} options - 配置参数
* @param {Array} options.recordUrlList - 录音文件列表,默认为当前记录的recordUrlList
*/
clearSavedFiles
({
recordUrlList
=
[]
}
=
this
.
record
)
{
// 遍历录音文件列表并删除每个文件
recordUrlList
.
forEach
(
item
=>
{
this
.
removeFile
(
item
.
file
)
})
}
async
__analysisUrlList
(
recordUrlList
)
{
async
__analysisUrlList
(
recordUrlList
)
{
if
(
!
recordUrlList
?.
length
)
return
[]
if
(
!
recordUrlList
?.
length
)
return
[]
try
{
try
{
...
...
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