Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-boutique-work-wechat
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
1
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 83c4805a
authored
Jul 30, 2024
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit 提交
1 parent
bfd7135d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
10 deletions
packageEquity/pages/receptionDetail/components/dialogue/dialogue.sass
packageEquity/pages/receptionDetail/receptionDetail.js
packageEquity/pages/receptionDetail/components/dialogue/dialogue.sass
View file @
83c4805
...
...
@@ -100,16 +100,19 @@
color
:
#fff
;
}
}
.hide-margin
{
.hide-margin
{
margin-bottom
:
0
;
}
.active
{
background
:
#F0F6FF
;
.appeal-btn
{
display
:
block
;
}
.text
{
.text
{
font-weight
:
500
;
}
}
...
...
@@ -268,7 +271,9 @@
}
}
.suggestions-box
{}
.suggestions-box
{
margin
:
24rpx
0
0
;
}
}
}
...
...
packageEquity/pages/receptionDetail/receptionDetail.js
View file @
83c4805
...
...
@@ -16,7 +16,7 @@ Page({
activeIndex
:
0
,
status
:
'pause'
,
currentTime
:
'00:00'
,
//当前音频的播放位置
isOperate
:
true
isOperate
:
true
},
/**
...
...
@@ -30,17 +30,17 @@ Page({
wx
.
$router
.
back
()
},
onHandle
(
e
){
onHandle
(
e
)
{
let
{
isOperate
}
=
this
.
data
;
if
(
isOperate
)
{
if
(
isOperate
)
{
this
.
play
()
}
else
{
}
else
{
this
.
onPause
()
}
this
.
setData
({
isOperate
:
!
isOperate
isOperate
:
!
isOperate
})
},
//音频暂停
...
...
@@ -64,7 +64,7 @@ Page({
let
{
tag
}
=
this
.
data
.
record
;
let
_this
=
this
;
let
_this
=
this
;
let
regex
=
new
RegExp
(
'环节'
,
'g'
)
stage
=
stage
.
replace
(
regex
,
''
)
wx
.
showModal
({
...
...
@@ -103,12 +103,14 @@ Page({
this
.
setData
({
status
:
'pause'
})
this
.
setKeepScreenOn
()
})
//监听音频的播放事件
this
.
qualityAudio
.
onPlay
(()
=>
{
this
.
setData
({
status
:
'start'
})
this
.
setKeepScreenOn
(
true
)
})
this
.
qualityAudio
.
onTimeUpdate
(
this
.
onTimeUpdate
)
this
.
qualityAudio
.
onEnded
(()
=>
{
...
...
@@ -119,6 +121,7 @@ Page({
this
.
dialogueRef
().
setData
({
isPlayIng
:
false
})
this
.
setKeepScreenOn
()
})
},
onTimeUpdate
()
{
...
...
@@ -158,7 +161,7 @@ Page({
this
.
setData
({
activeIndex
:
index
})
if
(
index
!=
2
)
{
if
(
index
!=
2
)
{
this
.
setData
({
avgDefence
:
''
})
...
...
@@ -217,6 +220,12 @@ Page({
return
formattedTime
}
},
//屏幕是否常亮
setKeepScreenOn
(
keepScreenOn
=
false
)
{
wx
.
setKeepScreenOn
({
keepScreenOn
})
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
...
...
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