mirror of
https://gitee.com/ulthon/ulthon_information.git
synced 2026-03-03 16:24:28 +08:00
feat: 完成三方平台发布管理
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
content="width=device-width, initial-scale=1.0"
|
||||
>
|
||||
<title>{$post.title}</title>
|
||||
<script src="/static/lib/htmx-v2.0.4/htmx.min.js"></script>
|
||||
<script src="/static/lib/jquery/jquery-3.4.1.min.js"></script>
|
||||
<script src="/static/lib/jquery/jquery.cookie.js"></script>
|
||||
<script src="/static/lib/layui/layui.js"></script>
|
||||
@@ -40,12 +41,11 @@
|
||||
position: fixed;
|
||||
right: 0;
|
||||
top: 0;
|
||||
margin: 15px;
|
||||
padding: 15px;
|
||||
border-radius: 5;
|
||||
border: 1px solid #e8e8e8;
|
||||
background: #fff;
|
||||
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
.options-box>a,
|
||||
@@ -65,6 +65,12 @@
|
||||
color: #333;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.post-platform-item a,
|
||||
.post-platform-item a:hover,
|
||||
.post-platform-item a:visited {
|
||||
color: #fff;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
@@ -154,16 +160,41 @@
|
||||
class="post-platform-label"
|
||||
style="text-align: left;"
|
||||
>
|
||||
<span>
|
||||
{$vo.title}
|
||||
</span>
|
||||
|
||||
<a
|
||||
href="{$vo.value}"
|
||||
target="_blank"
|
||||
>
|
||||
{$vo.title}
|
||||
</a>
|
||||
|
||||
<a
|
||||
style="margin-left: 6px;"
|
||||
href="{$vo.home_url}"
|
||||
title="{$vo.account}"
|
||||
target=" _blank"
|
||||
>
|
||||
主页
|
||||
</a>
|
||||
|
||||
{empty name='$post.post_platform_data_array[$vo.id]'}
|
||||
<span style="margin-left: 6px;">文章:</span>
|
||||
{else /}
|
||||
<a
|
||||
href="{$post.post_platform_data_array[$vo.id]}"
|
||||
target=" _blank"
|
||||
style="margin-left: 6px;"
|
||||
>文章:</a>
|
||||
{/empty}
|
||||
</div>
|
||||
<div class="post-platform-label">
|
||||
<input
|
||||
type="text"
|
||||
name="post-platform[{$vo.id}]"
|
||||
name="value"
|
||||
value="{$post.post_platform_data_array[$vo.id]|default=''}"
|
||||
placeholder="请输入文章链接"
|
||||
hx-post="{:url('setPostPlatformData')}"
|
||||
hx-vals="js:{post_id:{$post.id},type:{$vo.id}}"
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
@@ -302,6 +333,12 @@
|
||||
});
|
||||
};
|
||||
$('textarea[autoHeight]').autoHeight();
|
||||
});
|
||||
|
||||
layui.use(['element', 'layer', 'util'], function () { });
|
||||
$('body').on('layerMsg', function (evt) {
|
||||
|
||||
layui.layer.msg(evt.originalEvent.detail.title);
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user