Commit 019ab5a2 by 王志慧

去掉播放中的事件

1 parent b36a4cf9
...@@ -79,7 +79,7 @@ Component({ ...@@ -79,7 +79,7 @@ Component({
} }
} }
if (data.every(item => !item.active)) { if (data&&data.every(item => !item.active)) {
data[0].active = true data[0].active = true
} }
if (data[data.length - 1].active) { if (data[data.length - 1].active) {
......
...@@ -23,8 +23,8 @@ ...@@ -23,8 +23,8 @@
<view class="duration">{{c.time}}</view> <view class="duration">{{c.time}}</view>
</view> </view>
<view class="text">{{c.content}}</view> <view class="text">{{c.content}}</view>
<view class="trumpet-box {{c.appealClass}}" bind:tap="seek" data-fIndex="{{ind}}" data-sIndex="{{cind}}"> <view class="trumpet-box {{c.appealClass}}" >
<gl-image class="trumpet" wx:if="{{!i.isPlay}}" webp src="/equity/trumpet.png" /> <gl-image class="trumpet" wx:if="{{!i.isPlay}}" bind:tap="seek" data-fIndex="{{ind}}" data-sIndex="{{cind}}" webp src="/equity/trumpet.png" />
<gl-image class="trumpet" wx:else webp src="/equity/play.gif" /> <gl-image class="trumpet" wx:else webp src="/equity/play.gif" />
</view> </view>
</view> </view>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!