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.
24 lines
731 B
24 lines
731 B
6 months ago
|
<view class="song-list">
|
||
|
<block wx:if="{{songs.length > 0}}">
|
||
|
<view
|
||
|
class="song-item"
|
||
|
wx:for="{{songs}}"
|
||
|
wx:key="id"
|
||
|
bindtap="handleTap"
|
||
|
data-song="{{item}}"
|
||
|
>
|
||
|
<view class="index">{{index + 1}}</view>
|
||
|
<view class="info">
|
||
|
<view class="name">{{item.name}}</view>
|
||
|
<view class="artist">
|
||
|
<block wx:if="{{item.ar && item.ar.length}}">
|
||
|
{{formatArtists(item.ar)}}
|
||
|
<text wx:if="{{item.al.name}}"> - {{item.al.name}}</text>
|
||
|
</block>
|
||
|
</view>
|
||
|
</view>
|
||
|
<view class="duration" wx:if="{{item.dt}}">{{formatDuration(item.dt)}}</view>
|
||
|
</view>
|
||
|
</block>
|
||
|
<view wx:else class="empty">暂无歌曲</view>
|
||
|
</view>
|