产品公告
-了解产品最新动态
+{$current_cate.title}
+{$current_cate.description}
diff --git a/app/controller/frontend/SearchController.php b/app/controller/frontend/SearchController.php index 32278f2..f7f7290 100644 --- a/app/controller/frontend/SearchController.php +++ b/app/controller/frontend/SearchController.php @@ -40,7 +40,7 @@ class SearchController extends BaseController //搜索 $param = $this->request->param(); - $keywords = $param['q']; + $keywords = $param['q'] ?? ''; $this->assign('keywords',$keywords); // 获取可以查询的栏目 diff --git a/app/provider/Bootstrap.php b/app/provider/Bootstrap.php index 2c3a33f..8cc9720 100644 --- a/app/provider/Bootstrap.php +++ b/app/provider/Bootstrap.php @@ -5,26 +5,26 @@ namespace app\provider; use think\Paginator; /** - * Bootstrap 分页驱动 + * Bootstrap 分页驱动(前台 d-pagination 结构) */ class Bootstrap extends Paginator { + private const ARROW_SVG = "data:image/svg+xml,%3csvg%20viewBox='0%200%2016.51%206.661'%20xmlns='http://www.w3.org/2000/svg'%20width='16.51'%20height='6.661'%20fill='none'%3e%3cpath%20d='M0%202.831h16v1H0V2.831zm15.293.5L12.818.856a.5.5%200%200%201%20.707-.707l2.829%202.828a.5.5%200%200%201%200%20.708l-2.829%202.828a.5.5%200%201%201-.707-.707L15.293%203.331z'%20fill='%232e353a'/%3e%3c/svg%3e"; /** * 上一页按钮 * @param string $text * @return string */ - protected function getPreviousButton(string $text = "«"): string + protected function getPreviousButton(string $text = '上一页'): string { + $disabled = $this->currentPage() <= 1 ? ' disabled' : ''; - if ($this->currentPage() <= 1) { - return $this->getDisabledTextWrapper($text); - } - - $url = $this->currentPage - 1; - - return $this->getPageLinkWrapper($url, $text); + return ''; } /** @@ -32,15 +32,15 @@ class Bootstrap extends Paginator * @param string $text * @return string */ - protected function getNextButton(string $text = '»'): string + protected function getNextButton(string $text = '下一页'): string { - if (!$this->hasMore) { - return $this->getDisabledTextWrapper($text); - } - - $url = $this->currentPage + 1; + $disabled = !$this->hasMore ? ' disabled' : ''; - return $this->getPageLinkWrapper($url, $text); + return ''; } /** @@ -96,7 +96,7 @@ class Bootstrap extends Paginator } /** - * 渲染分页html + * 渲染分页 html * @return mixed */ public function render() @@ -104,66 +104,73 @@ class Bootstrap extends Paginator if ($this->hasPages()) { if ($this->simple) { return sprintf( - '
了解产品最新动态
+{$current_cate.description}
-
-
-
-
-
- - 睿能科技成立于2007年,总部位于福建福州,是一家专注于工业自动化控制产品研发、生产、销售及半导体产品分销的高新技术企业。公司于2017年在上海证券交易所主板上市。 -
-
+ {volist name="list" id="vo"}
+ {php}
+ $sr_date = '';
+ $sr_time = $vo['publish_time'] ?? ($vo['create_time'] ?? '');
+ if (!empty($sr_time)) {
+ $sr_date = is_numeric($sr_time) ? date('Y-m-d', (int)$sr_time) : $sr_time;
+ }
+ $sr_cid = $vo['category_id'] ?? ($vo['category'][0]['id'] ?? 0);
+ $sr_thumb = is_array($vo['thumbnail'] ?? null) ? ($vo['thumbnail']['url'] ?? '') : '';
+ $sr_url = hcUrl('detail/index', ['id' => $vo['id'], 'cid' => $sr_cid]);
+ {/php}
+ - 冶金工业一直面临着数据量大、信息系统多、黑箱体系、信息孤岛、控制滞后的问题。睿能科技结合多年行业经验,配合先进控制技术和多目标优化技术等智能算法,形成一体化冶金行业解决方案,以优质的产品和服务不断为冶金行业的... -
+ {notempty name="vo.description"} +{$vo.description}
+ {/notempty}未找到相关结果,请尝试其他关键词
+ {empty name="list"} +未找到相关结果,请尝试其他关键词
+ {/empty} + {$list_page|raw} diff --git a/public/themes/website/1/zh/demo/video.html b/public/themes/website/1/zh/demo/video.html index ddd047e..2388f7f 100644 --- a/public/themes/website/1/zh/demo/video.html +++ b/public/themes/website/1/zh/demo/video.html @@ -46,6 +46,7 @@ + @@ -84,7 +85,7 @@