@using Dpz.Core.EnumLibrary
@model string
<form method="post" asp-action="Comment" data-talk-comment>
<input type="hidden" name="id" value="@Model">
<input type="hidden" id="loginStatus" value="no-login">
<div class="layui-form-item">
<label class="layui-form-label">昵称</label>
<div class="layui-input-inline">
@if (Context.Request.Cookies.ContainsKey("nickName"))
{
<input type="text" name="nickName" required readonly value="@Context.Request.Cookies["nickName"]" lay-verify="required" placeholder="请输入昵称" autocomplete="off" class="layui-input">
}
else
{
<input type="text" name="nickName" required lay-verify="required" placeholder="请输入昵称" autocomplete="off" class="layui-input">
}
</div>
</div>
<div class="layui-form-item layui-form-text">
<label class="layui-form-label">评论</label>
<div class="layui-input-block">
<textarea style="resize: none" required lay-verify="required" name="content" placeholder="支持markdown语法" class="layui-textarea"></textarea>
</div>
</div>
<div class="layui-form-item">
<div class="layui-input-block">
<button class="layui-btn" type="button" data-scene="@((int)CaptchaScene.TalkComment)" data-btn-comment="@Model">回复</button>
</div>
</div>
</form>