feat: 完成三方平台发布管理

This commit is contained in:
augushong
2025-05-05 10:29:49 +08:00
parent d27772ef03
commit 70b17cbd10
8 changed files with 188 additions and 96 deletions

View File

@@ -3,6 +3,7 @@
<link rel="stylesheet" href="/static/lib/layui/css/layui.css">
<link rel="stylesheet" href="/static/css/{$Request.cookie.skin_name|default='skin-1'}.css">
<link rel="stylesheet" href="/static/css/common.css">
<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>

View File

@@ -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>