show aplayer

pull/72/head
qkqpttgf 2020-05-26 09:48:50 +08:00 committed by GitHub
parent 6a616eca6b
commit 64dd0f238c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 6 deletions

View File

@ -319,8 +319,8 @@
</li> </li>
<!--FolderListEnd--> <!--FolderListEnd-->
<!--FileListStart--> <!--FileListStart-->
<li class="mdui-list-item file mdui-ripple" data-sort data-sort-name="<!--FileEncodeReplaceName-->" data-sort-date="<!--lastModifiedDateTime-->" data-sort-size="<!--size-->"> <li class="mdui-list-item file mdui-ripple" data-sort data-sort-name="<!--FileEncodeReplaceName-->" data-sort-date="<!--lastModifiedDateTime-->" data-sort-size="<!--size-->" data-readypreview="<!--FileExt-->">
<a data-name="<!--FileEncodeReplaceName-->" href="<!--FileEncodeReplaceUrl-->?preview" target="_blank"> <a class="<!--FileExtType-->" data-name="<!--FileEncodeReplaceName-->" href="<!--FileEncodeReplaceUrl-->?preview" target="_blank">
<!--<?php if(isImage($item['name']) and $_COOKIE["image_mode"] == "1"):?> <!--<?php if(isImage($item['name']) and $_COOKIE["image_mode"] == "1"):?>
<img class="mdui-img-fluid" src="<?php echo get_absolute_path($root.$path).rawurlencode($item['name']); ?>"> <img class="mdui-img-fluid" src="<?php echo get_absolute_path($root.$path).rawurlencode($item['name']); ?>">
<?php else:?>--> <?php else:?>-->
@ -333,7 +333,7 @@
</a> </a>
<div class="forcedownload " > <div class="forcedownload " >
<a title="直接下载" href="<!--FileEncodeReplaceUrl-->"> <a title="<!--constStr@Download-->" href="<!--FileEncodeReplaceUrl-->">
<button class="mdui-btn mdui-ripple mdui-btn-icon"><i class="mdui-icon material-icons">file_download</i></button> <button class="mdui-btn mdui-ripple mdui-btn-icon"><i class="mdui-icon material-icons">file_download</i></button>
</a> </a>
</div> </div>
@ -393,15 +393,17 @@ var $$ = mdui.JQ;
$$(function() { $$(function() {
$$('.file .iframe').each(function() { $$('.file .iframe').each(function() {
$$(this).on('click', function() { $$(this).on('click', function() {
url=$$(this).attr('href');
//url=url.substr(0,url.length-8);
layer.open({ layer.open({
type: 2, type: 2,
title: '<a target="_blank" href="'+$$(this).attr('href')+"<?php echo ((config('root_path') == '?')?'&s':'?s'); ?>"+'">'+ $$(this).find('span').text()+'(点击新窗口打开)</a>', //jia, title: '<a target="_blank" href="'+url+'">'+ $$(this).find('span').text()+'(点击新窗口打开)</a>', //jia,
//shadeClose: true, //shadeClose: true,
move: false, move: false,
shade: false, shade: false,
maxmin: true, maxmin: true,
area: ['100%', '100%'], area: ['100%', '100%'],
content: $$(this).attr('href')+"<?php echo ((config('root_path') == '?')?'&s':'?s'); ?>" //le content: url //le
,min: function(layero){ ,min: function(layero){
//zi; //zi;
layero.css({top: '90%'}) layero.css({top: '90%'})
@ -439,7 +441,7 @@ TC.preview_audio = function(aud){
} }
TC.aplayerList.push({ TC.aplayerList.push({
name:n, name:n,
url:this.href, url:this.href.substr(0,this.href.length-8),
artist:" ", artist:" ",
lrc:lrc lrc:lrc
}); });