优化移动端导航,链接投放优化
This commit is contained in:
parent
645e6ad120
commit
0c5943802e
@ -7,7 +7,7 @@ use think\facade\Db;
|
|||||||
use think\facade\Request;
|
use think\facade\Request;
|
||||||
use think\facade\Config;
|
use think\facade\Config;
|
||||||
use think\exception\ValidateException;
|
use think\exception\ValidateException;
|
||||||
use app\admin\model\Slider as SliderModel;
|
use app\common\model\Slider as SliderModel;
|
||||||
|
|
||||||
class Slider extends AdminController
|
class Slider extends AdminController
|
||||||
{
|
{
|
||||||
|
@ -8,16 +8,18 @@
|
|||||||
<label class="layui-form-label">位置</label>
|
<label class="layui-form-label">位置</label>
|
||||||
<div class="layui-input-inline">
|
<div class="layui-input-inline">
|
||||||
<select name="slid_type" lay-verify="required">
|
<select name="slid_type" lay-verify="required">
|
||||||
<option value="">请选择广告位置</option>
|
<option value="">链接投放位置</option>
|
||||||
<option value="1">1首页幻灯 - 1126x410</option>
|
<option value="1">1首页幻灯 - 1126x410</option>
|
||||||
<option value="2">2通用右底</option>
|
<option value="2">2首页图片</option>
|
||||||
<option value="3">3首页赞助</option>
|
<option value="3">3分类图片</option>
|
||||||
<option value="4">4文章赞助</option>
|
<option value="4">4详情图片</option>
|
||||||
<option value="5">5分类赞助</option>
|
<option value="5">5首页赞助</option>
|
||||||
<option value="6">6友情链接</option>
|
<option value="6">6分类赞助</option>
|
||||||
<option value="7">7温馨通道</option>
|
<option value="7">7详情赞助</option>
|
||||||
<option value="8">8头部菜单</option>
|
<option value="8">8温馨通道</option>
|
||||||
<option value="9">9页脚链接</option>
|
<option value="9">9友情链接</option>
|
||||||
|
<option value="10">10头部菜单</option>
|
||||||
|
<option value="11">11页脚链接</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -26,42 +28,41 @@
|
|||||||
<div class="layui-input-inline">
|
<div class="layui-input-inline">
|
||||||
<input type="text" name="slid_name" lay-verify="required" placeholder="请输入名称" autocomplete="off" class="layui-input">
|
<input type="text" name="slid_name" lay-verify="required" placeholder="请输入名称" autocomplete="off" class="layui-input">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<div class="layui-form-item">
|
|
||||||
<label class="layui-form-label">背景</label>
|
|
||||||
<div class="layui-input-inline">
|
|
||||||
<input type="text" name="slid_color" lay-verify="" placeholder="选位置3,4,5请选背景色" autocomplete="off" class="layui-input" id="color-select">
|
|
||||||
</div>
|
|
||||||
<div class="layui-inline" style="left: -11px;">
|
|
||||||
<div id="coloer-form"></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="layui-form-item">
|
|
||||||
<label class="layui-form-label">开始</label>
|
|
||||||
<div class="layui-input-inline">
|
|
||||||
<input type="text" name="slid_start" id="start-time" lay-verify="required" placeholder="yyyy-MM-dd" autocomplete="off" class="layui-input">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="layui-form-item">
|
|
||||||
<label class="layui-form-label">结束</label>
|
|
||||||
<div class="layui-input-inline">
|
|
||||||
<input type="text" name="slid_over" id="over-time" lay-verify="required" placeholder="yyyy-MM-dd" autocomplete="off" class="layui-input">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="layui-form-item">
|
|
||||||
<label class="layui-form-label">链接</label>
|
|
||||||
<div class="layui-input-inline">
|
|
||||||
<input type="text" name="slid_href" lay-verify="required" placeholder="输入完整连接" autocomplete="off" class="layui-input">
|
|
||||||
</div>
|
|
||||||
</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">
|
<div class="layui-input-inline">
|
||||||
<input type="text" name="slid_img" lay-verify="" placeholder="位置1,2需上传;位8需贴icon图标" autocomplete="off" class="layui-input" >
|
<input type="text" name="slid_img" lay-verify="" placeholder="位置1-4需上传;位10贴icon图" autocomplete="off" class="layui-input" >
|
||||||
</div>
|
</div>
|
||||||
<button style="float: left;" type="button" class="layui-btn" id="layuiadmin-upload-slid-img">选图</button>
|
<button style="float: left;" type="button" class="layui-btn" id="layuiadmin-upload-slid-img">选图</button>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="layui-form-item">
|
||||||
|
<label class="layui-form-label">背景</label>
|
||||||
|
<div class="layui-input-inline">
|
||||||
|
<input type="text" name="slid_color" lay-verify="" placeholder="选位置5,6,7请选背景色" autocomplete="off" class="layui-input" id="color-select">
|
||||||
|
</div>
|
||||||
|
<div class="layui-inline" style="left: -11px;">
|
||||||
|
<div id="coloer-form"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="layui-form-item">
|
||||||
|
<label class="layui-form-label">链接</label>
|
||||||
|
<div class="layui-input-inline">
|
||||||
|
<input type="text" name="slid_href" lay-verify="required" placeholder="输入完整连接*必填" autocomplete="off" class="layui-input">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="layui-form-item">
|
||||||
|
<label class="layui-form-label">开始</label>
|
||||||
|
<div class="layui-input-inline">
|
||||||
|
<input type="text" name="slid_start" id="start-time" lay-verify="required" placeholder="yyyy-MM-dd" autocomplete="off" class="layui-input">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="layui-form-item">
|
||||||
|
<label class="layui-form-label">结束</label>
|
||||||
|
<div class="layui-input-inline">
|
||||||
|
<input type="text" name="slid_over" id="over-time" lay-verify="required" placeholder="yyyy-MM-dd" autocomplete="off" class="layui-input">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div class="layui-form-item layui-hide">
|
<div class="layui-form-item layui-hide">
|
||||||
<input type="button" lay-submit lay-filter="LAY-slider-submit" id="LAY-slider-submit" value="确认">
|
<input type="button" lay-submit lay-filter="LAY-slider-submit" id="LAY-slider-submit" value="确认">
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
{extend name="public/base" /}
|
{extend name="public/base" /}
|
||||||
|
|
||||||
{block name="body"}
|
{block name="body"}
|
||||||
|
|
||||||
<div class="layui-form" lay-filter="layuiadmin-form-slider" id="layuiadmin-form-slider" style="padding: 20px 0 0 0;">
|
<div class="layui-form" lay-filter="layuiadmin-form-slider" id="layuiadmin-form-slider" style="padding: 20px 0 0 0;">
|
||||||
|
|
||||||
<div class="layui-form-item">
|
<div class="layui-form-item">
|
||||||
@ -9,14 +8,16 @@
|
|||||||
<div class="layui-input-inline">
|
<div class="layui-input-inline">
|
||||||
<select name="slid_type" lay-verify="required">
|
<select name="slid_type" lay-verify="required">
|
||||||
<option {if condition="$slider.slid_type eq 1"} selected {/if} value="1">1首页幻灯</option>
|
<option {if condition="$slider.slid_type eq 1"} selected {/if} value="1">1首页幻灯</option>
|
||||||
<option {if condition="$slider.slid_type eq 2"} selected {/if} value="2">2通用右底</option>
|
<option {if condition="$slider.slid_type eq 2"} selected {/if} value="2">2首页图片</option>
|
||||||
<option {if condition="$slider.slid_type eq 3"} selected {/if} value="3">3首页赞助</option>
|
<option {if condition="$slider.slid_type eq 3"} selected {/if} value="3">3分类图片</option>
|
||||||
<option {if condition="$slider.slid_type eq 4"} selected {/if} value="4">4文章赞助</option>
|
<option {if condition="$slider.slid_type eq 4"} selected {/if} value="4">4详情图片</option>
|
||||||
<option {if condition="$slider.slid_type eq 5"} selected {/if} value="5">5分类赞助</option>
|
<option {if condition="$slider.slid_type eq 5"} selected {/if} value="5">5首页赞助</option>
|
||||||
<option {if condition="$slider.slid_type eq 6"} selected {/if} value="6">6友情链接</option>
|
<option {if condition="$slider.slid_type eq 6"} selected {/if} value="6">6分类赞助</option>
|
||||||
<option {if condition="$slider.slid_type eq 7"} selected {/if} value="7">7温馨通道</option>
|
<option {if condition="$slider.slid_type eq 7"} selected {/if} value="7">7详情赞助</option>
|
||||||
<option {if condition="$slider.slid_type eq 8"} selected {/if} value="8">8头部菜单</option>
|
<option {if condition="$slider.slid_type eq 8"} selected {/if} value="8">8温馨通道</option>
|
||||||
<option {if condition="$slider.slid_type eq 9"} selected {/if} value="9">9页脚链接</option>
|
<option {if condition="$slider.slid_type eq 9"} selected {/if} value="9">9友情链接</option>
|
||||||
|
<option {if condition="$slider.slid_type eq 9"} selected {/if} value="10">10头部菜单</option>
|
||||||
|
<option {if condition="$slider.slid_type eq 9"} selected {/if} value="11">11页脚链接</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -26,6 +27,13 @@
|
|||||||
<input type="text" name="slid_name" lay-verify="required" placeholder="请输入名称" autocomplete="off" class="layui-input" value="{$slider.slid_name}">
|
<input type="text" name="slid_name" lay-verify="required" placeholder="请输入名称" autocomplete="off" class="layui-input" value="{$slider.slid_name}">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="layui-form-item">
|
||||||
|
<label class="layui-form-label">图片</label>
|
||||||
|
<div class="layui-input-inline">
|
||||||
|
<input type="text" name="slid_img" lay-verify="" placeholder="位置1,2需上传;位8需贴icon图标" autocomplete="off" class="layui-input" value="{$slider.slid_img}">
|
||||||
|
</div>
|
||||||
|
<button style="float: left;" type="button" class="layui-btn" dataid="{$slider.id}" id="layuiadmin-upload-slid-img">选图</button>
|
||||||
|
</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">
|
<div class="layui-input-inline">
|
||||||
@ -35,32 +43,24 @@
|
|||||||
<div id="coloer-form"></div>
|
<div id="coloer-form"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="layui-form-item">
|
|
||||||
<label class="layui-form-label">开始</label>
|
|
||||||
<div class="layui-input-inline">
|
|
||||||
<input type="text" name="slid_start" id="start-time" lay-verify="required" placeholder="yyyy-MM-dd" autocomplete="off" class="layui-input" value="{$slider.slid_start|date='Y-m-d'}">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="layui-form-item">
|
|
||||||
<label class="layui-form-label">结束</label>
|
|
||||||
<div class="layui-input-inline">
|
|
||||||
<input type="text" name="slid_over" id="over-time" lay-verify="required" placeholder="yyyy-MM-dd" autocomplete="off" class="layui-input" value="{$slider.slid_over|date='Y-m-d'}" >
|
|
||||||
</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">
|
<div class="layui-input-inline">
|
||||||
<input type="text" name="slid_href" lay-verify="required" placeholder="输入连接" autocomplete="off" class="layui-input" value="{$slider.slid_href}" >
|
<input type="text" name="slid_href" lay-verify="required" placeholder="输入连接" autocomplete="off" class="layui-input" value="{$slider.slid_href}" >
|
||||||
</div>
|
</div>
|
||||||
</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">
|
<div class="layui-input-inline">
|
||||||
<input type="text" name="slid_img" lay-verify="" placeholder="位置1,2需上传;位8需贴icon图标" autocomplete="off" class="layui-input" value="{$slider.slid_img}">
|
<input type="text" name="slid_start" id="start-time" lay-verify="required" placeholder="yyyy-MM-dd" autocomplete="off" class="layui-input" value="{$slider.slid_start|date='Y-m-d'}">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="layui-form-item">
|
||||||
|
<label class="layui-form-label">结束</label>
|
||||||
|
<div class="layui-input-inline">
|
||||||
|
<input type="text" name="slid_over" id="over-time" lay-verify="required" placeholder="yyyy-MM-dd" autocomplete="off" class="layui-input" value="{$slider.slid_over|date='Y-m-d'}" >
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<button style="float: left;" type="button" class="layui-btn" dataid="{$slider.id}" id="layuiadmin-upload-slid-img">选图</button>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="layui-form-item layui-hide">
|
<div class="layui-form-item layui-hide">
|
||||||
<input type="button" lay-submit lay-filter="LAY-slider-submit" id="LAY-slider-submit" value="确认">
|
<input type="button" lay-submit lay-filter="LAY-slider-submit" id="LAY-slider-submit" value="确认">
|
||||||
</div>
|
</div>
|
||||||
|
@ -5,7 +5,6 @@
|
|||||||
<div class="layui-row layui-col-space15">
|
<div class="layui-row layui-col-space15">
|
||||||
<div class="layui-col-md12">
|
<div class="layui-col-md12">
|
||||||
<div class="layui-card">
|
<div class="layui-card">
|
||||||
<div class="layui-card-header">首页幻灯</div>
|
|
||||||
<div class="layui-card-body">
|
<div class="layui-card-body">
|
||||||
|
|
||||||
<div class="layui-form" wid100 lay-filter="">
|
<div class="layui-form" wid100 lay-filter="">
|
||||||
@ -18,7 +17,7 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<th>ID</th>
|
<th>ID</th>
|
||||||
<th>名称</th>
|
<th>名称</th>
|
||||||
<th>图片</th>
|
<th>图片/icon</th>
|
||||||
<th>位置</th>
|
<th>位置</th>
|
||||||
<th>路径</th>
|
<th>路径</th>
|
||||||
<th>颜色</th>
|
<th>颜色</th>
|
||||||
@ -79,7 +78,7 @@
|
|||||||
$('#slid-add').on('click', function(){
|
$('#slid-add').on('click', function(){
|
||||||
layer.open({
|
layer.open({
|
||||||
type: 2,
|
type: 2,
|
||||||
title: '添加广告',
|
title: '添加链接',
|
||||||
content: 'add.html',
|
content: 'add.html',
|
||||||
maxmin: true,
|
maxmin: true,
|
||||||
area : ['460px' , '530px'],
|
area : ['460px' , '530px'],
|
||||||
@ -92,7 +91,6 @@
|
|||||||
//监听提交
|
//监听提交
|
||||||
iframeWindow.layui.form.on('submit('+ submitID +')', function(data){
|
iframeWindow.layui.form.on('submit('+ submitID +')', function(data){
|
||||||
var field = data.field; //获取提交的字段
|
var field = data.field; //获取提交的字段
|
||||||
//console.log(field);
|
|
||||||
|
|
||||||
//提交 Ajax 成功后,静态更新表格中的数据
|
//提交 Ajax 成功后,静态更新表格中的数据
|
||||||
$.ajax({
|
$.ajax({
|
||||||
@ -129,10 +127,10 @@
|
|||||||
var id = $(this).attr('id-data');
|
var id = $(this).attr('id-data');
|
||||||
layer.open({
|
layer.open({
|
||||||
type: 2,
|
type: 2,
|
||||||
title: '编辑幻灯',
|
title: '编辑链接',
|
||||||
content: 'edit.html?id='+ id,
|
content: 'edit.html?id='+ id,
|
||||||
maxmin: true,
|
maxmin: true,
|
||||||
area : ['460px' , '490px'],
|
area : ['460px' , '530px'],
|
||||||
btn: ['确定', '取消'],
|
btn: ['确定', '取消'],
|
||||||
yes: function(index, layero){
|
yes: function(index, layero){
|
||||||
var iframeWindow = window['layui-layer-iframe'+ index]
|
var iframeWindow = window['layui-layer-iframe'+ index]
|
||||||
|
@ -85,13 +85,13 @@ class BaseController extends BaseCtrl
|
|||||||
//头部链接
|
//头部链接
|
||||||
$head_links = Cache::get('headlinks');
|
$head_links = Cache::get('headlinks');
|
||||||
if(!$head_links){
|
if(!$head_links){
|
||||||
$head_links = Db::name('slider')->where(['slid_status'=>1,'delete_time'=>0,'slid_type'=>8])->whereTime('slid_over','>=',time())->field('slid_name,slid_img,slid_href')->select();
|
$head_links = Db::name('slider')->where(['slid_status'=>1,'delete_time'=>0,'slid_type'=>10])->whereTime('slid_over','>=',time())->field('slid_name,slid_img,slid_href')->select();
|
||||||
Cache::set('headlinks',$head_links,3600);
|
Cache::set('headlinks',$head_links,3600);
|
||||||
}
|
}
|
||||||
//页脚链接
|
//页脚链接
|
||||||
$foot_links = Cache::get('footlinks');
|
$foot_links = Cache::get('footlinks');
|
||||||
if(!$foot_links){
|
if(!$foot_links){
|
||||||
$foot_links = Db::name('slider')->where(['slid_status'=>1,'delete_time'=>0,'slid_type'=>9])->whereTime('slid_over','>=',time())->field('slid_name,slid_href')->select();
|
$foot_links = Db::name('slider')->where(['slid_status'=>1,'delete_time'=>0,'slid_type'=>11])->whereTime('slid_over','>=',time())->field('slid_name,slid_href')->select();
|
||||||
Cache::set('footlinks',$foot_links,3600);
|
Cache::set('footlinks',$foot_links,3600);
|
||||||
}
|
}
|
||||||
View::assign(['sysInfo'=>$sysInfo,'headlinks'=>$head_links,'footlinks'=>$foot_links]);
|
View::assign(['sysInfo'=>$sysInfo,'headlinks'=>$head_links,'footlinks'=>$foot_links]);
|
||||||
|
@ -23,18 +23,19 @@ class Slider extends Model
|
|||||||
protected $defaultSoftDelete = 0;
|
protected $defaultSoftDelete = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 首页幻灯
|
* 链接投放获取
|
||||||
|
* @param $type 链接类型
|
||||||
* @return mixed|\think\Collection
|
* @return mixed|\think\Collection
|
||||||
* @throws \think\db\exception\DataNotFoundException
|
* @throws \think\db\exception\DataNotFoundException
|
||||||
* @throws \think\db\exception\DbException
|
* @throws \think\db\exception\DbException
|
||||||
* @throws \think\db\exception\ModelNotFoundException
|
* @throws \think\db\exception\ModelNotFoundException
|
||||||
*/
|
*/
|
||||||
public function getSliderList()
|
public function getSliderList($type)
|
||||||
{
|
{
|
||||||
$sliders = Cache::get('slider');
|
$sliders = Cache::get('slider'.$type);
|
||||||
if(!$sliders){
|
if(!$sliders){
|
||||||
$sliders = $this::where(['slid_status'=>1,'delete_time'=>0,'slid_type'=>1])->whereTime('slid_over','>=',time())->select();
|
$sliders = $this::where(['slid_status'=>1,'delete_time'=>0,'slid_type'=>$type])->whereTime('slid_over','>=',time())->select();
|
||||||
Cache::set('slider',$sliders,3600);
|
Cache::set('slider'.$type,$sliders,3600);
|
||||||
}
|
}
|
||||||
return $sliders;
|
return $sliders;
|
||||||
}
|
}
|
||||||
@ -62,6 +63,13 @@ class Slider extends Model
|
|||||||
return 'edit_error';
|
return 'edit_error';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//获取器
|
||||||
|
public function getSlidTypeAttr($value)
|
||||||
|
{
|
||||||
|
$slid_type = [1=>'首页幻灯',2=>'首页图片',3=>'分类图片',4=>'详情图片',5=>'首页赞助',6=>'分类赞助',7=>'详情赞助',8=>'温馨通道',9=>'友情链接',10=>'头部菜单',11=>'页脚链接'];
|
||||||
|
return $slid_type[$value];
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -9,6 +9,7 @@ use think\facade\Cache;
|
|||||||
use think\facade\Config;
|
use think\facade\Config;
|
||||||
use app\common\model\Comment;
|
use app\common\model\Comment;
|
||||||
use app\common\model\Article as ArticleModel;
|
use app\common\model\Article as ArticleModel;
|
||||||
|
use app\common\model\Slider;
|
||||||
use think\exception\ValidateException;
|
use think\exception\ValidateException;
|
||||||
use taoler\com\Message;
|
use taoler\com\Message;
|
||||||
use app\common\lib\Msgres;
|
use app\common\lib\Msgres;
|
||||||
@ -61,16 +62,18 @@ class Article extends BaseController
|
|||||||
//分类列表
|
//分类列表
|
||||||
$article = new ArticleModel();
|
$article = new ArticleModel();
|
||||||
$artList = $article->getCateList($ename,$type,$page,$url,$suffix);
|
$artList = $article->getCateList($ename,$type,$page,$url,$suffix);
|
||||||
|
|
||||||
|
|
||||||
// 热议文章
|
// 热议文章
|
||||||
$artHot = $article->getArtHot(10);
|
$artHot = $article->getArtHot(10);
|
||||||
//分类右栏广告
|
|
||||||
$ad_cate = Db::name('slider')->where('slid_status',1)->where('delete_time',0)->where('slid_type',5)->whereTime('slid_over','>=',time())->select();
|
//广告
|
||||||
//通用右栏
|
$ad = new Slider();
|
||||||
$ad_comm = Db::name('slider')->where('slid_status',1)->where('delete_time',0)->where('slid_type',2)->whereTime('slid_over','>=',time())->select();
|
//分类图片
|
||||||
|
$ad_cateImg = $ad->getSliderList(3);
|
||||||
|
//分类钻展赞助
|
||||||
|
$ad_comm = $ad->getSliderList(6);
|
||||||
|
|
||||||
View::assign(['type'=>$type,'artList'=>$artList,'artHot'=>$artHot,'ad_cate'=>$ad_cate,'ad_comm'=>$ad_comm,'jspage'=>'jie']);
|
View::assign(['type'=>$type,'artList'=>$artList,'artHot'=>$artHot,'ad_cateImg'=>$ad_cateImg,'ad_comm'=>$ad_comm,'jspage'=>'jie']);
|
||||||
return View::fetch();
|
return View::fetch();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -108,12 +111,14 @@ class Article extends BaseController
|
|||||||
|
|
||||||
// 热议文章
|
// 热议文章
|
||||||
$artHot = $article->getArtHot(10);
|
$artHot = $article->getArtHot(10);
|
||||||
//文章广告
|
//广告
|
||||||
$ad_article = Db::name('slider')->where('slid_status',1)->where('delete_time',0)->where('slid_type',4)->whereTime('slid_over','>=',time())->select();
|
$ad = new Slider();
|
||||||
//通用右栏
|
//分类图片
|
||||||
$ad_comm = Db::name('slider')->where('slid_status',1)->where('delete_time',0)->where('slid_type',2)->whereTime('slid_over','>=',time())->select();
|
$ad_artImg = $ad->getSliderList(4);
|
||||||
|
//分类钻展赞助
|
||||||
|
$ad_comm = $ad->getSliderList(7);
|
||||||
|
|
||||||
View::assign(['article'=>$artDetail,'pv'=>$pv,'comments'=>$comments,'artHot'=>$artHot,'ad_art'=>$ad_article,'ad_comm'=>$ad_comm,$download,'jspage'=>'jie']);
|
View::assign(['article'=>$artDetail,'pv'=>$pv,'comments'=>$comments,'artHot'=>$artHot,'ad_art'=>$ad_artImg,'ad_comm'=>$ad_comm,$download,'jspage'=>'jie']);
|
||||||
return View::fetch();
|
return View::fetch();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -6,8 +6,8 @@ use think\App;
|
|||||||
use think\facade\View;
|
use think\facade\View;
|
||||||
use think\facade\Request;
|
use think\facade\Request;
|
||||||
use think\facade\Db;
|
use think\facade\Db;
|
||||||
use think\facade\Cache;
|
|
||||||
use app\facade\Article;
|
use app\facade\Article;
|
||||||
|
use app\common\model\Slider;
|
||||||
use app\common\lib\Msgres;
|
use app\common\lib\Msgres;
|
||||||
|
|
||||||
class Index extends BaseController
|
class Index extends BaseController
|
||||||
@ -24,44 +24,23 @@ class Index extends BaseController
|
|||||||
$types = input('type');
|
$types = input('type');
|
||||||
|
|
||||||
//幻灯
|
//幻灯
|
||||||
$slider = new \app\common\model\Slider();
|
$slider = new Slider();
|
||||||
$sliders = $slider->getSliderList();
|
$sliders = $slider->getSliderList(1);
|
||||||
|
|
||||||
//置顶文章
|
//置顶文章
|
||||||
$artTop = Article::getArtTop(5);
|
$artTop = Article::getArtTop(5);
|
||||||
//首页文章列表,显示20个
|
//首页文章列表,显示20个
|
||||||
$artList = Article::getArtList(20);
|
$artList = Article::getArtList(20);
|
||||||
//热议文章
|
//热议文章
|
||||||
$artHot = Article::getArtHot(10);
|
$artHot = Article::getArtHot(10);
|
||||||
|
//温馨通道
|
||||||
|
$fast_links = $slider->getSliderList(8);
|
||||||
//首页赞助
|
//首页赞助
|
||||||
$ad_index = Cache::get('adindex');
|
$ad_index = $slider->getSliderList(5);
|
||||||
if(!$ad_index){
|
//首页右栏图片
|
||||||
$ad_index = Db::name('slider')->where(['slid_status'=>1,'delete_time'=>0,'slid_type'=>3])->whereTime('slid_over','>=',time())->select();
|
$ad_comm = $slider->getSliderList(2);
|
||||||
Cache::set('adindex',$ad_index,3600);
|
|
||||||
}
|
|
||||||
|
|
||||||
//首页右栏
|
|
||||||
$ad_comm = Cache::get('adcomm');
|
|
||||||
if(!$ad_comm){
|
|
||||||
$ad_comm = Db::name('slider')->where(['slid_status'=>1,'delete_time'=>0,'slid_type'=>2])->whereTime('slid_over','>=',time())->select();
|
|
||||||
Cache::set('adcomm',$ad_comm,3600);
|
|
||||||
}
|
|
||||||
|
|
||||||
//友情链接
|
//友情链接
|
||||||
$friend_links = Cache::get('flinks');
|
$friend_links = $slider->getSliderList(9);
|
||||||
if(!$friend_links){
|
|
||||||
$friend_links = Db::name('slider')->where(['slid_status'=>1,'delete_time'=>0,'slid_type'=>6])->whereTime('slid_over','>=',time())->field('slid_name,slid_href')->select();
|
|
||||||
Cache::set('flinks',$friend_links,3600);
|
|
||||||
}
|
|
||||||
|
|
||||||
//温馨通道
|
|
||||||
$fast_links = Cache::get('fastlinks');
|
|
||||||
if(!$fast_links){
|
|
||||||
$fast_links = Db::name('slider')->where(['slid_status'=>1,'delete_time'=>0,'slid_type'=>7])->whereTime('slid_over','>=',time())->field('slid_name,slid_href')->select();
|
|
||||||
Cache::set('fastlinks',$fast_links,3600);
|
|
||||||
}
|
|
||||||
|
|
||||||
//友情链接申请
|
//友情链接申请
|
||||||
$adminEmail = Db::name('user')->where('id',1)->cache(true)->value('email');
|
$adminEmail = Db::name('user')->where('id',1)->cache(true)->value('email');
|
||||||
|
|
||||||
@ -98,31 +77,21 @@ class Index extends BaseController
|
|||||||
$search = new \app\index\controller\Search();
|
$search = new \app\index\controller\Search();
|
||||||
$artList = $search->getSearch($ser['keywords']);
|
$artList = $search->getSearch($ser['keywords']);
|
||||||
$counts = $artList->count();
|
$counts = $artList->count();
|
||||||
|
$slider = new Slider();
|
||||||
|
//首页右栏
|
||||||
|
$ad_comm = $slider->getSliderList(2);
|
||||||
|
// 查询热议
|
||||||
|
$artHot = Article::getArtHot(10);
|
||||||
|
|
||||||
$searchs = [
|
$searchs = [
|
||||||
'artList' => $artList,
|
'artList' => $artList,
|
||||||
'keywords' => $ser['keywords'],
|
'keywords' => $ser['keywords'],
|
||||||
'counts' => $counts
|
'counts' => $counts,
|
||||||
|
'ad_comm'=>$ad_comm,
|
||||||
|
'artHot'=>$artHot,
|
||||||
|
'jspage'=>''
|
||||||
];
|
];
|
||||||
|
|
||||||
//首页右栏
|
|
||||||
$ad_comm = Cache::get('adcomm');
|
|
||||||
if(!$ad_comm){
|
|
||||||
$ad_comm = Db::name('slider')->where(['slid_status'=>1,'delete_time'=>0,'slid_type'=>2])->whereTime('slid_over','>=',time())->select();
|
|
||||||
Cache::set('adcomm',$ad_comm,3600);
|
|
||||||
}
|
|
||||||
|
|
||||||
//温馨通道
|
|
||||||
$fast_links = Cache::get('fastlinks');
|
|
||||||
if(!$fast_links){
|
|
||||||
$fast_links = Db::name('slider')->where(['slid_status'=>1,'delete_time'=>0,'slid_type'=>7])->whereTime('slid_over','>=',time())->field('slid_name,slid_href')->select();
|
|
||||||
Cache::set('fastlinks',$fast_links,3600);
|
|
||||||
}
|
|
||||||
// 查询热议
|
|
||||||
//$article = new Article()1;
|
|
||||||
$artHot = Article::getArtHot(10);
|
|
||||||
|
|
||||||
View::assign($searchs);
|
View::assign($searchs);
|
||||||
View::assign(['fastlinks'=>$fast_links,'ad_comm'=>$ad_comm,'artHot'=>$artHot,'jspage'=>'']);
|
|
||||||
return View::fetch('search');
|
return View::fetch('search');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ return [
|
|||||||
//应用名,此项不可更改
|
//应用名,此项不可更改
|
||||||
'appname' => 'TaoLer',
|
'appname' => 'TaoLer',
|
||||||
//版本配置
|
//版本配置
|
||||||
'version' => '1.7.18',
|
'version' => '1.7.19',
|
||||||
//加盐
|
//加盐
|
||||||
'salt' => 'taoler',
|
'salt' => 'taoler',
|
||||||
//数据库备份目录
|
//数据库备份目录
|
||||||
|
@ -26,7 +26,7 @@ i{font-style: normal;}
|
|||||||
|
|
||||||
@media screen and (max-width: 992px) {
|
@media screen and (max-width: 992px) {
|
||||||
|
|
||||||
.site-menu{position: fixed; top: 50px; bottom: 0; min-height: 0; overflow-y: auto; overflow-x: hidden; z-index: 1000; left: -300px; background-color: #fff; transition: all .3s;}
|
.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-tree-mobile{display: block!important; position: fixed; z-index: 16666669; bottom: 15px; left: 15px; width: 30px; height: 30px; line-height: 30px; border-radius: 2px; text-align: center; background-color: #009688; color: #fff;}
|
.site-tree-mobile{display: block!important; position: fixed; z-index: 16666669; bottom: 15px; left: 15px; width: 30px; height: 30px; line-height: 30px; border-radius: 2px; text-align: center; background-color: #009688; color: #fff;}
|
||||||
.site-home .site-tree-mobile{display: none!important;}
|
.site-home .site-tree-mobile{display: none!important;}
|
||||||
|
@ -62,7 +62,14 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="layui-col-md4">
|
<div class="layui-col-md4">
|
||||||
<dl class="fly-panel fly-list-one">
|
<div class="fly-panel">
|
||||||
|
<div class="fly-panel" style="padding: 5px 0; text-align: center;">
|
||||||
|
{volist name="ad_cateImg" id="vo"}
|
||||||
|
<a href="{$vo.slid_href}" target="_blank"><img src="{$vo.slid_img}" style="max-width: 100%;"></a>
|
||||||
|
{/volist}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<dl class="fly-panel fly-list-one layui-hide-xs">
|
||||||
<dt class="fly-panel-title">{:lang('hot post list')}</dt>
|
<dt class="fly-panel-title">{:lang('hot post list')}</dt>
|
||||||
{volist name="artHot" id="vo"}
|
{volist name="artHot" id="vo"}
|
||||||
<dd>
|
<dd>
|
||||||
@ -77,22 +84,13 @@
|
|||||||
<a href="" class="fly-link fly-joinad ">{:lang('i want to join')}</a>
|
<a href="" class="fly-link fly-joinad ">{:lang('i want to join')}</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="fly-panel-main">
|
<div class="fly-panel-main">
|
||||||
{volist name="ad_cate" id="vo"}
|
{volist name="ad_comm" id="vo"}
|
||||||
<a href="{$vo.slid_href}" target="_blank" rel="nofollow" class="fly-zanzhu" style="background-color: {$vo.slid_color};">{$vo.slid_name}</a>
|
<a href="{$vo.slid_href}" target="_blank" rel="nofollow" class="fly-zanzhu" style="background-color: {$vo.slid_color};">{$vo.slid_name}</a>
|
||||||
{/volist}
|
{/volist}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="fly-panel">
|
|
||||||
<div class="fly-panel-title">
|
|
||||||
{:lang('ads area')}
|
|
||||||
</div>
|
|
||||||
<div class="fly-panel" style="padding: 20px 0; text-align: center;">
|
|
||||||
{volist name="ad_comm" id="vo"}
|
|
||||||
<a href="{$vo.slid_href}" target="_blank"><img src="{$vo.slid_img}" style="max-width: 100%;"></a>
|
|
||||||
{/volist}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -171,45 +171,30 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="layui-col-md4">
|
<div class="layui-col-md4">
|
||||||
<dl class="fly-panel fly-list-one">
|
<div class="fly-panel">
|
||||||
|
<div class="fly-panel-title">{:lang('sponsor')}<span style="padding: 0 3px;">-</span>
|
||||||
|
<a href="" class="fly-link fly-joinad">{:lang('i want to join')}</a>
|
||||||
|
</div>
|
||||||
|
<div class="fly-panel-main">
|
||||||
|
{volist name="ad_comm" id="vo"}
|
||||||
|
<a href="{$vo.slid_href}" target="_blank" rel="nofollow" class="fly-zanzhu" style="background-color: {$vo.slid_color};">{$vo.slid_name}</a>
|
||||||
|
{/volist}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<dl class="fly-panel fly-list-one">
|
||||||
<dt class="fly-panel-title">{:lang('hot post list')}</dt>
|
<dt class="fly-panel-title">{:lang('hot post list')}</dt>
|
||||||
{volist name="artHot" id="vo"}
|
{volist name="artHot" id="vo"}
|
||||||
<dd>
|
<dd>
|
||||||
<a href="{:url('article/detail',['id' => $vo.id])}">{$vo.title}</a>
|
<a href="{:url('article/detail',['id' => $vo.id])}">{$vo.title}</a>
|
||||||
<span><i class="iconfont icon-pinglun1"></i> {$vo.comments_count}</span>
|
<span><i class="iconfont icon-pinglun1"></i> {$vo.comments_count}</span>
|
||||||
</dd>
|
</dd>
|
||||||
{/volist}
|
{/volist}
|
||||||
|
</dl>
|
||||||
<!-- 无数据时 -->
|
<div class="fly-panel" style="padding: 5px 0; text-align: center;">
|
||||||
<!--
|
{volist name="ad_art" id="vo"}
|
||||||
<div class="fly-none">没有相关数据</div>
|
<a href="{$vo.slid_href}" target="_blank"><img src="{$vo.slid_img}" style="max-width: 100%;"></a>
|
||||||
-->
|
{/volist}
|
||||||
</dl>
|
|
||||||
|
|
||||||
<div class="fly-panel">
|
|
||||||
<div class="fly-panel-title">{:lang('sponsor')}<span style="padding: 0 3px;">-</span>
|
|
||||||
<a href="" class="fly-link fly-joinad ">{:lang('i want to join')}</a>
|
|
||||||
</div>
|
|
||||||
<div class="fly-panel-main">
|
|
||||||
{volist name="ad_art" id="vo"}
|
|
||||||
<a href="{$vo.slid_href}" target="_blank" rel="nofollow" class="fly-zanzhu" style="background-color: {$vo.slid_color};">{$vo.slid_name}</a>
|
|
||||||
{/volist}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="fly-panel">
|
|
||||||
<div class="fly-panel-title">{:lang('ads area')}</div>
|
|
||||||
|
|
||||||
<div class="fly-panel-main">
|
|
||||||
<a href="" target="_blank" class="fly-zanzhu" time-limit="2017.09.25-2099.01.01" style="background-color: #5FB878;">TaoLer 社区快速轻论坛</a>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="fly-panel" style="padding: 20px 0; text-align: center;">
|
|
||||||
{volist name="ad_comm" id="vo"}
|
|
||||||
<a href="{$vo.slid_href}" target="_blank"><img src="{$vo.slid_img}" style="max-width: 100%;"></a>
|
|
||||||
{/volist}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -147,7 +147,6 @@
|
|||||||
,form = layui.form
|
,form = layui.form
|
||||||
,upload = layui.upload
|
,upload = layui.upload
|
||||||
,plyr = layui.plyr;
|
,plyr = layui.plyr;
|
||||||
|
|
||||||
|
|
||||||
//预定义颜色项
|
//预定义颜色项
|
||||||
colorpicker.render({
|
colorpicker.render({
|
||||||
|
@ -45,15 +45,15 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="layui-col-md4">
|
<div class="layui-col-md4">
|
||||||
|
<!--签到-->
|
||||||
|
<a name="signin"> </a>
|
||||||
|
{include file="public/sign" /}
|
||||||
<!--温馨通道-->
|
<!--温馨通道-->
|
||||||
<div class="fly-panel layui-hide-xs">
|
<div class="fly-panel layui-hide-xs">
|
||||||
<h3 class="fly-panel-title">{:lang('links list')}</h3>
|
<h3 class="fly-panel-title">{:lang('links list')}</h3>
|
||||||
{include file="public/index-static" /}
|
{include file="public/index-static" /}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!--签到-->
|
|
||||||
{include file="public/sign" /}
|
|
||||||
|
|
||||||
<!--广告赞助-->
|
<!--广告赞助-->
|
||||||
<div class="fly-panel">
|
<div class="fly-panel">
|
||||||
<div class="fly-panel-title">{:lang('sponsor')}<span class="fly-mid"></span>
|
<div class="fly-panel-title">{:lang('sponsor')}<span class="fly-mid"></span>
|
||||||
@ -73,7 +73,7 @@
|
|||||||
</dl>
|
</dl>
|
||||||
</div>
|
</div>
|
||||||
<!--热帖榜-->
|
<!--热帖榜-->
|
||||||
<dl class="fly-panel fly-list-one">
|
<dl class="fly-panel fly-list-one layui-hide-xs">
|
||||||
<dt class="fly-panel-title">{:lang('hot post list')}</dt>
|
<dt class="fly-panel-title">{:lang('hot post list')}</dt>
|
||||||
{volist name="artHot" id="vo"}
|
{volist name="artHot" id="vo"}
|
||||||
<dd>
|
<dd>
|
||||||
@ -82,8 +82,8 @@
|
|||||||
</dd>
|
</dd>
|
||||||
{/volist}
|
{/volist}
|
||||||
</dl>
|
</dl>
|
||||||
<!--自定义-->
|
<!--首页图片广告-->
|
||||||
<div class="fly-panel" style="padding: 20px 0; text-align: center;">
|
<div class="fly-panel" style="padding: 5px 0; text-align: center;">
|
||||||
{volist name="ad_comm" id="vo"}
|
{volist name="ad_comm" id="vo"}
|
||||||
<a href="{$vo.slid_href}" target="_blank"><img src="{$vo.slid_img}" style="max-width: 100%;"></a>
|
<a href="{$vo.slid_href}" target="_blank"><img src="{$vo.slid_img}" style="max-width: 100%;"></a>
|
||||||
{/volist}
|
{/volist}
|
||||||
|
@ -53,11 +53,6 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="layui-col-md4">
|
<div class="layui-col-md4">
|
||||||
<!--温馨通道-->
|
|
||||||
<div class="fly-panel">
|
|
||||||
<h3 class="fly-panel-title">{:lang('links list')}</h3>
|
|
||||||
{include file="public/index-static" /}
|
|
||||||
</div>
|
|
||||||
<dl class="fly-panel fly-list-one">
|
<dl class="fly-panel fly-list-one">
|
||||||
<dt class="fly-panel-title">本周热议</dt>
|
<dt class="fly-panel-title">本周热议</dt>
|
||||||
{volist name="artHot" id="vo" empty="还没有帖子"}
|
{volist name="artHot" id="vo" empty="还没有帖子"}
|
||||||
@ -68,7 +63,7 @@
|
|||||||
{/volist}
|
{/volist}
|
||||||
</dl>
|
</dl>
|
||||||
<!--自定义-->
|
<!--自定义-->
|
||||||
<div class="fly-panel" style="padding: 20px 0; text-align: center;">
|
<div class="fly-panel" style="padding: 5px 0; text-align: center;">
|
||||||
{volist name="ad_comm" id="vo"}
|
{volist name="ad_comm" id="vo"}
|
||||||
<a href="{$vo.slid_href}" target="_blank"><img src="{$vo.slid_img}" style="max-width: 100%;"></a>
|
<a href="{$vo.slid_href}" target="_blank"><img src="{$vo.slid_img}" style="max-width: 100%;"></a>
|
||||||
{/volist}
|
{/volist}
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
<div class="fly-header layui-bg-black">
|
<div class="fly-header layui-bg-black">
|
||||||
<div class="layui-container">
|
<div class="layui-container">
|
||||||
<a class="fly-logo" href="/">
|
<a class="fly-logo layui-hide-xs" href="/"><img src="{$sysInfo.logo}" alt="layui" width="135" height="37"></a>
|
||||||
<img src="{$sysInfo.logo}" alt="layui" width="135" height="37">
|
<a class="fly-logo layui-hide-md" href="/" style="padding-left:35%;"><img src="{$sysInfo.logo}" alt="layui" width="135" height="37"></a>
|
||||||
</a>
|
|
||||||
<ul class="layui-nav fly-nav layui-hide-xs">
|
<ul class="layui-nav fly-nav layui-hide-xs">
|
||||||
{volist name="headlinks" id="vo"}
|
{volist name="headlinks" id="vo"}
|
||||||
<li class="layui-nav-item">
|
<li class="layui-nav-item">
|
||||||
@ -40,16 +39,16 @@
|
|||||||
|
|
||||||
<!-- 未登入的状态 -->
|
<!-- 未登入的状态 -->
|
||||||
<li class="layui-nav-item">
|
<li class="layui-nav-item">
|
||||||
<a class="iconfont icon-touxiang layui-hide-xs" href="{:url('login/index')}"></a>
|
<a class="iconfont icon-touxiang" href="{:url('login/index')}"></a>
|
||||||
</li>
|
</li>
|
||||||
<li class="layui-nav-item">
|
<li class="layui-nav-item layui-hide-xs">
|
||||||
<a href="{:url('login/index')}">{:lang('login')}</a>
|
<a href="{:url('login/index')}">{:lang('login')}</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="layui-nav-item">
|
<li class="layui-nav-item layui-hide-xs">
|
||||||
<a href="{:url('login/reg')}">{:lang('register')}</a>
|
<a href="{:url('login/reg')}">{:lang('register')}</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="layui-nav-item" >
|
<li class="layui-nav-item layui-hide-xs" >
|
||||||
<select name="language" style="width:50px;" lay-filter="language" lay-verify="" id="language">
|
<select name="language" style="width:50px;" lay-filter="language" lay-verify="" id="language1">
|
||||||
<option value="cn" {if cookie('think_lang')=='zh-cn'} selected{/if} >简体</option>
|
<option value="cn" {if cookie('think_lang')=='zh-cn'} selected{/if} >简体</option>
|
||||||
<option value="tw" {if cookie('think_lang')=='zh-tw'} selected{/if} >繁体</option>
|
<option value="tw" {if cookie('think_lang')=='zh-tw'} selected{/if} >繁体</option>
|
||||||
<option value="en" {if cookie('think_lang')=='en-us'} selected{/if} >English</option>
|
<option value="en" {if cookie('think_lang')=='en-us'} selected{/if} >English</option>
|
||||||
|
@ -1,10 +1,9 @@
|
|||||||
<div class="layui-row fly-panel-main" style="padding: 15px;">
|
<div class="layui-row fly-panel-main" style="padding: 15px;">
|
||||||
<div class="layui-clear fly-list-quick">
|
<div class="layui-clear fly-list-quick">
|
||||||
{volist name="fastlinks" id="vo"}
|
{volist name="fastlinks" id="vo"}
|
||||||
<div class="layui-col-xs6">
|
<div class="layui-col-xs6">
|
||||||
<div><a href="{$vo.slid_href}" target="_blank">{$vo.slid_name}</a></div>
|
<div><a href="{$vo.slid_href}" target="_blank">{$vo.slid_name}</a></div>
|
||||||
</div>
|
|
||||||
{/volist}
|
|
||||||
<a name="signin"> </a>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
{/volist}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
@ -1,6 +1,33 @@
|
|||||||
<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;">
|
||||||
|
<input type="search" value="" aria-label="Search text" placeholder="搜索" class="layui-input">
|
||||||
|
</li>
|
||||||
|
{if session('?user_id')}
|
||||||
|
<li class="layui-nav-item">
|
||||||
|
<a class="fly-nav-avatar" href="javascript:;">
|
||||||
|
<img src="{$user['user_img']}" >
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
{else /}
|
||||||
|
<li class="layui-nav-item">
|
||||||
|
<a class="iconfont icon-touxiang" href="{:url('login/index')}"></a>
|
||||||
|
<a href="{:url('login/index')}">{:lang('login')}</a>
|
||||||
|
<a href="{:url('login/reg')}">{:lang('register')}</a>
|
||||||
|
</li>
|
||||||
|
<li class="layui-nav-item" >
|
||||||
|
<select name="language" style="width:50px;" lay-filter="language" lay-verify="" id="language">
|
||||||
|
<option value="cn" {if cookie('think_lang')=='zh-cn'} selected{/if} >简体</option>
|
||||||
|
<option value="tw" {if cookie('think_lang')=='zh-tw'} selected{/if} >繁体</option>
|
||||||
|
<option value="en" {if cookie('think_lang')=='en-us'} selected{/if} >English</option>
|
||||||
|
</select>
|
||||||
|
</li>
|
||||||
|
{/if}
|
||||||
|
|
||||||
<li class="layui-menu-item-group" lay-options="{type: 'group', isAllowSpread: true}">
|
<li class="layui-menu-item-group" lay-options="{type: 'group', isAllowSpread: true}">
|
||||||
<div class="layui-menu-body-title">
|
<div class="layui-menu-body-title">
|
||||||
社区分类
|
社区分类
|
||||||
|
Loading…
x
Reference in New Issue
Block a user