更新伪静态文章栏目规则,生成伪静态页面分页代码

This commit is contained in:
2020-05-26 15:15:32 +08:00
parent 4f48e1dbaa
commit 92fb899d89
20 changed files with 287 additions and 122 deletions
@@ -25,7 +25,7 @@
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label text-danger">文章标题:</label>
<label class="col-sm-3 control-label">文章标题:</label>
<div class="col-sm-8">
<input id="Title" name="Title" maxlength="200" type="text" class="form-control" required aria-required="true" placeholder="填写文章标题">
</div>
@@ -33,7 +33,7 @@
<div class="form-group">
<label class="col-sm-3 control-label">静态化文件名:</label>
<div class="col-sm-8">
<input id="FileName" name="FileName" maxlength="200" type="text" class="form-control" required aria-required="true" placeholder="填写静态化文件名,大小写字母、数字和-,如:about.html,不能是index.html" value="">
<input id="FileName" name="FileName" maxlength="200" type="text" class="form-control" aria-required="true" placeholder="填写静态化文件名,大小写字母、数字和-,如:about.html,不能是index.html" value="">
</div>
</div>
<div class="form-group">
@@ -34,7 +34,7 @@
<div class="form-group">
<label class="col-sm-3 control-label">栏目路径:</label>
<div class="col-sm-8">
<input id="FilePath" name="FilePath" maxlength="100" type="text" class="form-control" required aria-required="true" placeholder="填写栏目路径,SEO优化使用,最多支持4级目录,可以输入字母、数字和-">
<input id="FilePath" name="FilePath" maxlength="100" type="text" class="form-control" aria-required="true" placeholder="填写栏目路径,SEO优化使用,最多支持4级目录,可以输入字母、数字和-">
</div>
</div>
<div class="form-group">
@@ -163,11 +163,12 @@
function aoutoTransform() {
var title = $("#KindName").val();
var filePath = $("#FilePath").val();
var pid = $("#PId").val();
if (!filePath) {
$.ajax({
type: "POST",
url: "/AdminCP/Server/Hanzi2Pinyin",
data: { name: title},
url: "/AdminCP/Server/Hanzi2Pinyin",
data: { name: title, pid: pid,t:"articlecategory" },
dataType: "JSON",
success: function (data) {
if (data.status == "success") {
@@ -32,7 +32,7 @@
<div class="form-group">
<label class="col-sm-3 control-label">静态化文件名:</label>
<div class="col-sm-8">
<input id="FileName" name="FileName" maxlength="200" type="text" class="form-control" required aria-required="true" placeholder="填写静态化文件名,大小写字母、数字和-,如:about.html,不能是index.html" value="@Model.FileName">
<input id="FileName" name="FileName" maxlength="200" type="text" class="form-control" aria-required="true" placeholder="填写静态化文件名,大小写字母、数字和-,如:about.html,不能是index.html" value="@Model.FileName">
</div>
</div>
<div class="form-group">
@@ -34,7 +34,7 @@
<div class="form-group">
<label class="col-sm-3 control-label">栏目路径:</label>
<div class="col-sm-8">
<input id="FilePath" name="FilePath" maxlength="100" type="text" class="form-control" required aria-required="true" value="@Model.FilePath" placeholder="填写栏目路径,SEO优化使用,最多支持4级目录,可以输入字母、数字和-">
<input id="FilePath" name="FilePath" maxlength="100" type="text" class="form-control" aria-required="true" value="@Model.FilePath" placeholder="填写栏目路径,SEO优化使用,最多支持4级目录,可以输入字母、数字和-">
</div>
</div>
<div class="form-group">
@@ -168,25 +168,26 @@
function aoutoTransform() {
var title = $("#KindName").val();
var filePath = $("#FilePath").val();
var pid = $("#PId").val();
if (!filePath) {
$.ajax({
type: "POST",
url: "/AdminCP/Server/Hanzi2Pinyin",
data: { name: title},
dataType: "JSON",
success: function (data) {
if (data.status == "success") {
if (data.message) {
$("#FilePath").val(data.message);
type: "POST",
url: "/AdminCP/Server/Hanzi2Pinyin",
data: { name: title, pid: pid, t: "articlecategory" },
dataType: "JSON",
success: function (data) {
if (data.status == "success") {
if (data.message) {
$("#FilePath").val(data.message);
}
} else {
layer.alert(data.message, { icon: 2 });
}
} else {
layer.alert(data.message, { icon: 2 });
},
error: function () {
layer.alert('执行错误,请联系管理员!', { icon: 2 });
}
},
error: function () {
layer.alert('执行错误,请联系管理员!', { icon: 2 });
}
});
});
}
}
</script>
@@ -38,13 +38,13 @@
<script src="~/js/bootstrap-colorpicker/js/bootstrap-colorpicker.js"></script>
</environment>
<environment names="Staging,Production">
<script src="https://ajax.aspnetcdn.com/ajax/jquery/jquery-2.2.0.min.js"
<script src="https://cdn.staticfile.org/jquery/2.2.4/jquery.min.js"
asp-fallback-src="~/lib/jquery/dist/jquery.min.js"
asp-fallback-test="window.jQuery"
crossorigin="anonymous"
integrity="sha384-K+ctZQ+LL8q6tP7I94W+qzQsfRV2a+AfHIi9k8z8l9ggpc8X+Ytst4yBo/hH+8Fk">
</script>
<script src="https://ajax.aspnetcdn.com/ajax/bootstrap/3.3.7/bootstrap.min.js"
<script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"
asp-fallback-src="~/lib/bootstrap/dist/js/bootstrap.min.js"
asp-fallback-test="window.jQuery && window.jQuery.fn && window.jQuery.fn.modal"
crossorigin="anonymous"