1 Star 0 Fork 36

zipa/vtb-music

forked from Santiego/vtb-music 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
template_en.js 2.92 KB
一键复制 编辑 原始数据 按行查看 历史
LT5D工作室-云资 提交于 2020-05-09 13:15 . add template_en.js.
// template_en
var data_template = {
'music_card': `<div class="music-card">
<div class="music-card-vocal">{{vocals_name}}</div>
<div class="music-card-subtitle">{{name}}</div>
<div class="music-card-body">
<div class="music-card-img" style="background: url({{img}});"></div>
<span class="cover" ondblclick="ui.btn_sm_play_pause('{{song_id}}')"></span>
<span class="btn-sm btn-sm-play" onclick="ui.btn_sm_play_pause('{{song_id}}')" data-btn-play="{{song_id}}"></span>
<div class="btn-sm btn-sm-more">
<div class="dropdown-content">
<a href="javascript:void(0);" onclick="player.add_song_to_list('{{song_id}}')">Add to Playlist</a>
{{vocals_link}}
<a href="{{song_path}}" download="{{name}}">Download</a>
</div>
</div>
</div>
</div>`,
'figure_card': `<div class="figure-card">
<div style="background: url({{img}})" class="figure-img" onclick="app.switch_app(app_vocal,'{{name}}')"></div>
</div>`,
'figure_card_ext': `<div class="figure-card">
<div style="display: inline-block;background: url({{img}})" class="figure-img" onclick="app.switch_app(app_vocal,'{{name}}')"></div>
<div class="figure-text">
<div class="figure-name" id="figure-name" onclick="app.switch_app(app_vocal,'{{name}}')">{{name}}</div>
<div class="figure-jpname" id="figure-jpname" onclick="app.switch_app(app_vocal,'{{name}}')">{{jpname}}</div>
</div>
</div>`,
'album_card': `<div class="album-card">
<div class="album-card-title">{{name}}</div>
<div class="album-card-subtitle">{{vocal}}</div>
<div class="album-card-body">
<div class="album-card-img" style="background: url({{img}});"></div>
<span class="cover" onclick="app.switch_app(app_album,'{{name}}')"></span>
<div class="btn-sm btn-sm-more">
<div class="dropdown-content">
<a href="javascript:void(0);" onclick="player.add_album_to_list('{{name}}')">Add to Playlist</a>
<a href="javascript:void(0);" onclick="app.switch_app(app_album,'{{name}}')">View</a>
</div>
</div>
</div>
</div>`,
'song-item': `<div class="playlist-song">
<div class="nav-btn-play btn-playlist" data-btn-play="{{song_id}}" onclick="ui.btn_playlist_play_pause('{{song_id}}')"></div>
<div class="playlist-song-name" onclick="ui.btn_playlist_play_pause('{{song_id}}')">{{name}}</div>
{{vocals_link}}
<div class="playlist-song-time">{{date}}</div>
<a class="playlist-btn-primary" href="{{song_path}}" download="{{name}}">Download</a>
<div class="playlist-btn-primary" onclick="player.add_song_to_list('{{song_id}}')">Add to Playlist</div>
</div>`,
'playlist-item': `<div class="playlist-song">
<div class="nav-btn-play btn-playlist" data-btn-play="{{song_id}}" onclick="ui.btn_playlist_play_pause('{{song_id}}')"></div>
<div class="playlist-song-name" onclick="ui.btn_playlist_play_pause('{{song_id}}')">{{name}}</div>
{{vocals_link}}
<div class="playlist-btn-remove" onclick="player.delete_song_from_list('{{song_id}}')">Delete</div>
</div>`,
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/zipated/vtb-music.git
git@gitee.com:zipated/vtb-music.git
zipated
vtb-music
vtb-music
master

搜索帮助