搜索页优化
This commit is contained in:
parent
0f912e8f52
commit
129dadbc4b
@ -672,7 +672,7 @@ layui.define(['layer', 'laytpl', 'form', 'element', 'upload', 'util'], function(
|
||||
|
||||
if(elemReply[0]){
|
||||
|
||||
fly.json(replyurl, {
|
||||
fly.json(replyUrl, {
|
||||
limit: 20
|
||||
}, function(res){
|
||||
var html = laytpl(tplReply).render(res);
|
||||
|
18
vendor/psr/log/Psr/Log/Test/DummyTest.php
vendored
Normal file
18
vendor/psr/log/Psr/Log/Test/DummyTest.php
vendored
Normal file
@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
namespace Psr\Log\Test;
|
||||
|
||||
/**
|
||||
* This class is internal and does not follow the BC promise.
|
||||
*
|
||||
* Do NOT use this class in any way.
|
||||
*
|
||||
* @internal
|
||||
*/
|
||||
class DummyTest
|
||||
{
|
||||
public function __toString()
|
||||
{
|
||||
return 'DummyTest';
|
||||
}
|
||||
}
|
66
vendor/topthink/think-multi-app/src/command/Clear.php
vendored
Normal file
66
vendor/topthink/think-multi-app/src/command/Clear.php
vendored
Normal file
@ -0,0 +1,66 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
|
||||
// +----------------------------------------------------------------------
|
||||
// | Copyright (c) 2006-2016 http://thinkphp.cn All rights reserved.
|
||||
// +----------------------------------------------------------------------
|
||||
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
|
||||
// +----------------------------------------------------------------------
|
||||
// | Author: liu21st <liu21st@gmail.com>
|
||||
// +----------------------------------------------------------------------
|
||||
namespace think\app\command;
|
||||
|
||||
use think\console\Command;
|
||||
use think\console\Input;
|
||||
use think\console\input\Argument;
|
||||
use think\console\input\Option;
|
||||
use think\console\Output;
|
||||
|
||||
class Clear extends Command
|
||||
{
|
||||
protected function configure()
|
||||
{
|
||||
// 指令配置
|
||||
$this->setName('clear')
|
||||
->addArgument('app', Argument::OPTIONAL, 'app name .')
|
||||
->addOption('cache', 'c', Option::VALUE_NONE, 'clear cache file')
|
||||
->addOption('log', 'l', Option::VALUE_NONE, 'clear log file')
|
||||
->addOption('dir', 'r', Option::VALUE_NONE, 'clear empty dir')
|
||||
->setDescription('Clear runtime file');
|
||||
}
|
||||
|
||||
protected function execute(Input $input, Output $output)
|
||||
{
|
||||
$app = $input->getArgument('app') ?: '';
|
||||
$runtimePath = $this->app->getRootPath() . 'runtime' . DIRECTORY_SEPARATOR . ($app ? $app . DIRECTORY_SEPARATOR : '');
|
||||
|
||||
if ($input->getOption('cache')) {
|
||||
$path = $runtimePath . 'cache';
|
||||
} elseif ($input->getOption('log')) {
|
||||
$path = $runtimePath . 'log';
|
||||
} else {
|
||||
$path = $runtimePath;
|
||||
}
|
||||
|
||||
$rmdir = $input->getOption('dir') ? true : false;
|
||||
$this->clear(rtrim($path, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR, $rmdir);
|
||||
|
||||
$output->writeln("<info>Clear Successed</info>");
|
||||
}
|
||||
|
||||
protected function clear(string $path, bool $rmdir): void
|
||||
{
|
||||
$files = is_dir($path) ? scandir($path) : [];
|
||||
|
||||
foreach ($files as $file) {
|
||||
if ('.' != $file && '..' != $file && is_dir($path . $file)) {
|
||||
array_map('unlink', glob($path . $file . DIRECTORY_SEPARATOR . '*.*'));
|
||||
if ($rmdir) {
|
||||
rmdir($path . $file);
|
||||
}
|
||||
} elseif ('.gitignore' != $file && is_file($path . $file)) {
|
||||
unlink($path . $file);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -61,53 +61,20 @@ TP5学习制作:Tao.2019
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-col-md4">
|
||||
|
||||
<div class="fly-panel">
|
||||
<h3 class="fly-panel-title">温馨通道</h3>
|
||||
<div class="layui-row fly-panel-main" style="padding: 15px;">
|
||||
<div class="layui-clear fly-list-quick">
|
||||
<div class="layui-col-xs6">
|
||||
<div><a href="https://gitee.com/toogee/TaoLer/repository/archive/master.zip" target="_blank"> 程序下载 </a></div>
|
||||
</div>
|
||||
<div class="layui-col-xs6">
|
||||
<div><a href="http://www.aieok.com/index/jie/25.html" target="_blank"> 应用说明 </a></div>
|
||||
</div>
|
||||
<div class="layui-col-xs6">
|
||||
<div><a href="#" target="_blank"> 申请Key </a></div>
|
||||
</div>
|
||||
<div class="layui-col-xs6">
|
||||
<div><a href="https://gitee.com/toogee/TaoLer" target="_blank"> Git 仓库 </a></div>
|
||||
</div>
|
||||
<div class="layui-col-xs6">
|
||||
<div><a href="#" target="_blank"> 模板 </a></div>
|
||||
</div>
|
||||
<div class="layui-col-xs6">
|
||||
<div><a href="#" target="_blank"> 关于积分 </a></div>
|
||||
</div>
|
||||
<a name="signin"> </a></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="fly-panel fly-rank fly-rank-reply" id="LAY_replyRank">
|
||||
<h3 class="fly-panel-title">回贴周榜</h3>
|
||||
<dl>
|
||||
<i class="layui-icon fly-loading"></i>
|
||||
</dl>
|
||||
<!--温馨通道-->
|
||||
<div class="fly-panel">
|
||||
<h3 class="fly-panel-title">温馨通道</h3>
|
||||
{include file="public/index-static" /}
|
||||
</div>
|
||||
|
||||
<dl class="fly-panel fly-list-one">
|
||||
<dt class="fly-panel-title">本周热议</dt>
|
||||
{volist name="artHot" id="vo"}
|
||||
{volist name="artHot" id="vo" empty="还没有帖子"}
|
||||
<dd>
|
||||
<a href="{:url('jie/detail',['id'=>$vo.id])}">{$vo.title}</a>
|
||||
<span><i class="iconfont icon-pinglun1"></i> 16</span>
|
||||
<span><i class="iconfont icon-pinglun1"></i> {$vo.comments_count}</span>
|
||||
</dd>
|
||||
{/volist}
|
||||
|
||||
<!-- 无数据时 -->
|
||||
<!--
|
||||
<div class="fly-none">没有相关数据</div>
|
||||
-->
|
||||
</dl>
|
||||
|
||||
<div class="fly-panel">
|
||||
@ -129,13 +96,13 @@ TP5学习制作:Tao.2019
|
||||
{block name="script"}
|
||||
|
||||
<script>
|
||||
layui.cache.page = '';
|
||||
layui.cache.page = 'index';
|
||||
layui.cache.user = {
|
||||
username: '游客'
|
||||
,uid: -1
|
||||
,avatar: '/static/res/images/avatar/00.jpg'
|
||||
username: '{$user.name??'游客'}'
|
||||
,uid: {$user.id ? $user.id : -1}
|
||||
,avatar: '{$user.name? $user['user_img']:'/static/res/images/avatar/00.jpg'}'
|
||||
,experience: 83
|
||||
,sex: '男'
|
||||
,sex: '{if condition="$user['sex'] eq 0"}男{else/}女{/if}'
|
||||
};
|
||||
layui.config({
|
||||
version: "3.0.0"
|
||||
|
@ -17,7 +17,7 @@
|
||||
</a>
|
||||
<span>{$top.create_time|date='Y-m-d'}</span>
|
||||
|
||||
<span class=" layui-hide-xs" title="悬赏飞吻"><i class="iconfont" title="人气"></i> {$top.pv}</span>
|
||||
<span class=" layui-hide-xs" title="人气"><i class="iconfont" title="人气"></i> {$top.pv}</span>
|
||||
{if ($top.jie == 1)}<span class="layui-badge fly-badge-accept layui-hide-xs">已结</span>{/if}
|
||||
<span class="fly-list-nums">
|
||||
<i class="iconfont icon-pinglun1" title="回答"></i> {$top.comments_count}
|
||||
|
Loading…
Reference in New Issue
Block a user