Commit 52d08e51 by 李伟康

commit 修改

1 parent 03edd334
......@@ -74,24 +74,27 @@ Component({
mergedOffset
}
},
play() {
const {
paused
} = this.innerAudioContext
if (paused) this.triggerEvent('play')
else this.triggerEvent('pause')
toDefenceDetail(e){
let {
item,
} = e.currentTarget.dataset
this.setData({
toId: item.text_id
})
this.isScrollling = true
this.touchend()
},
seek(e) {
seekPlay(e) {
let {
item,
scroll
} = e.currentTarget.dataset
thisPage.seek(item.mergedOffset)
this.setTopId(item, scroll)
},
seekPlay(e) {
this.seek(e)
this.triggerEvent('play')
const {
paused
} = this.innerAudioContext
if (paused) this.triggerEvent('play')
},
formatTime(num) {
let minutes = Math.floor(num / 60) || '0',
......
......@@ -113,7 +113,7 @@
</block>
<block wx:for="{{defenceDetailList}}" wx:key="index">
<view class="defence-item" style="top:{{item.top + '%'}};">
<view class="icon" bindtap="seek" data-item="{{item}}">
<view class="icon" bindtap="toDefenceDetail" data-item="{{item}}">
<gl-image webp src="/equity/reception/defence-icon.png" />
</view>
</view>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!