[更新]修改微信图文

This commit is contained in:
Anyon 2017-04-27 12:02:03 +08:00
parent 9f375ebcb4
commit 1fb889699c
2 changed files with 6 additions and 10 deletions

View File

@ -15,7 +15,7 @@
{/foreach}
{else}
<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>
<span class="news-title"></span>
</div>
<hr/>
{/if}
@ -112,7 +112,7 @@
<script>
$(function () {
var editDdata = {$vo.articles|default=[]|json_encode};
var editDdata = {$vo.articles | default = [] | json_encode};
for (var i in editDdata) {
$('.news-item').eq(i).data('item', editDdata[i]);
@ -157,11 +157,7 @@
/*! 输入标题显示 */
$form.find('[name="title"]').on('keyup', function () {
if ($item) {
if (('' + this.value).length > 0) {
$item.find('.news-title').html(this.value).show();
} else {
$item.find('.news-title').html(this.value).hide();
}
$item.find('.news-title').html(this.value).show();
}
});
@ -216,7 +212,7 @@
/*! 添加新图文 */
$body.off('click', '.news-box .article-add').on('click', '.news-box .article-add', function () {
var $html = $('<div class="news-item transition" style="background-image:url(__PUBLIC__/static/plugs/uploader/theme/image.png)"><span class="news-title" style="display:none"></span></div><hr />');
var $html = $('<div class="news-item transition" style="background-image:url(__PUBLIC__/static/plugs/uploader/theme/image.png)"><span class="news-title"></span></div><hr />');
$html.insertBefore(this).trigger('click');
$('.news-item').size() >= 7 && $(this).hide();
});

View File

@ -91,9 +91,9 @@
</div>
<div class="aui-card-list-footer aui-font-size-12" style="color:#999;">
<div>
{if $vo.content_source_url}
<a style='color:#0099CC' target='_blank' href='__SELF__'>阅读原文</a>
<span>阅读 88</span>
<span><i class='aui-iconfont aui-icon-laud'></i> 8</span>
{/if}
</div>
</div>
</div>