Commit 70faaa24 by 胡悦

Merge branch 'SAAS+V4.42' of http://192.168.3.233:8090/saas_plus/dj-car-boutique…

…-work-wechat into SAAS+V4.42
2 parents 0e80fdb7 83c4805a
......@@ -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;
}
}
}
......
......@@ -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
})
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!