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 5dafdd0b
authored
Dec 18, 2024
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit 提交
1 parent
cb17d93c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
24 deletions
pages/boutique/index.vue
pages/equity/index.vue
pages/boutique/index.vue
View file @
5dafdd0
...
@@ -136,9 +136,6 @@ import HomeFrame from '@/components/HomeFrame/index.vue'
...
@@ -136,9 +136,6 @@ import HomeFrame from '@/components/HomeFrame/index.vue'
import
detail
from
'./detail.vue'
import
detail
from
'./detail.vue'
import
CustomerType
from
'./components/CustomerType.vue'
;
import
CustomerType
from
'./components/CustomerType.vue'
;
import
{
mapMutations
}
from
"vuex"
;
import
{
mapMutations
}
from
"vuex"
;
const
m5
=
require
(
"@/assets/images/boutique/index/m5.png"
)
const
m7
=
require
(
"@/assets/images/boutique/index/m7.png"
)
const
m9
=
require
(
"@/assets/images/boutique/index/m9.png"
)
const
defaultConfig
=
[
const
defaultConfig
=
[
{
{
name
:
'套餐火爆热卖'
,
name
:
'套餐火爆热卖'
,
...
@@ -348,16 +345,16 @@ export default {
...
@@ -348,16 +345,16 @@ export default {
this
.
recording
=
false
this
.
recording
=
false
},
},
async
start
(
before
=
true
)
{
async
start
(
before
=
true
)
{
//
const result = await this.$permision.requestAndroidPermission(
const
result
=
await
this
.
$permision
.
requestAndroidPermission
(
//
"android.permission.RECORD_AUDIO"
"android.permission.RECORD_AUDIO"
//
);
);
//
if (result !== 1) {
if
(
result
!==
1
)
{
//
uni.showToast({
uni
.
showToast
({
//
title: "为了记录语音通话,请打开录音权限",
title
:
"为了记录语音通话,请打开录音权限"
,
//
icon: "none",
icon
:
"none"
,
//
});
});
//
return false
return
false
//
}
}
if
(
before
)
this
.
clearHistory
();
if
(
before
)
this
.
clearHistory
();
this
.
$refs
.
home
.
startAudio
();
this
.
$refs
.
home
.
startAudio
();
this
.
recording
=
true
this
.
recording
=
true
...
...
pages/equity/index.vue
View file @
5dafdd0
...
@@ -220,17 +220,17 @@ export default {
...
@@ -220,17 +220,17 @@ export default {
async
start
()
{
async
start
()
{
if
(
this
.
recording
)
return
if
(
this
.
recording
)
return
//
uni.showLoading({
uni
.
showLoading
({
//
mask: true
mask
:
true
//
})
})
//
const result = await this.$permision.requestAndroidPermission('android.permission.RECORD_AUDIO')
const
result
=
await
this
.
$permision
.
requestAndroidPermission
(
'android.permission.RECORD_AUDIO'
)
//
if (result !== 1) {
if
(
result
!==
1
)
{
//
uni.showToast({
uni
.
showToast
({
//
title: '为了记录语音通话,请打开录音权限',
title
:
'为了记录语音通话,请打开录音权限'
,
//
icon: 'none'
icon
:
'none'
//
})
})
//
return
return
//
}
}
this
.
getSoure
()
this
.
getSoure
()
this
.
clearHistory
()
this
.
clearHistory
()
this
.
$refs
.
home
.
startAudio
()
this
.
$refs
.
home
.
startAudio
()
...
...
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