mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
[更新]修改微信图文
This commit is contained in:
parent
9f375ebcb4
commit
1fb889699c
@ -15,7 +15,7 @@
|
|||||||
{/foreach}
|
{/foreach}
|
||||||
{else}
|
{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>
|
<span class="news-title"></span>
|
||||||
</div>
|
</div>
|
||||||
<hr/>
|
<hr/>
|
||||||
{/if}
|
{/if}
|
||||||
@ -112,7 +112,7 @@
|
|||||||
<script>
|
<script>
|
||||||
$(function () {
|
$(function () {
|
||||||
|
|
||||||
var editDdata = {$vo.articles|default=[]|json_encode};
|
var editDdata = {$vo.articles | default = [] | json_encode};
|
||||||
|
|
||||||
for (var i in editDdata) {
|
for (var i in editDdata) {
|
||||||
$('.news-item').eq(i).data('item', editDdata[i]);
|
$('.news-item').eq(i).data('item', editDdata[i]);
|
||||||
@ -157,11 +157,7 @@
|
|||||||
/*! 输入标题显示 */
|
/*! 输入标题显示 */
|
||||||
$form.find('[name="title"]').on('keyup', function () {
|
$form.find('[name="title"]').on('keyup', function () {
|
||||||
if ($item) {
|
if ($item) {
|
||||||
if (('' + this.value).length > 0) {
|
|
||||||
$item.find('.news-title').html(this.value).show();
|
$item.find('.news-title').html(this.value).show();
|
||||||
} else {
|
|
||||||
$item.find('.news-title').html(this.value).hide();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -216,7 +212,7 @@
|
|||||||
|
|
||||||
/*! 添加新图文 */
|
/*! 添加新图文 */
|
||||||
$body.off('click', '.news-box .article-add').on('click', '.news-box .article-add', function () {
|
$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');
|
$html.insertBefore(this).trigger('click');
|
||||||
$('.news-item').size() >= 7 && $(this).hide();
|
$('.news-item').size() >= 7 && $(this).hide();
|
||||||
});
|
});
|
||||||
|
@ -91,9 +91,9 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="aui-card-list-footer aui-font-size-12" style="color:#999;">
|
<div class="aui-card-list-footer aui-font-size-12" style="color:#999;">
|
||||||
<div>
|
<div>
|
||||||
|
{if $vo.content_source_url}
|
||||||
<a style='color:#0099CC' target='_blank' href='__SELF__'>阅读原文</a>
|
<a style='color:#0099CC' target='_blank' href='__SELF__'>阅读原文</a>
|
||||||
<span>阅读 88</span>
|
{/if}
|
||||||
<span><i class='aui-iconfont aui-icon-laud'></i> 8</span>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user