Commit 83c4805a by 李伟康

commit 提交

1 parent bfd7135d
...@@ -100,16 +100,19 @@ ...@@ -100,16 +100,19 @@
color: #fff; color: #fff;
} }
} }
.hide-margin{
.hide-margin {
margin-bottom: 0; margin-bottom: 0;
} }
.active { .active {
background: #F0F6FF; background: #F0F6FF;
.appeal-btn { .appeal-btn {
display: block; display: block;
} }
.text{
.text {
font-weight: 500; font-weight: 500;
} }
} }
...@@ -268,7 +271,9 @@ ...@@ -268,7 +271,9 @@
} }
} }
.suggestions-box {} .suggestions-box {
margin: 24rpx 0 0;
}
} }
} }
......
...@@ -16,7 +16,7 @@ Page({ ...@@ -16,7 +16,7 @@ Page({
activeIndex: 0, activeIndex: 0,
status: 'pause', status: 'pause',
currentTime: '00:00', //当前音频的播放位置 currentTime: '00:00', //当前音频的播放位置
isOperate:true isOperate: true
}, },
/** /**
...@@ -30,17 +30,17 @@ Page({ ...@@ -30,17 +30,17 @@ Page({
wx.$router.back() wx.$router.back()
}, },
onHandle(e){ onHandle(e) {
let { let {
isOperate isOperate
} = this.data; } = this.data;
if(isOperate){ if (isOperate) {
this.play() this.play()
}else{ } else {
this.onPause() this.onPause()
} }
this.setData({ this.setData({
isOperate:!isOperate isOperate: !isOperate
}) })
}, },
//音频暂停 //音频暂停
...@@ -64,7 +64,7 @@ Page({ ...@@ -64,7 +64,7 @@ Page({
let { let {
tag tag
} = this.data.record; } = this.data.record;
let _this=this; let _this = this;
let regex = new RegExp('环节', 'g') let regex = new RegExp('环节', 'g')
stage = stage.replace(regex, '') stage = stage.replace(regex, '')
wx.showModal({ wx.showModal({
...@@ -103,12 +103,14 @@ Page({ ...@@ -103,12 +103,14 @@ Page({
this.setData({ this.setData({
status: 'pause' status: 'pause'
}) })
this.setKeepScreenOn()
}) })
//监听音频的播放事件 //监听音频的播放事件
this.qualityAudio.onPlay(() => { this.qualityAudio.onPlay(() => {
this.setData({ this.setData({
status: 'start' status: 'start'
}) })
this.setKeepScreenOn(true)
}) })
this.qualityAudio.onTimeUpdate(this.onTimeUpdate) this.qualityAudio.onTimeUpdate(this.onTimeUpdate)
this.qualityAudio.onEnded(() => { this.qualityAudio.onEnded(() => {
...@@ -119,6 +121,7 @@ Page({ ...@@ -119,6 +121,7 @@ Page({
this.dialogueRef().setData({ this.dialogueRef().setData({
isPlayIng: false isPlayIng: false
}) })
this.setKeepScreenOn()
}) })
}, },
onTimeUpdate() { onTimeUpdate() {
...@@ -158,7 +161,7 @@ Page({ ...@@ -158,7 +161,7 @@ Page({
this.setData({ this.setData({
activeIndex: index activeIndex: index
}) })
if(index!=2){ if (index != 2) {
this.setData({ this.setData({
avgDefence: '' avgDefence: ''
}) })
...@@ -217,6 +220,12 @@ Page({ ...@@ -217,6 +220,12 @@ Page({
return formattedTime return formattedTime
} }
}, },
//屏幕是否常亮
setKeepScreenOn(keepScreenOn = false) {
wx.setKeepScreenOn({
keepScreenOn
})
},
/** /**
* 生命周期函数--监听页面初次渲染完成 * 生命周期函数--监听页面初次渲染完成
*/ */
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!