You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
1.3 KiB
36 lines
1.3 KiB
6 months ago
|
<view class="tab">
|
||
|
<view class="tab-item{{tab==0?'active':''}}" bindtap="changeItem" data-item="0">音乐推荐</view>
|
||
|
<view class="tab-item{{tab==1?'active':''}}"bindtap="changeItem" data-item="1">播放器</view>
|
||
|
<view class="tab-item{{tab==2?'active':''}}"bindtap="changeItem" data-item="2">播放列表</view>
|
||
|
</view>
|
||
|
<view class="content">
|
||
|
<swiper current="{{item}}" bindchange="changeTab">
|
||
|
<swiper-item>
|
||
|
<include src="info.wxml"></include>
|
||
|
</swiper-item>
|
||
|
<swiper-item>
|
||
|
<include src="play.wxml"></include>
|
||
|
</swiper-item>
|
||
|
<swiper-item>
|
||
|
<include src="playlist.wxml"></include>
|
||
|
</swiper-item>
|
||
|
</swiper>
|
||
|
</view>
|
||
|
<view class="player">
|
||
|
<image class="player-cover" src="{{ play.coverImgUrl }}" data-item="1" bindtap="changeItem" />
|
||
|
<view class="player-info">
|
||
|
<view class="player-info-title" data-item="1" bindtap="changeItem">{{ play.title }}</view>
|
||
|
<view class="player-info-singer" data-item="1" bindtap="changeItem">{{ play.singer }}</view>
|
||
|
</view>
|
||
|
<view class="player-controls">
|
||
|
<!-- 切换到播放列表 -->
|
||
|
<image src="/images/01.png" data-item="2" bindtap="changeItem" />
|
||
|
<!-- 播放 -->
|
||
|
<image wx:if="{{ state == 'paused' }}" src="/images/02.png" bindtap="play" />
|
||
|
<image wx:else src="/images/02stop.png" bindtap="pause" />
|
||
|
<!-- 下一曲 -->
|
||
|
<image src="/images/03.png" bindtap="next" />
|
||
|
</view>
|
||
|
|
||
|
|
||
|
</view>
|