mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
修改模板,添加选择器权限
This commit is contained in:
parent
eea0763579
commit
910b165ed5
@ -34,7 +34,8 @@ class NewsItem extends Controller
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 文章内容管理
|
* 文章内容选择器
|
||||||
|
* @login true
|
||||||
* @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
|
||||||
@ -42,8 +43,8 @@ class NewsItem extends Controller
|
|||||||
public function select()
|
public function select()
|
||||||
{
|
{
|
||||||
$query = $this->_query($this->table);
|
$query = $this->_query($this->table);
|
||||||
$query->equal('status')->like('title')->dateBetween('create_at');
|
$query->equal('status')->like('name')->dateBetween('create_at');
|
||||||
$query->where(['deleted' => '0'])->order('sort desc,id desc')->page();
|
$query->where(['deleted' => 0])->order('sort desc,id desc')->page();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -57,6 +57,7 @@ class ShopGoods extends Controller
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 商品选择器
|
* 商品选择器
|
||||||
|
* @login true
|
||||||
* @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
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
<tbody>
|
<tbody>
|
||||||
{foreach $list as $key => $vo}
|
{foreach $list as $key => $vo}
|
||||||
<tr>
|
<tr>
|
||||||
<td class="nowrap">{$vo.title|default=''}</td>
|
<td class="nowrap">{$vo.name|default=''}</td>
|
||||||
<td>{if $vo.status eq 0}<span class="color-red">已禁用</span>{elseif $vo.status eq 1}<span class="color-green">使用中</span>{/if}</td>
|
<td>{if $vo.status eq 0}<span class="color-red">已禁用</span>{elseif $vo.status eq 1}<span class="color-green">使用中</span>{/if}</td>
|
||||||
<td>{$vo.create_at|format_datetime}</td>
|
<td>{$vo.create_at|format_datetime}</td>
|
||||||
<td class='text-right'><a class="layui-btn layui-btn-sm layui-btn-normal" data-item="{$vo.id}">选择文章</a></td>
|
<td class='text-right'><a class="layui-btn layui-btn-sm layui-btn-normal" data-item="{$vo.id}">选择文章</a></td>
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
<div class="layui-form-item layui-inline">
|
<div class="layui-form-item layui-inline">
|
||||||
<label class="layui-form-label">文章标题</label>
|
<label class="layui-form-label">文章标题</label>
|
||||||
<label class="layui-input-inline">
|
<label class="layui-input-inline">
|
||||||
<input name="title" value="{:input('title','')}" placeholder="请输入文章标题" class="layui-input">
|
<input name="name" value="{:input('name','')}" placeholder="请输入文章标题" class="layui-input">
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="layui-form-item layui-inline">
|
<div class="layui-form-item layui-inline">
|
||||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -985,16 +985,15 @@
|
|||||||
color: #333;
|
color: #333;
|
||||||
width: 30px;
|
width: 30px;
|
||||||
height: 30px;
|
height: 30px;
|
||||||
font-size: 12px;
|
border: 1px solid #DCDCDC;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
line-height: 30px;
|
font-size: 12px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
line-height: 30px;
|
||||||
margin-right: 3px;
|
margin-right: 3px;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
border: 1px solid #DCDCDC;
|
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
text-indent: 0;
|
|
||||||
box-shadow: 0 2px 4px 0 rgba(0, 0, 0, .2) inset;
|
box-shadow: 0 2px 4px 0 rgba(0, 0, 0, .2) inset;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1016,8 +1015,8 @@
|
|||||||
width: 317px;
|
width: 317px;
|
||||||
height: 580px;
|
height: 580px;
|
||||||
position: relative;
|
position: relative;
|
||||||
border-radius: 5px;
|
|
||||||
background: url(../img/wechat/mobile_head.png) no-repeat 0 0;
|
background: url(../img/wechat/mobile_head.png) no-repeat 0 0;
|
||||||
|
border-radius: 5px;
|
||||||
|
|
||||||
.mobile-header {
|
.mobile-header {
|
||||||
color: #fff;
|
color: #fff;
|
||||||
@ -1126,23 +1125,25 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.icon-add {
|
.icon {
|
||||||
width: 14px;
|
&-add, &-sub {
|
||||||
height: 14px;
|
display: inline-block;
|
||||||
border-bottom: none !important;
|
vertical-align: middle
|
||||||
background: url(../img/wechat/index.png) 0 0 no-repeat
|
}
|
||||||
}
|
|
||||||
|
|
||||||
.icon-add, .icon-sub {
|
&-add {
|
||||||
display: inline-block;
|
width: 14px;
|
||||||
vertical-align: middle
|
height: 14px;
|
||||||
}
|
border-bottom: none !important;
|
||||||
|
background: url(../img/wechat/index.png) 0 0 no-repeat
|
||||||
|
}
|
||||||
|
|
||||||
.icon-sub {
|
&-sub {
|
||||||
width: 7px;
|
width: 7px;
|
||||||
height: 7px;
|
height: 7px;
|
||||||
margin-right: 2px;
|
margin-right: 2px;
|
||||||
background: url(../img/wechat/index.png) 0 -3pc no-repeat
|
background: url(../img/wechat/index.png) 0 -3pc no-repeat
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.sub-menu {
|
.sub-menu {
|
||||||
@ -1154,15 +1155,13 @@
|
|||||||
border: 1px solid #d0d0d0;
|
border: 1px solid #d0d0d0;
|
||||||
background-color: #fafafa;
|
background-color: #fafafa;
|
||||||
|
|
||||||
ul, ul li {
|
ul li {
|
||||||
float: none;
|
float: none;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
z-index: 11;
|
z-index: 11;
|
||||||
display: block;
|
display: block;
|
||||||
}
|
|
||||||
|
|
||||||
ul li {
|
|
||||||
a {
|
a {
|
||||||
padding: 0 5px;
|
padding: 0 5px;
|
||||||
border: 1px solid hsla(0, 0%, 100%, 0);
|
border: 1px solid hsla(0, 0%, 100%, 0);
|
||||||
@ -1182,7 +1181,7 @@
|
|||||||
.arrow {
|
.arrow {
|
||||||
left: 50%;
|
left: 50%;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
margin-left: -6px
|
margin-left: -6px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.arrow_in, .arrow_out {
|
.arrow_in, .arrow_out {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user