css
This commit is contained in:
parent
c8dc06bc55
commit
9627e80512
24
README.md
24
README.md
@ -7,8 +7,8 @@
|
|||||||
* 后台:http://adm.aieok.com:888
|
* 后台:http://adm.aieok.com:888
|
||||||
* 账号:test
|
* 账号:test
|
||||||
* 密码:test123
|
* 密码:test123
|
||||||
* 版本:TaoLer 1.7.24
|
* 版本:TaoLer 1.7.25
|
||||||
* 日期:2021.7.22
|
* 日期:2021.7.23
|
||||||
|
|
||||||
#### 项目地址
|
#### 项目地址
|
||||||
|
|
||||||
@ -41,12 +41,20 @@
|
|||||||
一款至简的社区模板,适合政府机构、教育机构、事业单位、商业企业、个人站长等众多行业领域。
|
一款至简的社区模板,适合政府机构、教育机构、事业单位、商业企业、个人站长等众多行业领域。
|
||||||
|
|
||||||
#### 安装教程
|
#### 安装教程
|
||||||
|
1. 首选确保满目使用环境要求,php > 7.2, mysql > 5.7.3
|
||||||
1. git下载:https://gitee.com/toogee/TaoLer
|
2. git下载:https://gitee.com/toogee/TaoLer
|
||||||
2. 官网下载:https://www.aieok.com
|
官网下载:https://www.aieok.com
|
||||||
3. 解压后,项目绑定域名为public目录对外访问,首次安装,访问域名http://www.youdomain.com可自动跳转到/install/index进行引导安装,重新安装需删除根目录下install.lock。
|
3. 解压后,项目绑定域名为public目录对外访问,如果使用nginx服务器,首先设置伪静态Nginx.conf。
|
||||||
4. 安装前需要先创建mysql数据库(准备:数据库连接地址,数据库用户名,数据库密码,数据库端口,建好在数据库名)
|
```html
|
||||||
5. 请牢记安装设置的管理员用户名和密码,默认admin/123456。前后台的管理员密码一致。前后端管理员账户是独立的,前端主要对文章内容的审查管理等操作。
|
location / { // …..省略部分代码
|
||||||
|
if (!-e $request_filename) {
|
||||||
|
rewrite ^(.*)$ /index.php?s=/$1 last;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
4. 首次安装,访问域名http://www.youdomain.com可自动跳转到/install/index进行引导安装,重新安装需删除public目录下install.lock。
|
||||||
|
5. 安装前需要先创建mysql数据库(准备:数据库连接地址,数据库用户名,数据库密码,数据库端口,建好在数据库名)
|
||||||
|
6. 请牢记安装设置的管理员用户名和密码,默认admin/123456。前后台的管理员密码一致。前后端管理员账户是独立的,前端主要对文章内容的审查管理等操作。
|
||||||
|
|
||||||
#### 使用说明
|
#### 使用说明
|
||||||
|
|
||||||
|
@ -68,7 +68,7 @@
|
|||||||
$.ajax({
|
$.ajax({
|
||||||
type:"post",
|
type:"post",
|
||||||
url:"{:url('admin/Forum/addtags')}",
|
url:"{:url('admin/Forum/addtags')}",
|
||||||
data:{"sort":sort,"catename":tags,"ename":ename,"icon":cion,"desc":desc},
|
data:{"sort":sort,"catename":tags,"ename":ename,"icon":icon,"desc":desc},
|
||||||
daType:"json",
|
daType:"json",
|
||||||
success:function (data){
|
success:function (data){
|
||||||
if (data.code == 0) {
|
if (data.code == 0) {
|
||||||
@ -96,11 +96,7 @@
|
|||||||
//分类热点控制
|
//分类热点控制
|
||||||
form.on('checkbox(menu-show)', function(data){
|
form.on('checkbox(menu-show)', function(data){
|
||||||
var data = data.elem;
|
var data = data.elem;
|
||||||
if(data.checked == true){
|
data.value = data.checked ? 1 : 0;
|
||||||
data.value = 1;
|
|
||||||
}else{
|
|
||||||
data.value = 0;
|
|
||||||
}
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type:'post',
|
type:'post',
|
||||||
url:"{:url('admin/Forum/tagshot')}",
|
url:"{:url('admin/Forum/tagshot')}",
|
||||||
@ -111,9 +107,7 @@
|
|||||||
layer.msg(data.msg,{
|
layer.msg(data.msg,{
|
||||||
icon:6,
|
icon:6,
|
||||||
time:2000
|
time:2000
|
||||||
}
|
});
|
||||||
//,function(){location.reload();}
|
|
||||||
);
|
|
||||||
} else {
|
} else {
|
||||||
layer.open({
|
layer.open({
|
||||||
title:'修改失败',
|
title:'修改失败',
|
||||||
|
@ -172,20 +172,28 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="layui-tab-item">
|
<div class="layui-tab-item">
|
||||||
<div class="layui-form" wid100 lay-filter="config">
|
<div class="layui-form" wid100 lay-filter="config">
|
||||||
<div class="layui-form-item">
|
<div class="layui-form-item">
|
||||||
<label class="layui-form-label">区域简称:</label>
|
<label class="layui-form-label">邮件通知:</label>
|
||||||
<div class="layui-input-inline" style="width: 30px;">
|
<div class="layui-input-inline" style="width: 30px;">
|
||||||
<input type="checkbox" name="area_show" lay-skin="primary" value=1 {if config('taoler.config.area_show') == 1} checked {/if}>
|
<input type="checkbox" name="email_notice" lay-skin="primary" value=1 {if config('taoler.config.email_notice') == 1} checked {/if}>
|
||||||
|
</div>
|
||||||
|
<div class="layui-form-mid layui-word-aux">是否显示发帖及评论等邮件提醒(需先配置邮箱服务)</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="layui-form-mid layui-word-aux">发件人所在地区简称</div>
|
|
||||||
</div>
|
|
||||||
<div class="layui-form-item">
|
<div class="layui-form-item">
|
||||||
<label class="layui-form-label">邮件通知:</label>
|
<label class="layui-form-label">分类显示:</label>
|
||||||
<div class="layui-input-inline" style="width: 30px;">
|
<div class="layui-input-inline" style="width: 30px;">
|
||||||
<input type="checkbox" name="email_notice" lay-skin="primary" value=1 {if config('taoler.config.email_notice') == 1} checked {/if}>
|
<input type="checkbox" name="cate_show" lay-skin="primary" value=1 {if config('taoler.config.cate_show') == 1} checked {/if}>
|
||||||
</div>
|
</div>
|
||||||
<div class="layui-form-mid layui-word-aux">发帖,评论等邮件提醒</div>
|
<div class="layui-form-mid layui-word-aux">是否显示列表及详情所属分类</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="layui-form-item">
|
||||||
|
<label class="layui-form-label">区域简称:</label>
|
||||||
|
<div class="layui-input-inline" style="width: 30px;">
|
||||||
|
<input type="checkbox" name="area_show" lay-skin="primary" value=1 {if config('taoler.config.area_show') == 1} checked {/if}>
|
||||||
|
</div>
|
||||||
|
<div class="layui-form-mid layui-word-aux">是否显示发件人所在地区简称</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div class="layui-form-item">
|
<div class="layui-form-item">
|
||||||
<div class="layui-input-block">
|
<div class="layui-input-block">
|
||||||
|
@ -261,7 +261,6 @@ class Article extends BaseController
|
|||||||
public function uploads()
|
public function uploads()
|
||||||
{
|
{
|
||||||
$type = Request::param('type');
|
$type = Request::param('type');
|
||||||
//halt($type);
|
|
||||||
$uploads = new Uploads();
|
$uploads = new Uploads();
|
||||||
switch ($type){
|
switch ($type){
|
||||||
case 'image':
|
case 'image':
|
||||||
@ -311,25 +310,35 @@ class Article extends BaseController
|
|||||||
//文章置顶,状态
|
//文章置顶,状态
|
||||||
public function jieset(){
|
public function jieset(){
|
||||||
$data = Request::param();
|
$data = Request::param();
|
||||||
$article = ArticleModel::field('id,is_top,is_hot')->find($data['id']);
|
$article = ArticleModel::field('id,is_top,is_hot,is_reply')->find($data['id']);
|
||||||
if($data['field'] === 'top') {
|
switch ($data['field']){
|
||||||
if($data['rank']==1){
|
case 'top':
|
||||||
$article->save(['is_top' => 1]);
|
if($data['rank']==1){
|
||||||
$res = ['status'=>0,'msg'=>'置顶成功'];
|
$article->save(['is_top' => 1]);
|
||||||
} else {
|
$res = ['status'=>0,'msg'=>'置顶成功'];
|
||||||
$article->save(['is_top' => 0]);
|
} else {
|
||||||
$res = ['status'=>0,'msg'=>'已取消置顶'];
|
$article->save(['is_top' => 0]);
|
||||||
}
|
$res = ['status'=>0,'msg'=>'已取消置顶'];
|
||||||
} else {
|
}
|
||||||
if($data['rank']==1){
|
break;
|
||||||
$article->save(['is_hot' => 1]);
|
case 'hot':
|
||||||
$res = ['status'=>0,'msg'=>'已设精贴'];
|
if($data['rank']==1){
|
||||||
} else {
|
$article->save(['is_hot' => 1]);
|
||||||
$article->save(['is_hot' => 0]);
|
$res = ['status'=>0,'msg'=>'已设精贴'];
|
||||||
$res = ['status'=>0,'msg'=>'精贴已取消'];
|
} else {
|
||||||
}
|
$article->save(['is_hot' => 0]);
|
||||||
}
|
$res = ['status'=>0,'msg'=>'精贴已取消'];
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case 'reply':
|
||||||
|
if($data['rank']==1){
|
||||||
|
$article->save(['is_reply' => 1]);
|
||||||
|
$res = ['status'=>0,'msg'=>'本帖禁评'];
|
||||||
|
} else {
|
||||||
|
$article->save(['is_reply' => 0]);
|
||||||
|
$res = ['status'=>0,'msg'=>'禁评已取消'];
|
||||||
|
}
|
||||||
|
}
|
||||||
//删除本贴设置缓存显示编辑后内容
|
//删除本贴设置缓存显示编辑后内容
|
||||||
Cache::delete('article_'.$data['id']);
|
Cache::delete('article_'.$data['id']);
|
||||||
//清除文章tag缓存
|
//清除文章tag缓存
|
||||||
|
@ -62,6 +62,8 @@ return [
|
|||||||
'top' => '置顶',
|
'top' => '置顶',
|
||||||
'cancel hoting' => '精-',
|
'cancel hoting' => '精-',
|
||||||
'cancel topping' => '顶-',
|
'cancel topping' => '顶-',
|
||||||
|
'enable reply' => '开评',
|
||||||
|
'disable reply' => '禁评',
|
||||||
'go sign' => '去签到',
|
'go sign' => '去签到',
|
||||||
'more post' => '更多帖子',
|
'more post' => '更多帖子',
|
||||||
'friendly link' => '友情链接',
|
'friendly link' => '友情链接',
|
||||||
|
@ -7,15 +7,17 @@ return [
|
|||||||
//应用名,此项不可更改
|
//应用名,此项不可更改
|
||||||
'appname' => 'TaoLer',
|
'appname' => 'TaoLer',
|
||||||
//版本配置
|
//版本配置
|
||||||
'version' => '1.7.24',
|
'version' => '1.7.25',
|
||||||
//加盐
|
//加盐
|
||||||
'salt' => 'taoler',
|
'salt' => 'taoler',
|
||||||
//数据库备份目录
|
//数据库备份目录
|
||||||
'databasebackdir' => app()->getRootPath() .'data/',
|
'databasebackdir' => app()->getRootPath() .'data/',
|
||||||
//配置
|
//配置
|
||||||
'config' =>[
|
'config' =>[
|
||||||
'area_show' => 0,
|
'email_notice' => 1,
|
||||||
'email_notice' => 1,
|
'cate_show' => 0,
|
||||||
|
'area_show' => 0,
|
||||||
|
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
@ -3,10 +3,8 @@
|
|||||||
@Name: Fly社区
|
@Name: Fly社区
|
||||||
@Author: 贤心
|
@Author: 贤心
|
||||||
@Site: fly.layui.com
|
@Site: fly.layui.com
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
/* 全局 */
|
/* 全局 */
|
||||||
html,body{overflow-x: hidden;}
|
html,body{overflow-x: hidden;}
|
||||||
html body{margin-top: 61px;}
|
html body{margin-top: 61px;}
|
||||||
@ -26,7 +24,7 @@ i{font-style: normal;}
|
|||||||
|
|
||||||
@media screen and (max-width: 992px) {
|
@media screen and (max-width: 992px) {
|
||||||
|
|
||||||
.site-menu{position: fixed; top: 0px; bottom: 0; min-height: 0; overflow-y: auto; overflow-x: hidden; z-index: 10001; left: -300px; background-color: #fff; transition: all .3s;}
|
.site-menu{position: fixed; top: 0; bottom: 0; min-height: 0; overflow-y: auto; overflow-x: hidden; z-index: 10001; left: -300px; background-color: #fff; transition: all .3s;}
|
||||||
/* 头部伸缩菜单栏 */
|
/* 头部伸缩菜单栏 */
|
||||||
.site-tree-mobile-top{display: block!important; position: fixed; z-index: 16666668; top: 2px; left: 10px; width: 57px; height: 57px; line-height: 57px; border-radius: 2px; text-align: center; color: #e2e2e2;}
|
.site-tree-mobile-top{display: block!important; position: fixed; z-index: 16666668; top: 2px; left: 10px; width: 57px; height: 57px; line-height: 57px; border-radius: 2px; text-align: center; color: #e2e2e2;}
|
||||||
.site-home .site-tree-mobile-top{display: none!important;}
|
.site-home .site-tree-mobile-top{display: none!important;}
|
||||||
@ -41,7 +39,6 @@ i{font-style: normal;}
|
|||||||
.site-mobile .site-tree-mobile{display: none !important;}
|
.site-mobile .site-tree-mobile{display: none !important;}
|
||||||
.site-mobile .site-mobile-shade{content: ''; position: fixed; top: 0; bottom: 0; left: 0; right: 0; background-color: rgba(0,0,0,.8); z-index: 999;}
|
.site-mobile .site-mobile-shade{content: ''; position: fixed; top: 0; bottom: 0; left: 0; right: 0; background-color: rgba(0,0,0,.8); z-index: 999;}
|
||||||
.site-tree-mobile i{font-size: 20px;}
|
.site-tree-mobile i{font-size: 20px;}
|
||||||
|
|
||||||
.site-mobile .layui-side{left: 0;}
|
.site-mobile .layui-side{left: 0;}
|
||||||
.site-mobile .layui-side-child{top: 50%; left: 200px; height: 300px; margin-top: -100px;}
|
.site-mobile .layui-side-child{top: 50%; left: 200px; height: 300px; margin-top: -100px;}
|
||||||
|
|
||||||
@ -210,12 +207,7 @@ i{font-style: normal;}
|
|||||||
|
|
||||||
/* 辅助 */
|
/* 辅助 */
|
||||||
a:hover{color: #009688; transition: all .3s;}
|
a:hover{color: #009688; transition: all .3s;}
|
||||||
pre{padding: 10px 15px; margin: 10px 0; font-size: 12px; border-left: 6px solid #009688; background-color: #f8f8f8; font-family: Courier New; overflow: auto;}
|
|
||||||
a:hover{color: #009688; transition: all .3s;}
|
|
||||||
pre{padding: 10px 15px; margin: 10px 0; font-size: 12px; border-left: 6px solid #009688; background-color: #f8f8f8; font-family: Courier New; overflow: auto;}
|
|
||||||
|
|
||||||
pre{position: relative; margin: 10px 0; padding: 15px; line-height: 20px; border: 1px solid #ddd; border-left-width: 6px; background-color: #F2F2F2; color: #333; font-family: Courier New; font-size: 12px;}
|
pre{position: relative; margin: 10px 0; padding: 15px; line-height: 20px; border: 1px solid #ddd; border-left-width: 6px; background-color: #F2F2F2; color: #333; font-family: Courier New; font-size: 12px;}
|
||||||
pre{border: none; border-left: 5px solid #ddd;}
|
|
||||||
|
|
||||||
.layui-container{padding: 0;}
|
.layui-container{padding: 0;}
|
||||||
.fly-main{width: 1079px; min-height: 600px; margin: 0 auto 15px;}
|
.fly-main{width: 1079px; min-height: 600px; margin: 0 auto 15px;}
|
||||||
@ -238,8 +230,9 @@ pre{border: none; border-left: 5px solid #ddd;}
|
|||||||
.fly-loading{position: absolute; top: 50%; left: 50%; margin: -12px 0 0 -15px; font-size: 30px; color: #c2c2c2;}
|
.fly-loading{position: absolute; top: 50%; left: 50%; margin: -12px 0 0 -15px; font-size: 30px; color: #c2c2c2;}
|
||||||
|
|
||||||
/* 头像 */
|
/* 头像 */
|
||||||
.fly-avatar{position: absolute; left: 15px; top: 15px;}
|
.fly-avatar{position: absolute; left: 15px; top: 10px;}
|
||||||
.fly-avatar img{display: block; width: 45px; height: 45px; margin: 0; border-radius: 2px;}
|
.fly-avatar img{display: block; width: 45px; height: 45px; margin: 0; border-radius: 100%;}
|
||||||
|
.fly-avatar i{position: absolute; left: 35px; top: 25px; }
|
||||||
|
|
||||||
/* 徽章 */
|
/* 徽章 */
|
||||||
.fly-badge-vip{height: 16px; line-height: 16px; padding: 0 3px; background-color: #FF5722; color: #fff; border-radius: 2px;}
|
.fly-badge-vip{height: 16px; line-height: 16px; padding: 0 3px; background-color: #FF5722; color: #fff; border-radius: 2px;}
|
||||||
@ -285,7 +278,7 @@ pre{border: none; border-left: 5px solid #ddd;}
|
|||||||
.fly-header .layui-nav .layui-nav-bar,
|
.fly-header .layui-nav .layui-nav-bar,
|
||||||
.fly-header .fly-nav-user .layui-nav-more{display: none !important;}
|
.fly-header .fly-nav-user .layui-nav-more{display: none !important;}
|
||||||
.fly-header .fly-nav-user .layui-nav-child{left: auto; right: 0; width: 120px; min-width: 0;}
|
.fly-header .fly-nav-user .layui-nav-child{left: auto; right: 0; width: 120px; min-width: 0;}
|
||||||
|
/*
|
||||||
.fly-html-layui .fly-nav-avatar .layui-nav-more{display: none !important;}
|
.fly-html-layui .fly-nav-avatar .layui-nav-more{display: none !important;}
|
||||||
.fly-header .fly-nav-user .layui-nav-child{left: auto; right: 0; width: 120px; min-width: 0;}
|
.fly-header .fly-nav-user .layui-nav-child{left: auto; right: 0; width: 120px; min-width: 0;}
|
||||||
.fly-html-layui .fly-nav-msg{left: -30px;}
|
.fly-html-layui .fly-nav-msg{left: -30px;}
|
||||||
@ -294,7 +287,7 @@ pre{border: none; border-left: 5px solid #ddd;}
|
|||||||
.fly-html-layui .layui-header .layui-nav .fly-layui-user{margin: 0; margin-left: 40px;}
|
.fly-html-layui .layui-header .layui-nav .fly-layui-user{margin: 0; margin-left: 40px;}
|
||||||
.fly-html-layui .layui-header .layui-nav .fly-layui-user a{padding: 0;}
|
.fly-html-layui .layui-header .layui-nav .fly-layui-user a{padding: 0;}
|
||||||
.fly-layui-user .layui-nav-child{left: auto; right: 0; min-width: 0; width: 120px;}
|
.fly-layui-user .layui-nav-child{left: auto; right: 0; min-width: 0; width: 120px;}
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
/* 底部 */
|
/* 底部 */
|
||||||
@ -444,7 +437,7 @@ body .layui-edit-face .layui-layer-content{padding:0; background-color:#fff; co
|
|||||||
.fly-rank{padding-bottom: 10px;}
|
.fly-rank{padding-bottom: 10px;}
|
||||||
.fly-rank dl{position: relative; overflow: hidden; margin-left: 20px; text-align: center; font-size: 0;}
|
.fly-rank dl{position: relative; overflow: hidden; margin-left: 20px; text-align: center; font-size: 0;}
|
||||||
.fly-rank dd{position: relative; width: 65px; height: 85px; margin: 10px 25px 5px 0; display:inline-block; *display:inline; *zoom:1; vertical-align:top; font-size:12px;}
|
.fly-rank dd{position: relative; width: 65px; height: 85px; margin: 10px 25px 5px 0; display:inline-block; *display:inline; *zoom:1; vertical-align:top; font-size:12px;}
|
||||||
.fly-rank dd a img{width: 65px; height: 65px; border-radius: 2px;}
|
.fly-rank dd a img{width: 65px; height: 65px; border-radius: 10px;}
|
||||||
.fly-rank dd a cite{ position:absolute; bottom: 20px; left: 0; width: 100%; height:20px; line-height:20px; text-align:center; background-color:rgba(0,0,0,.2); color:#fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;}
|
.fly-rank dd a cite{ position:absolute; bottom: 20px; left: 0; width: 100%; height:20px; line-height:20px; text-align:center; background-color:rgba(0,0,0,.2); color:#fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;}
|
||||||
.fly-rank dd a:hover cite{display: block;}
|
.fly-rank dd a:hover cite{display: block;}
|
||||||
.fly-rank dd a i{position:absolute; bottom: 0; left: 0; width: 100%; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-style: normal;}
|
.fly-rank dd a i{position:absolute; bottom: 0; left: 0; width: 100%; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-style: normal;}
|
||||||
@ -478,19 +471,20 @@ body .layui-edit-face .layui-layer-content{padding:0; background-color:#fff; co
|
|||||||
.jie-row li .jie-user img{position:relative; top: 16px; width: 35px; height: 35px;}
|
.jie-row li .jie-user img{position:relative; top: 16px; width: 35px; height: 35px;}
|
||||||
|
|
||||||
/* Detail页 */
|
/* Detail页 */
|
||||||
.detail-box{padding: 20px;}
|
.detail-box{padding-left: 20px; padding-top: 15px; padding-right: 20px; padding-bottom: 20px;}
|
||||||
.detail h1{font-size: 24px; line-height: 36px;}
|
.detail-box .fly-list-nums{margin-top: 20px; margin-right: 15px; padding-top: 5px; font-size: 16px;}
|
||||||
.fly-detail-info{position: relative; margin: 10px 0 15px;}
|
.detail-box .fly-list-nums i{padding: 0 3px 0 15px; font-size: 22px; color: #999;}
|
||||||
.fly-detail-info .layui-btn{height: 20px; line-height: 20px; vertical-align: top; border-radius: 0;}
|
.detail h1{font-size: 22px; line-height: 36px; padding-bottom:10px;}
|
||||||
.fly-detail-info .layui-btn+.layui-btn{margin-left: 0;}
|
.fly-admin-box{position: relative; display: inline-block; vertical-align: top; margin-right: 20px;}
|
||||||
.fly-admin-box{position: relative; display: inline-block; vertical-align: top; margin-left: 20px;}
|
|
||||||
.fly-detail-info .fly-list-nums{top: -3px; font-size: 16px;}
|
|
||||||
.fly-detail-info .fly-list-nums i{padding: 0 3px 0 15px; font-size: 22px; color: #999;}
|
|
||||||
|
|
||||||
.detail-about{position: relative; line-height: 20px; padding: 15px 15px 15px 75px; font-size: 13px; background-color: #f8f8f8; color: #999;}
|
|
||||||
|
.detail-about{position: relative; line-height: 15px; padding: 15px 15px 15px 75px; font-size: 13px; background-color: #f8f8f8; color: #999;border-radius:5px;}
|
||||||
.detail-about .jie-status, .detail-about .jie-status-ok{color:#fff;}
|
.detail-about .jie-status, .detail-about .jie-status-ok{color:#fff;}
|
||||||
.detail-about .fly-jing{padding:0 6px; background-color:#c00; color:#fff;}
|
.detail-about .fly-jing{padding:0 6px; background-color:#c00; color:#fff;}
|
||||||
.detail-about .detail-hits{position: relative; top: 5px; line-height: 20px;}
|
.detail-about .detail-hits{position: relative; top: 5px; line-height: 20px;}
|
||||||
|
.detail-about .fly-detail-info{position:absolute; right:0px;top:10px;}
|
||||||
|
.detail-about .fly-detail-info .layui-btn{height: 20px; line-height: 20px; vertical-align: top; border-radius: 0;}
|
||||||
|
.detail-about .fly-detail-info .layui-btn+.layui-btn{margin-left: 0;}
|
||||||
.fly-detail-user{white-space: nowrap; overflow: hidden;}
|
.fly-detail-user{white-space: nowrap; overflow: hidden;}
|
||||||
.fly-detail-user a{padding-right: 10px; font-size: 14px;}
|
.fly-detail-user a{padding-right: 10px; font-size: 14px;}
|
||||||
.fly-detail-user .icon-renzheng{top: 1px;}
|
.fly-detail-user .icon-renzheng{top: 1px;}
|
||||||
@ -499,7 +493,7 @@ body .layui-edit-face .layui-layer-content{padding:0; background-color:#fff; co
|
|||||||
.detail-hits .layui-btn{border-radius: 0;}
|
.detail-hits .layui-btn{border-radius: 0;}
|
||||||
.detail-hits .layui-btn+.layui-btn{margin-left: 5px;}
|
.detail-hits .layui-btn+.layui-btn{margin-left: 5px;}
|
||||||
.detail-hits .jie-admin{margin-right: 1px;}
|
.detail-hits .jie-admin{margin-right: 1px;}
|
||||||
.detail-body{margin: 20px 0 0; min-height: 306px; line-height: 26px; font-size: 16px; color: #333; word-wrap: break-word;}
|
.detail-body{margin: 10px 0 0; min-height: 306px; line-height: 26px; font-size: 16px; color: #333; word-wrap: break-word;}
|
||||||
.detail-body p{margin-bottom:15px;}
|
.detail-body p{margin-bottom:15px;}
|
||||||
.detail-body img{max-width: 100%; cursor: pointer;}
|
.detail-body img{max-width: 100%; cursor: pointer;}
|
||||||
/*
|
/*
|
||||||
@ -514,12 +508,20 @@ body .layui-edit-face .layui-layer-content{padding:0; background-color:#fff; co
|
|||||||
.detail-body ul>li{margin-top: 0;}
|
.detail-body ul>li{margin-top: 0;}
|
||||||
.detail-body .layui-elem-quote{margin: 10px 0; font-size: 14px; line-height: 26px;}
|
.detail-body .layui-elem-quote{margin: 10px 0; font-size: 14px; line-height: 26px;}
|
||||||
|
|
||||||
|
/* 详情页的底部操作条 */
|
||||||
|
.site-tree-mobile-detail-bottom{display: block!important; position: fixed; z-index: 1666666; bottom: 0px; left: 0px; width: 100%; height: 30px; line-height: 30px; border-radius: 2px; text-align: center; color: #e2e2e2;background:#eeeeee}
|
||||||
|
.site-home .site-tree-mobile-detail-bottom{display: none!important;}
|
||||||
|
.site-mobile .site-tree-mobile-detail-bottom{display: none !important;}
|
||||||
|
.site-mobile .site-menu{left: 0;}
|
||||||
|
.site-mobile .site-tree-mobile-detail-bottom{content: ''; position: fixed; top: 0; bottom: 0; left: 0; right: 0; background-color: rgba(0,0,0,.8); z-index: 999;}
|
||||||
|
.site-tree-mobile-detail-bottom i{font-size: 30px;}
|
||||||
|
|
||||||
/*标题颜色展示方式*/
|
/*标题颜色展示方式*/
|
||||||
.layui-colorpicker.layui-colorpicker-xs {width: 30px;height: 20px;line-height: 16px;border: 0px solid #e6e6e6;padding: 0;vertical-align: top;border-radius: 0;}
|
.layui-colorpicker.layui-colorpicker-xs {width: 30px;height: 20px;line-height: 16px;border: 0px solid #e6e6e6;padding: 0;vertical-align: top;border-radius: 0;}
|
||||||
.layui-colorpicker-trigger-span {display: block;height: 100%;box-sizing: border-box;border: 1px solid rgba(2, 0, 0, 0.24);border-radius: 2px;text-align: center;}
|
.layui-colorpicker-trigger-span {display: block;height: 100%;box-sizing: border-box;border: 1px solid rgba(2, 0, 0, 0.24);border-radius: 2px;text-align: center;}
|
||||||
.layui-icon-down:before {font-size: 12px;content: "高亮";}
|
.layui-icon-down:before {font-size: 12px;content: "高亮";}
|
||||||
/*扫码阅读*/
|
/*扫码阅读*/
|
||||||
.detail_qrcode{position: absolute;top: 7px;right: 7px;width: 30px;height: 30px;background: url(/static/res/images/detail_qrcode.png) no-repeat;background-size: 30px 30px;}
|
.detail_qrcode{position: absolute;top: 7px;right: 7px;width: 30px;height: 30px;background: url("/static/res/images/detail_qrcode.png") no-repeat;background-size: 30px 30px;}
|
||||||
|
|
||||||
/* 发帖 */
|
/* 发帖 */
|
||||||
.layui-form-item.layui-col-space15{margin-bottom: 7.5px;}
|
.layui-form-item.layui-col-space15{margin-bottom: 7.5px;}
|
||||||
@ -668,7 +670,7 @@ body .fly-user-main{position: relative; min-height: 600px;}
|
|||||||
|
|
||||||
/* 广告 */
|
/* 广告 */
|
||||||
.fly-ad{position: relative; background-color: #f2f2f2; overflow:hidden;}
|
.fly-ad{position: relative; background-color: #f2f2f2; overflow:hidden;}
|
||||||
.fly-ad:before{content: '广告位'; position: absolute; z-index: 0; top: 50%; left: 50%; left: 50%; margin: -10px 0 0 -25px; color: #aaa; font-size: 18px; font-weight: 300;}
|
.fly-ad:before{content: '广告位'; position: absolute; z-index: 0; top: 50%; left: 50%; margin: -10px 0 0 -25px; color: #aaa; font-size: 18px; font-weight: 300;}
|
||||||
.fly-ad div{position: relative; z-index: 1;}
|
.fly-ad div{position: relative; z-index: 1;}
|
||||||
|
|
||||||
/* 友链 */
|
/* 友链 */
|
||||||
@ -712,11 +714,11 @@ body .fly-user-main{position: relative; min-height: 600px;}
|
|||||||
/* 列表 */
|
/* 列表 */
|
||||||
.fly-list li h2 a{max-width: 72%;}
|
.fly-list li h2 a{max-width: 72%;}
|
||||||
|
|
||||||
/* Detail 页 */
|
/* Detail 页
|
||||||
.fly-admin-box{display: block; margin: 0; margin-top: 10px;}
|
.fly-admin-box{display: block; margin: 0; margin-top: 10px;}
|
||||||
.fly-detail-info .fly-list-nums{top: -2px;}
|
.fly-detail-info .fly-list-nums{top: -2px;}
|
||||||
.fly-edit span{border-right: none;}
|
.fly-edit span{border-right: none;}
|
||||||
|
*/
|
||||||
/* 案例 */
|
/* 案例 */
|
||||||
.fly-case-list,
|
.fly-case-list,
|
||||||
.fly-case-list li{width: 100%; -webkit-box-sizing: border-box !important; -moz-box-sizing: border-box !important; box-sizing: border-box !important;}
|
.fly-case-list li{width: 100%; -webkit-box-sizing: border-box !important; -moz-box-sizing: border-box !important; box-sizing: border-box !important;}
|
||||||
@ -767,7 +769,6 @@ color: #fff;
|
|||||||
}
|
}
|
||||||
.pagination .disabled{
|
.pagination .disabled{
|
||||||
display: none;
|
display: none;
|
||||||
|
|
||||||
@media screen and (max-width: 992px) {
|
@media screen and (max-width: 992px) {
|
||||||
body .header .layui-nav .layui-nav-item{margin: 0 5px;}
|
body .header .layui-nav .layui-nav-item{margin: 0 5px;}
|
||||||
}
|
}
|
||||||
|
@ -102,7 +102,7 @@ layui.define('fly', function(exports){
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
//设置置顶、状态
|
//设置置顶、加精、禁评、状态
|
||||||
,set: function(div){
|
,set: function(div){
|
||||||
var othis = $(this);
|
var othis = $(this);
|
||||||
fly.json(articleJieset, {
|
fly.json(articleJieset, {
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
<img src="{$art.user.user_img}" alt="{$art.user.name}">
|
<img src="{$art.user.user_img}" alt="{$art.user.name}">
|
||||||
</a>
|
</a>
|
||||||
<h2>
|
<h2>
|
||||||
<a class="layui-badge">{:cookie('think_lang') == 'en-us' ? $art.cate.ename : $art.cate.catename}</a>
|
{if config('taoler.config.cate_show') == 1}<a class="layui-badge">{:cookie('think_lang') == 'en-us' ? $art.cate.ename : $art.cate.catename}</a>{/if}
|
||||||
<a href="{:url('article/detail',['id' => $art.id])}" style="color:{$art.title_color};">{$art.title}</a>
|
<a href="{:url('article/detail',['id' => $art.id])}" style="color:{$art.title_color};">{$art.title}</a>
|
||||||
</h2>
|
</h2>
|
||||||
<div class="fly-list-info">
|
<div class="fly-list-info">
|
||||||
|
@ -8,69 +8,62 @@
|
|||||||
{block name="content"}
|
{block name="content"}
|
||||||
<div class="layui-container">
|
<div class="layui-container">
|
||||||
<div class="layui-row layui-col-space15">
|
<div class="layui-row layui-col-space15">
|
||||||
<div class="">{include file="public/menu" /}</div>
|
|
||||||
|
|
||||||
<div class="layui-col-md8 content detail">
|
<div class="layui-col-md8 content detail">
|
||||||
<div class="fly-panel detail-box">
|
<div class="fly-panel detail-box">
|
||||||
<h1 style="color:{$article.title_color};font-weight:bold">{$article.title}
|
<h1 style="color:{$article.title_color};">{$article.title}
|
||||||
<span><div onclick="PhoneDown();" style="" class="detail_qrcode" id="mobile"></div></span>
|
<span class="layui-hide-xs"><div onclick="PhoneDown();" style="" class="detail_qrcode" id="mobile"></div></span>
|
||||||
</h1>
|
</h1>
|
||||||
|
<span class="fly-list-nums">
|
||||||
<div class="fly-detail-info">
|
<a href="#comment"><i class="iconfont" title="{:lang('reply')}"></i> {$comments->count()} </a>
|
||||||
<!-- <span class="layui-badge">审核中</span> -->
|
<i class="iconfont" title="浏览"></i> {$pv}
|
||||||
<span class="layui-badge layui-bg-green fly-detail-column">{:cookie('think_lang') == 'en-us' ? $article.cate.ename : $article.cate.catename}</span>
|
</span>
|
||||||
{if ($article.jie == 0)}
|
|
||||||
<span class="layui-badge" style="background-color: #999;">{:lang('no finished')}</span>
|
<div class="detail-about">
|
||||||
{else /}
|
<a class="fly-avatar" href="{:url('user/home',['id'=>$article.user.id])}">
|
||||||
<span class="layui-badge" style="background-color: #5FB878;">{:lang('finished')}</span>
|
<img src="{$article.user.user_img}" alt="{$article.user.name}">
|
||||||
{/if}
|
<i class="iconfont icon-renzheng" title="认证信息"></i>
|
||||||
{if ($article.is_top == 1)}
|
</a>
|
||||||
<span class="layui-badge layui-bg-black">{:lang('top')}</span>
|
<div class="fly-detail-user">
|
||||||
{/if}
|
<a href="{:url('user/home',['id'=>$article.user.id])}" class="fly-link">
|
||||||
{if ($article.is_hot == 1)}
|
{if config('taoler.config.area_show') == 1}<i class="layui-badge layui-bg-green " title="">{:getAsing($article.user.area_id) ?: '无'}</i>{/if}
|
||||||
<span class="layui-badge layui-bg-red">{:lang('hot')}</span>
|
<cite>{$article.user.nickname ?: $article.user.name}</cite>
|
||||||
{/if}
|
</a>
|
||||||
|
</div>
|
||||||
|
<div class="fly-detail-info">
|
||||||
<div class="fly-admin-box" data-id="{$article.id}">
|
<div class="fly-admin-box" data-id="{$article.id}">
|
||||||
{if ($user.auth ?? '')}
|
{if ($user.auth ?? '')}
|
||||||
<span class="layui-btn layui-btn-xs jie-admin" type="del">{:lang('delete')}</span>
|
<span class="layui-btn layui-btn-xs jie-admin" type="del"><i class="layui-icon layui-icon-delete"></i></span>
|
||||||
{if($article.is_top == 0)}
|
{if($article.is_top == 0)}
|
||||||
<span class="layui-btn layui-btn-xs jie-admin" type="set" field="top" rank="1">{:lang('top')}</span>
|
<span class="layui-btn layui-btn-xs jie-admin" type="set" field="top" rank="1"><i class="layui-icon layui-icon-top"></i></span>
|
||||||
{else /}
|
{else /}
|
||||||
<span class="layui-btn layui-btn-xs jie-admin" type="set" field="top" rank="0" style="background-color:#ccc;">{:lang('cancel topping')}</span>
|
<span class="layui-btn layui-btn-xs jie-admin" type="set" field="top" rank="0" style="background-color:#ccc;">{:lang('cancel topping')}</span>
|
||||||
{/if}
|
{/if}
|
||||||
{if($article.is_hot == 0)}
|
{if($article.is_hot == 0)}
|
||||||
<span class="layui-btn layui-btn-xs jie-admin" type="set" field="hot" rank="1">{:lang('hot')}</span>
|
<span class="layui-btn layui-btn-xs jie-admin" type="set" field="hot" rank="1"><i class="layui-icon layui-icon-fire"></i></span>
|
||||||
{else /}
|
{else /}
|
||||||
<span class="layui-btn layui-btn-xs jie-admin" type="set" field="hot" rank="0" style="background-color:#ccc;">{:lang('cancel hoting')}</span>
|
<span class="layui-btn layui-btn-xs jie-admin" type="set" field="hot" rank="0" style="background-color:#ccc;">{:lang('cancel hoting')}</span>
|
||||||
{/if}
|
{/if}
|
||||||
|
{if($article.is_reply == 1)}
|
||||||
|
<span class="layui-btn layui-btn-xs jie-admin" type="set" field="reply" rank="0"><i class="layui-icon layui-icon-face-cry"></i></span>
|
||||||
|
{else /}
|
||||||
|
<span class="layui-btn layui-btn-xs jie-admin" type="set" field="reply" rank="1" style="background-color:#ccc;">{:lang('enable reply')}</span>
|
||||||
|
{/if}
|
||||||
<span id="color">{:lang('title color')}</span>
|
<span id="color">{:lang('title color')}</span>
|
||||||
{/if}
|
{/if}
|
||||||
|
{if(session('user_name')==$article.user.name || ($user.auth ?? ''))}
|
||||||
|
<span class="layui-btn layui-btn-xs jie-admin" type="edit"><a href="{:url('article/edit',['id'=>$article.id])}">{:lang('edit')}</a></span>
|
||||||
|
{/if}
|
||||||
|
<div id="LAY_jieAdmin" data-id="{$article['id']}"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<span class="fly-list-nums">
|
|
||||||
<a href="#comment"><i class="iconfont" title="{:lang('reply')}"></i> {$comments->count()} </a>
|
|
||||||
<i class="iconfont" title="浏览"></i> {$pv}
|
|
||||||
</span>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="detail-about">
|
|
||||||
<a class="fly-avatar" href="{:url('user/home',['id'=>$article.user.id])}">
|
<div class="detail-hits">
|
||||||
<img src="{$article.user.user_img}" alt="{$article.user.name}">
|
<!--span style="padding-right: 10px; color: #FF7200">悬赏:60飞吻</span-->
|
||||||
</a>
|
<span class="post-time" data="{$article.create_time}" style="padding-top: 5px;"></span>
|
||||||
<div class="fly-detail-user">
|
</div>
|
||||||
<a href="{:url('user/home',['id'=>$article.user.id])}" class="fly-link">
|
|
||||||
{if config('taoler.config.area_show') == 1}<i class="layui-badge layui-bg-green " title="来自哪简称">{:getAsing($article.user.area_id) ?: '无'}</i>{/if}
|
|
||||||
<cite>{$article.user.nickname ?: $article.user.name}</cite>
|
|
||||||
<i class="iconfont icon-renzheng" title="认证信息:{{ rows.user.approve }}"></i>
|
|
||||||
{if($article.user.vip > 0)}<i class="layui-badge fly-badge-vip">vip{$article.user.vip}</i>{/if}
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
<div class="detail-hits" id="LAY_jieAdmin" data-id="{$article['id']}">
|
|
||||||
<!--span style="padding-right: 10px; color: #FF7200">悬赏:60飞吻</span-->
|
|
||||||
<span class="post-time" data="{$article.create_time}" style="padding-top: 5px;"></span>
|
|
||||||
{if(session('user_name')==$article.user.name || ($user.auth ?? ''))}
|
|
||||||
<span class="layui-btn layui-btn-xs jie-admin" type="edit"><a href="{:url('article/edit',['id'=>$article.id])}">{:lang('edit')}</a></span>
|
|
||||||
{/if}
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="detail-body photos">{$article.content|raw}</div>
|
<div class="detail-body photos">{$article.content|raw}</div>
|
||||||
{notempty name="$article.upzip"}
|
{notempty name="$article.upzip"}
|
||||||
@ -80,12 +73,9 @@
|
|||||||
</div>
|
</div>
|
||||||
{/notempty}
|
{/notempty}
|
||||||
</div>
|
</div>
|
||||||
|
<!--评论-->
|
||||||
<div class="fly-panel detail-box" id="flyReply">
|
<div class="fly-panel detail-box" id="flyReply">
|
||||||
<fieldset class="layui-elem-field layui-field-title" style="text-align: center;">
|
<span style="font-size:18px;">评论 {$comments->count()}</span>
|
||||||
<legend>{:lang('reply')}</legend>
|
|
||||||
</fieldset>
|
|
||||||
|
|
||||||
<ul class="jieda" id="jieda">
|
<ul class="jieda" id="jieda">
|
||||||
{volist name="comments" id="vo" empty= ""}
|
{volist name="comments" id="vo" empty= ""}
|
||||||
<li data-id="{$vo.id}" class="jieda-daan">
|
<li data-id="{$vo.id}" class="jieda-daan">
|
||||||
@ -96,7 +86,7 @@
|
|||||||
</a>
|
</a>
|
||||||
<div class="fly-detail-user">
|
<div class="fly-detail-user">
|
||||||
<a href="{:url('user/home',['id'=>$vo.user.id])}" class="fly-link">
|
<a href="{:url('user/home',['id'=>$vo.user.id])}" class="fly-link">
|
||||||
<i class="layui-badge layui-bg-green " title="来自哪里简称">{:getAsing($vo.user.area_id) ?: '无'}</i>
|
{if config('taoler.config.area_show') == 1}<i class="layui-badge layui-bg-green " title="">{:getAsing($vo.user.area_id) ?: '无'}</i>{/if}
|
||||||
<cite>{$vo.user.nickname ?: $vo.user.name}</cite>
|
<cite>{$vo.user.nickname ?: $vo.user.name}</cite>
|
||||||
<!--i class="iconfont icon-renzheng" title="认证信息:XXX"></i>
|
<!--i class="iconfont icon-renzheng" title="认证信息:XXX"></i>
|
||||||
<i class="layui-badge fly-badge-vip">VIP3</i-->
|
<i class="layui-badge fly-badge-vip">VIP3</i-->
|
||||||
@ -140,11 +130,7 @@
|
|||||||
</li>
|
</li>
|
||||||
{/volist}
|
{/volist}
|
||||||
</ul>
|
</ul>
|
||||||
|
<div style="text-align: center">{$comments|raw}</div>
|
||||||
<div style="text-align: center">
|
|
||||||
{$comments|raw}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{if condition="$article.is_reply == 1"}
|
{if condition="$article.is_reply == 1"}
|
||||||
<div class="layui-form layui-form-pane">
|
<div class="layui-form layui-form-pane">
|
||||||
<form >
|
<form >
|
||||||
@ -194,6 +180,12 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
{include file="public/menu" /}
|
||||||
|
<!--底部栏-->
|
||||||
|
<div class="site-tree-mobile-detail-bottom layui-hide-md">
|
||||||
|
<div id="LAY_jieAdmin" data-id="{$article['id']}"></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
{/block}
|
{/block}
|
||||||
{block name="script"}
|
{block name="script"}
|
||||||
@ -228,7 +220,7 @@ layui.use(['fly', 'face','colorpicker','plyr'], function(){
|
|||||||
|
|
||||||
othis.text(posttime);
|
othis.text(posttime);
|
||||||
//console.log(othis.attr('data'));
|
//console.log(othis.attr('data'));
|
||||||
})
|
});
|
||||||
|
|
||||||
|
|
||||||
//预定义颜色项
|
//预定义颜色项
|
||||||
@ -248,21 +240,15 @@ layui.use(['fly', 'face','colorpicker','plyr'], function(){
|
|||||||
dataType:'json',
|
dataType:'json',
|
||||||
success:function(data){
|
success:function(data){
|
||||||
if(data.code == 0){
|
if(data.code == 0){
|
||||||
layer.msg(data.msg,{
|
layer.msg(data.msg,{icon:6,time:2000
|
||||||
icon:6,
|
|
||||||
time:2000
|
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
layer.open({
|
layer.open({content:data.msg,icon:5,adim:6});
|
||||||
content:data.msg,
|
|
||||||
icon:5,
|
|
||||||
adim:6
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
//评论需要登陆
|
//评论需要登陆
|
||||||
$('#recomment').click(function (){
|
$('#recomment').click(function (){
|
||||||
@ -275,27 +261,16 @@ layui.use(['fly', 'face','colorpicker','plyr'], function(){
|
|||||||
dataType:"json",
|
dataType:"json",
|
||||||
success:function (data) {
|
success:function (data) {
|
||||||
if (data.code == 0) {
|
if (data.code == 0) {
|
||||||
layer.msg(data.msg,{
|
layer.msg(data.msg,{icon:6,time:2000},function () {
|
||||||
icon:6,
|
|
||||||
time:2000
|
|
||||||
},function () {
|
|
||||||
location.reload(true);
|
location.reload(true);
|
||||||
});
|
});
|
||||||
}else {
|
}else {
|
||||||
layer.open({
|
layer.open({title:'评论失败',content:data.msg,icon:5,anim:6});
|
||||||
title:'评论失败',
|
|
||||||
content:data.msg,
|
|
||||||
icon:5,
|
|
||||||
anim:6
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
layer.msg('请先登陆',{
|
layer.msg('请先登陆',{icon:5,time:2000},function(){
|
||||||
icon:5,
|
|
||||||
time:2000
|
|
||||||
},function () {
|
|
||||||
location.href = "{:url('login/index')}";
|
location.href = "{:url('login/index')}";
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -319,7 +294,7 @@ layui.use(['fly', 'face','colorpicker','plyr'], function(){
|
|||||||
$('.detail-body').each(function(){
|
$('.detail-body').each(function(){
|
||||||
var othis = $(this), html = othis.html();
|
var othis = $(this), html = othis.html();
|
||||||
othis.html(fly.content(html));
|
othis.html(fly.content(html));
|
||||||
})
|
});
|
||||||
//加载播放器
|
//加载播放器
|
||||||
plyr.setup();
|
plyr.setup();
|
||||||
|
|
||||||
@ -345,7 +320,7 @@ $("#rdown").hover(function(){
|
|||||||
content: "<img src='/qrcode/?text={$Request.domain}{:url('article/detail',['id' => $article.id])}&size=230'>"
|
content: "<img src='/qrcode/?text={$Request.domain}{:url('article/detail',['id' => $article.id])}&size=230'>"
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
//推送百度收录服务
|
||||||
(function(){
|
(function(){
|
||||||
var bp = document.createElement('script');
|
var bp = document.createElement('script');
|
||||||
var curProtocol = window.location.protocol.split(':')[0];
|
var curProtocol = window.location.protocol.split(':')[0];
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
<img src="{$art.user.user_img}" alt="{$art.user.name}">
|
<img src="{$art.user.user_img}" alt="{$art.user.name}">
|
||||||
</a>
|
</a>
|
||||||
<h2>
|
<h2>
|
||||||
<a class="layui-badge">{:cookie('think_lang') == 'en-us' ? $art.cate.ename : $art.cate.catename}</a>
|
{if config('taoler.config.cate_show') == 1}<a class="layui-badge">{:cookie('think_lang') == 'en-us' ? $art.cate.ename : $art.cate.catename}</a>{/if}
|
||||||
<a href="{:url('article/detail',['id' => $art.id])}" style="color:{$art.title_color};">{$art.title}</a>
|
<a href="{:url('article/detail',['id' => $art.id])}" style="color:{$art.title_color};">{$art.title}</a>
|
||||||
</h2>
|
</h2>
|
||||||
<div class="fly-list-info">
|
<div class="fly-list-info">
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
<img src="{$top.user.user_img}" alt="{$top.user.name}">
|
<img src="{$top.user.user_img}" alt="{$top.user.name}">
|
||||||
</a>
|
</a>
|
||||||
<h2>
|
<h2>
|
||||||
<a class="layui-badge">{:cookie('think_lang') == 'en-us' ? $top.cate.ename : $top.cate.catename}</a>
|
{if config('taoler.config.cate_show') == 1}<a class="layui-badge">{:cookie('think_lang') == 'en-us' ? $top.cate.ename : $top.cate.catename}</a>{/if}
|
||||||
<a href="{:url('article/detail',['id' => $top.id])}" style="color:{$top.title_color};">{$top.title}</a>
|
<a href="{:url('article/detail',['id' => $top.id])}" style="color:{$top.title_color};">{$top.title}</a>
|
||||||
</h2>
|
</h2>
|
||||||
<div class="fly-list-info">
|
<div class="fly-list-info">
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
<div class="layui-hide-md">
|
<div class="layui-hide-md">
|
||||||
<div class="layui-panel site-menu" style="width: auto;">
|
<div class="layui-panel site-menu" style="width: auto;">
|
||||||
|
|
||||||
<ul class="layui-menu layui-menu-lg">
|
<ul class="layui-menu layui-menu-lg">
|
||||||
<li class="search" style="padding-left:5px;padding-top:2px;padding-right:5px;">
|
<li class="search" style="padding-left:5px;padding-top:2px;padding-right:5px;">
|
||||||
<form action="{:url('index/search',['keywords'=>$Request.param.keywords])}">
|
<form action="{:url('index/search',['keywords'=>$Request.param.keywords])}">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user