Commit 099b7c7f002d7ffd5931ff52c72b9ee2e9aef07e

Authored by u123231312
1 parent a5450c13

no message

... ... @@ -16,11 +16,11 @@ class Template extends Common{
public function index(){
//$path = $this->publicpath.'images/'.input('folder').'/';
//
//测试环境 /Applications/XAMPP/xamppfiles/htdocs/dashboard/images/
//线上环境 /alidata/www/dc-api/public/tables/batchPicsyn/
$path = "/alidata/www/dc-api/public/tables/batchPicsyn/";
if($_SERVER['REMOTE_ADDR']=="127.0.0.1")
$path = "/Applications/XAMPP/xamppfiles/htdocs/dashboard/images/";
else
$path = "/alidata/www/dc-api/public/tables/batchPicsyn/";
$uppath = explode('/',input('folder'));
$leve = count($uppath)-1;
... ... @@ -56,7 +56,12 @@ class Template extends Common{
}
public function PackzipDownload(){
$path = "/alidata/www/dc-api/public/tables/batchPicsyn/";
if($_SERVER['REMOTE_ADDR']=="127.0.0.1")
$path = "/Applications/XAMPP/xamppfiles/htdocs/dashboard/images/";
else
$path = "/alidata/www/dc-api/public/tables/batchPicsyn/";
$file=$path.input('post.filename');
//首先判断是图片还是路径
if($this->isImage($file)!==false){
... ...
... ... @@ -6,7 +6,7 @@
.table-list ul.pic li span { width:82px;height:82px;display: block;border: 1px solid #dedede;}
.table-list ul.pic li span a {border:1px solid #eee;width:80px;height:80px;*font-size: 75px;display: table-cell; vertical-align: middle; overflow: hidden;}
.table-list ul.pic li img {max-height:80px;max-width:80px ;_width:80px;_height:80px;}
.table-list ul.pic li b {display:block;line-height:20px;height:20px;font-weight:normal;width:82px;overflow:hidden;}
.table-list ul.pic li b {display:block;line-height:20px;height:20px;font-weight:normal;width:80px;overflow:hidden;}
.table-list ul.pic li em {position:absolute;right:25px;bottom:20px;font-style: normal;}
.table-list ul.pic li em a{color: #f00;}
</style>
... ... @@ -47,7 +47,7 @@
{if condition="!empty($vo['ico'])"}
<img src="/static/home/images/ext/{$vo['ext']}.png">
{else /}
<img src="https://xt04.colorcun.com/tables/batchPicsyn/{:input('folder')}{$vo.filename}" >
<a href="https://xt04.colorcun.com/tables/batchPicsyn/{:input('folder')}{$vo.filename}" download="w3logo"><img src="https://xt04.colorcun.com/tables/batchPicsyn/{:input('folder')}{$vo.filename}" ></a>
{/if}
</a>
</span>
... ...