[更新]修改微信手机预览

This commit is contained in:
Anyon 2017-05-12 17:57:22 +08:00
parent 86a48de9e2
commit d764b093dd
2 changed files with 4 additions and 4 deletions

View File

@ -12,6 +12,7 @@
{foreach $list as $vo}
<div class="news_item">
<div class='news_tools hide'>
<a data-phone-view="{:url('@wechat/review')}?type=news&content={$vo.id}" href='javascript:void(0)'>预览</a>
<a data-modal="{:url('push')}?id={$vo.id}" href='javascript:void(0)'>推送</a>
<a data-open='{:url("edit")}?id={$vo.id}' href='javascript:void(0)'>编辑</a>
<a data-news-del="{$vo.id}" href='javascript:void(0)'>删除</a>

View File

@ -129,14 +129,14 @@
{foreach $articles as $key=>$vo}
{if count($articles) gt 1}
{if $key < 1}
<div data-href="{:url('wechat/review/index')}?content={$vo.id}&type=article" class="aui-card-list" style="margin:0;padding:.5rem .5rem .3rem .5rem;display:block;background:none">
<div data-href="{:url('wechat/review/index')}?content={$vo.id}&type=article" class="aui-card-list" style="cursor:pointer;margin:0;padding:.5rem .5rem .3rem .5rem;display:block;background:none">
<div class="aui-card-list-content" style='width:100%;height:10rem;background-repeat:no-repeat;background-image:url("{$vo.local_url}");background-position:center;background-size:cover'></div>
<div class="aui-card-list-header" style='left:.5rem;right:.5rem;position:absolute;bottom:0.2rem;display:block;max-height:6em;overflow:hidden;text-overflow:ellipsis;background:rgba(0,0,0,.8);color:#fff'>
{$vo.title|default=''}
</div>
</div>
{else}
<table data-href="{:url('wechat/review/index')}?content={$vo.id}&type=article" class="aui-border-t" style='width:100%;padding:0;margin:0;margin:0;padding:.3rem .5rem .5rem .5rem;'>
<table data-href="{:url('wechat/review/index')}?content={$vo.id}&type=article" class="aui-border-t" style='cursor:pointer;width:100%;padding:0;margin:0;margin:0;padding:.3rem .5rem .5rem .5rem;'>
<tr style='width:100%;padding:0;margin:0;'>
<td style="text-overflow:ellipsis;overflow:hidden;display:inline-block;">{$vo.title}</td>
<td style='width:3rem;height:3rem;background-repeat:no-repeat;background-image:url("{$vo.local_url}");background-position:center;background-size:cover'></td>
@ -144,8 +144,7 @@
</table>
{/if}
{else}
<div class="aui-card-list"
style="margin:0;padding:.5rem .5rem .3rem .5rem;display:block;background:none">
<div class="aui-card-list" style="margin:0;padding:.5rem .5rem .3rem .5rem;display:block;background:none">
<div class="aui-card-list-header" style='padding:0;margin:0;min-height:1.2rem;display:block;overflow:hidden;text-overflow:ellipsis;'>
{$vo.title|default=''}
</div>