修改微信模块

This commit is contained in:
Anyon 2019-12-09 18:54:08 +08:00
parent 951f9d1dbf
commit 28b8c65153
3 changed files with 100 additions and 16 deletions

View File

@ -1,6 +1,6 @@
{extend name='admin@main'} {extend name="../../admin/view/main"}
{block name="style"}{include file='wechat@news/form-style'}{/block} {block name="style"}{include file='news/form-style'}{/block}
{block name='content'} {block name='content'}
<div id="NewsEditor" class="layui-clear nowrap padding-bottom-30"> <div id="NewsEditor" class="layui-clear nowrap padding-bottom-30">

View File

@ -1,7 +1,11 @@
{extend name="../../admin/view/main"} {extend name="../../admin/view/main"}
{block name="button"} {block name="button"}
{if auth('add')}
<button data-open="{:url('add')}" class='layui-btn layui-btn-sm layui-btn-primary'>添加图文</button> <button data-open="{:url('add')}" class='layui-btn layui-btn-sm layui-btn-primary'>添加图文</button>
{/if}
{/block} {/block}
{block name='content'} {block name='content'}

View File

@ -95,18 +95,98 @@
</script> </script>
<style> <style>
body{min-width:500px} body {
#push-tags{max-height:300px;overflow:auto} min-width: 500px
.bottom-btn{bottom:0;width:100%;padding:10px;display:block;background:#F7F7F7;position:absolute} }
.news-container{width:200px;padding-right:8px}
.list-container{width:578px;padding-left:0;padding-right:8px} #push-tags {
.list-container h5 a{float:right;font-size:12px} max-height: 300px;
.list-container .list-item{padding:8px;overflow:auto;max-height:300px;border:1px solid #eee} overflow: auto
.list-container .list-item:after{content:'';clear:both;width:100%;display:block} }
.list-container .list-item label{width:25%;float:left;display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.news-container .news-box{padding:8px;border:1px solid #eee} .bottom-btn {
.news-container .news-box hr{margin:4px} bottom: 0;
.news-container .news-box .container{cursor:pointer;overflow:hidden;position:relative;border-radius:2px;border:1px solid #cecece} width: 100%;
.news-container .news-box .news-image{height:90px;background-size:100%;background-position:center center} padding: 10px;
.news-container .news-box .news-title{position:absolute;background:rgba(0,0,0,.5);color:#fff;padding:2px;margin:0;bottom:0;left:0;right:0;text-align:right;white-space:nowrap;text-overflow:ellipsis;overflow:hidden} display: block;
background: #F7F7F7;
position: absolute
}
.news-container {
width: 200px;
padding-right: 8px
}
.list-container {
width: 578px;
padding-left: 0;
padding-right: 8px
}
.list-container h5 a {
float: right;
font-size: 12px
}
.list-container .list-item {
padding: 8px;
overflow: auto;
max-height: 300px;
border: 1px solid #eee
}
.list-container .list-item:after {
content: '';
clear: both;
width: 100%;
display: block
}
.list-container .list-item label {
width: 25%;
float: left;
display: block;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis
}
.news-container .news-box {
padding: 8px;
border: 1px solid #eee
}
.news-container .news-box hr {
margin: 4px
}
.news-container .news-box .container {
cursor: pointer;
overflow: hidden;
position: relative;
border-radius: 2px;
border: 1px solid #cecece
}
.news-container .news-box .news-image {
height: 90px;
background-size: 100%;
background-position: center center
}
.news-container .news-box .news-title {
position: absolute;
background: rgba(0, 0, 0, .5);
color: #fff;
padding: 2px;
margin: 0;
bottom: 0;
left: 0;
right: 0;
text-align: right;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden
}
</style> </style>