mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
[更新]修改模板文件
This commit is contained in:
parent
772e1106ce
commit
4cf201b6db
@ -2,9 +2,7 @@
|
||||
|
||||
{block name="button"}
|
||||
<div class="nowrap pull-right" style="margin-top:10px">
|
||||
<button data-load="{:url('sync')}" class='layui-btn layui-btn-small'>
|
||||
<i class='fa fa-referer'></i> 同步粉丝
|
||||
</button>
|
||||
<button data-load="{:url('sync')}" class='layui-btn layui-btn-small'><i class='fa fa-referer'></i> 同步粉丝</button>
|
||||
</div>
|
||||
{/block}
|
||||
|
||||
@ -16,8 +14,7 @@
|
||||
<div class="row">
|
||||
<div class="col-xs-3">
|
||||
<div class="form-group">
|
||||
<input type="text" name="nickname" value="{$Think.get.nickname|default=''}" placeholder="昵称"
|
||||
class="input-sm form-control">
|
||||
<input type="text" name="nickname" value="{$Think.get.nickname|default=''}" placeholder="昵称" class="input-sm form-control">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -51,8 +48,7 @@
|
||||
<input class="list-check-box" value='{$vo.id}' type='checkbox'/>
|
||||
</td>
|
||||
<td class='text-left'>
|
||||
<img style="width:25px;height:25px;border-radius:50%;margin-right:10px" data-tips-image="{$vo.headimgurl}"
|
||||
onerror="this.src='__PUBLIC__/static/theme/default/img/image.png'" alt="" src="{$vo.headimgurl}"/>
|
||||
<img style="width:25px;height:25px;border-radius:50%;margin-right:10px" data-tips-image src="{$vo.headimgurl}"/>
|
||||
{$vo.nickname|default="<span style='color:#999'>未设置微信昵称</span>"}
|
||||
</td>
|
||||
<td class='text-center'>{$vo.sex==1?'男':($vo.sex==2?'女':'未知')}</td>
|
||||
|
@ -28,8 +28,7 @@
|
||||
<div class="form-group">
|
||||
<label class="col-md-2 control-label layui-form-label ">关 键 字</label>
|
||||
<div class="col-md-9">
|
||||
<input required="required" title='请输入关键字' maxlength='20' name='keys' class="layui-input"
|
||||
value='{$vo.keys|default=""}'>
|
||||
<input required="required" title='请输入关键字' maxlength='20' name='keys' class="layui-input" value='{$vo.keys|default=""}'>
|
||||
</div>
|
||||
</div>
|
||||
{else}
|
||||
@ -61,6 +60,7 @@
|
||||
<label class="col-md-2 control-label layui-form-label label-required">消息类型</label>
|
||||
<div class="col-md-9">
|
||||
<select name='type' class='layui-input'>
|
||||
|
||||
{if !isset($vo.type) or $vo.type eq 'text'}
|
||||
<option value='text' selected>文字</option>
|
||||
{else}
|
||||
@ -96,6 +96,7 @@
|
||||
{else}
|
||||
<option value='video'>视频</option>
|
||||
{/if}
|
||||
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -82,18 +82,15 @@
|
||||
|
||||
{if $vo.status eq 1 and auth("$classuri/forbid")}
|
||||
<span class="text-explode">|</span>
|
||||
<a data-update="{$vo.id}" data-field='status' data-value='0' data-action='{:url("$classuri/forbid")}'
|
||||
href="javascript:void(0)">禁用</a>
|
||||
<a data-update="{$vo.id}" data-field='status' data-value='0' data-action='{:url("$classuri/forbid")}' href="javascript:void(0)">禁用</a>
|
||||
{elseif auth("$classuri/resume")}
|
||||
<span class="text-explode">|</span>
|
||||
<a data-update="{$vo.id}" data-field='status' data-value='1' data-action='{:url("$classuri/resume")}'
|
||||
href="javascript:void(0)">启用</a>
|
||||
<a data-update="{$vo.id}" data-field='status' data-value='1' data-action='{:url("$classuri/resume")}' href="javascript:void(0)">启用</a>
|
||||
{/if}
|
||||
|
||||
{if auth("$classuri/del")}
|
||||
<span class="text-explode">|</span>
|
||||
<a data-update="{$vo.id}" data-field='delete' data-action='{:url("del")}'
|
||||
href="javascript:void(0)">删除</a>
|
||||
<a data-update="{$vo.id}" data-field='delete' data-action='{:url("del")}' href="javascript:void(0)">删除</a>
|
||||
{/if}
|
||||
|
||||
</td>
|
||||
|
@ -1,18 +1,18 @@
|
||||
{extend name='extra@admin/content' /}
|
||||
|
||||
{block name="style"}
|
||||
<style>
|
||||
<style>
|
||||
.mobile-preview { -moz-user-select: none; -webkit-user-select: none; -ms-user-select: none; -khtml-user-select: none; user-select: none; }
|
||||
.menu-editor { left: 317px; display: block; max-width: 500px; width: 500px; height: 580px; border-radius: 0; border-color: #e7e7eb; box-shadow: none }
|
||||
.menu-editor .arrow { top: auto !important; bottom: 15px }
|
||||
.menu-editor .popover-title { margin-top: 0 }
|
||||
.menu-delete { font-weight: 400; font-size: 12px; }
|
||||
.menu-submit { margin-right: 10px }
|
||||
</style>
|
||||
</style>
|
||||
{/block}
|
||||
|
||||
{block name='content'}
|
||||
<div class='mobile-preview pull-left'>
|
||||
<div class='mobile-preview pull-left'>
|
||||
<div class='mobile-header'>公众号</div>
|
||||
<div class='mobile-body'></div>
|
||||
<ul class='mobile-footer'>
|
||||
@ -39,8 +39,8 @@
|
||||
<a><i class="icon-add"></i></a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="pull-left" style="position:absolute">
|
||||
</div>
|
||||
<div class="pull-left" style="position:absolute">
|
||||
<div class="popover fade right up in menu-editor">
|
||||
<div class="arrow"></div>
|
||||
<h3 class="popover-title">
|
||||
@ -49,12 +49,10 @@
|
||||
<a class="pull-right menu-delete">删除</a>
|
||||
{/if}
|
||||
</h3>
|
||||
<div class="popover-content menu-content">
|
||||
|
||||
<div class="popover-content menu-content"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="hide menu-editor-parent-tpl">
|
||||
</div>
|
||||
<div class="hide menu-editor-parent-tpl">
|
||||
<form class="form-horizontal">
|
||||
<p>已添加子菜单,仅可设置菜单名称。</p>
|
||||
<div class="form-group" style="margin-top:50px">
|
||||
@ -65,8 +63,8 @@
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="hide menu-editor-content-tpl">
|
||||
</div>
|
||||
<div class="hide menu-editor-content-tpl">
|
||||
<form class="form-horizontal">
|
||||
<div class="form-group" style="margin-top:50px">
|
||||
<label class="col-xs-3 control-label">菜单名称</label>
|
||||
@ -101,20 +99,20 @@
|
||||
<div class="col-xs-10 col-xs-offset-1 editor-content-input"></div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div style="clear:both"></div>
|
||||
<div style="width:830px;padding-top:40px;text-align:center">
|
||||
</div>
|
||||
<div style="clear:both"></div>
|
||||
<div style="width:830px;padding-top:40px;text-align:center">
|
||||
{if auth("$classuri/edit")}
|
||||
<button class="layui-btn menu-submit">保存发布</button>
|
||||
{/if}
|
||||
{if auth("$classuri/cancel")}
|
||||
<button data-load='{:url("$classuri/cancel")}' class="layui-btn layui-btn-danger">取消发布</button>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
{/block}
|
||||
|
||||
{block name="script"}
|
||||
<script>
|
||||
<script>
|
||||
$(function () {
|
||||
/**
|
||||
* 菜单事件构造方法
|
||||
@ -310,5 +308,5 @@
|
||||
*/
|
||||
new menu();
|
||||
});
|
||||
</script>
|
||||
</script>
|
||||
{/block}
|
@ -8,15 +8,13 @@
|
||||
<div class="panel-body news-box">
|
||||
{if empty($vo['articles']) eq false}
|
||||
{foreach $vo.articles as $key=>$value}
|
||||
<div class="news-item transition" data-id="{$value.id}"
|
||||
style="background-image:url('{$value.local_url}?imageView2/1/w/338/h/190/interlace/1')">
|
||||
<div class="news-item transition" data-id="{$value.id}" style="background-image:url('{$value.local_url}?imageView2/1/w/338/h/190/interlace/1')">
|
||||
<span class="news-title">{$value.title}</span>
|
||||
</div>
|
||||
<hr/>
|
||||
{/foreach}
|
||||
{else}
|
||||
<div class="news-item transition active news-image"
|
||||
style="background-image:url('__PUBLIC__/static/plugs/uploader/theme/image.png')">
|
||||
<div class="news-item transition active news-image" style="background-image:url('__PUBLIC__/static/plugs/uploader/theme/image.png')">
|
||||
<span class="news-title" style='display:none'>标题</span>
|
||||
</div>
|
||||
<hr/>
|
||||
@ -36,8 +34,7 @@
|
||||
<div class="col-md-12">
|
||||
<div class="input-group">
|
||||
<span class="input-group-addon">标题</span>
|
||||
<input maxlength="64" required="required" title="标题不能为空哦" placeholder="请在这里输入标题"
|
||||
name='title' class="layui-input">
|
||||
<input maxlength="64" required="required" title="标题不能为空哦" placeholder="请在这里输入标题" name='title' class="layui-input">
|
||||
<input type="hidden" name="id">
|
||||
</div>
|
||||
</div>
|
||||
@ -47,8 +44,7 @@
|
||||
<div class="col-md-12">
|
||||
<div class="input-group">
|
||||
<span class="input-group-addon">作者</span>
|
||||
<input maxlength="8" required="required" title="作者不能为空哦" placeholder="请输入作者"
|
||||
name='author' class="layui-input">
|
||||
<input maxlength="8" required="required" title="作者不能为空哦" placeholder="请输入作者" name='author' class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -260,82 +256,17 @@
|
||||
|
||||
{block name="style"}
|
||||
<style>
|
||||
.news-left {
|
||||
left: 20px;
|
||||
width: 300px;
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
.news-right {
|
||||
position: absolute;
|
||||
left: 335px;
|
||||
right: 20px;
|
||||
}
|
||||
|
||||
.news-left .news-item {
|
||||
position: relative;
|
||||
width: 280px;
|
||||
height: 150px;
|
||||
max-width: 270px;
|
||||
overflow: hidden;
|
||||
border: 1px solid #ccc;
|
||||
background-size: cover;
|
||||
background-position: center center;
|
||||
}
|
||||
|
||||
.news-left .news-item.active {
|
||||
border: 1px solid #44b549 !important;
|
||||
}
|
||||
|
||||
.news-left .article-add {
|
||||
font-size: 22px;
|
||||
text-align: center;
|
||||
display: block;
|
||||
color: #999;
|
||||
}
|
||||
|
||||
.news-left .article-add:hover {
|
||||
color: #666;
|
||||
}
|
||||
|
||||
.news-left .news-title {
|
||||
bottom: 0;
|
||||
width: 272px;
|
||||
color: #fff;
|
||||
display: block;
|
||||
padding: 0 5px;
|
||||
overflow: hidden;
|
||||
position: absolute;
|
||||
margin-left: -1px;
|
||||
text-overflow: ellipsis;
|
||||
max-height:6em;
|
||||
background: rgba(0, 0, 0, 0.7);
|
||||
}
|
||||
|
||||
.news-right .layui-input {
|
||||
border-radius: 0;
|
||||
border: 1px solid #e5e6e7;
|
||||
}
|
||||
|
||||
.news-right .layui-input:hover, .news-right .layui-input:focus {
|
||||
border-color: #e5e6e7 !important;
|
||||
}
|
||||
|
||||
.news-right .input-group-addon {
|
||||
background: #fff;
|
||||
border-radius: 0;
|
||||
border-color: #e5e6e7;
|
||||
}
|
||||
|
||||
.news-right .upload-image-box {
|
||||
width: 150px;
|
||||
height: 120px;
|
||||
background-size: cover;
|
||||
background-position: center center;
|
||||
}
|
||||
|
||||
.panel {
|
||||
border-radius: 0
|
||||
}
|
||||
.panel{border-radius:0}
|
||||
.news-left {left:20px;width:300px;position:absolute;}
|
||||
.news-right {position:absolute;left:335px;right:20px;}
|
||||
.news-left .news-item {position:relative;width:280px;height:150px;max-width:270px;overflow:hidden;border:1px solid #ccc;background-size:cover;background-position:center center;}
|
||||
.news-left .news-item.active {border:1px solid #44b549 !important;}
|
||||
.news-left .article-add {font-size:22px;text-align:center;display:block;color:#999;}
|
||||
.news-left .article-add:hover{color:#666;}
|
||||
.news-left .news-title{bottom:0;width:272px;color:#fff;display:block;padding:0 5px;overflow:hidden;position:absolute;margin-left:-1px;text-overflow:ellipsis;max-height:6em;background:rgba(0,0,0,0.7);}
|
||||
.news-right .layui-input{border-radius:0;border:1px solid #e5e6e7;}
|
||||
.news-right .layui-input:hover, .news-right .layui-input:focus{border-color:#e5e6e7!important;}
|
||||
.news-right .input-group-addon{background:#fff;border-radius:0;border-color:#e5e6e7;}
|
||||
.news-right .upload-image-box{width:150px;height:120px;background-size:cover;background-position:center center;}
|
||||
</style>
|
||||
{/block}
|
@ -73,15 +73,15 @@
|
||||
<style>
|
||||
|
||||
#news_box {position:relative;}
|
||||
#news_box .news_item {position:relative;left:0;top:0;padding:5px;border:1px solid #ccc;box-sizing:content-box;margin:10px;width: 300px}
|
||||
#news_box .news_item {position:relative;left:0;top:0;padding:5px;border:1px solid #ccc;box-sizing:content-box;margin:10px;width:300px}
|
||||
#news_box .news_item .news_articel_item{background-position:center center;background-size:100%;position:relative;height:150px;width:100%;overflow:hidden;}
|
||||
#news_box .news_item .news_articel_item p {padding:5px;max-height:5em;font-size:12px;color:#fff;overflow:hidden;text-overflow: ellipsis;background: rgba(0, 0, 0, 0.7);position:absolute;width: 100%;bottom:0}
|
||||
#news_box .news_item .news_articel_item p {padding:5px;max-height:5em;font-size:12px;color:#fff;overflow:hidden;text-overflow:ellipsis;background:rgba(0,0,0,0.7);position:absolute;width:100%;bottom:0}
|
||||
#news_box .news_item .news_articel_item.other{height:50px;padding:5px 0;}
|
||||
#news_box .news_item .news_articel_item .left-image{width:50px;height:50px;position:relative;float:left;background-position:center center;background-size:100%;overflow:hidden;}
|
||||
#news_box .news_item .news_articel_item .right-text{float:left;width:250px;padding-right:10px;overflow:hidden;text-overflow:ellipsis;}
|
||||
#news_box .news_item .hr-line-dashed:last-child{display:none}
|
||||
#news_box .hr-line-dashed{margin:6px 0 1px 0}
|
||||
#news_box .news_tools{top:0;z-index:80;color:#fff;width:312px;margin-left:-6px;position:absolute;background: rgba(0, 0, 0, 0.7);text-align:right;padding:0 5px;line-height: 38px;}
|
||||
#news_box .news_tools{top:0;z-index:80;color:#fff;width:312px;margin-left:-6px;position:absolute;background:rgba(0,0,0,0.7);text-align:right;padding:0 5px;line-height:38px;}
|
||||
#news_box .news_tools a{color:#fff;margin-left:10px}
|
||||
|
||||
</style>
|
||||
|
@ -5,7 +5,7 @@
|
||||
<title>Wechat Preview</title>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<meta name="viewport" content="initial-scale=1, maximum-scale=1">
|
||||
<meta name="viewport" content="initial-scale=1,maximum-scale=1">
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
||||
<link rel="stylesheet" href="__PUBLIC__/static/plugs/aui/aui.css">
|
||||
</head>
|
||||
@ -16,7 +16,7 @@
|
||||
.aui-chat .aui-chat-media img {border-radius:0}
|
||||
.aui-chat .aui-chat-inner {max-width:80%!important;}
|
||||
.aui-chat .bg-white {background: #f5f5f5!important;border:1px solid #ccc;}
|
||||
.aui-chat .time {color: #f5f5f5;background:rgba(0, 0, 0, .3);padding:.1rem .3rem;border-radius:.2rem;font-size:.5rem;}
|
||||
.aui-chat .time {color: #f5f5f5;background:rgba(0,0,0,.3);padding:.1rem .3rem;border-radius:.2rem;font-size:.5rem;}
|
||||
.aui-chat .aui-chat-content .aui-chat-arrow.two {top:.7rem!important;background:#f5f5f5!important;left:-0.25rem!important;}
|
||||
.aui-chat .aui-chat-content .aui-chat-arrow.one {top:.7rem!important;background:#f5f5f5!important;border:1px solid #ccc!important;left:-0.28rem!important;}
|
||||
.aui-card-list-content-padded img {max-width: 100% !important;}
|
||||
|
Loading…
x
Reference in New Issue
Block a user