Commit d9e947ab authored by 吴春's avatar 吴春

官网新增修改bug修复

parent 00ca8e8c
......@@ -39,13 +39,13 @@
</PropertyGroup>
<ItemGroup>
<Reference Include="aliyun-net-sdk-core">
<HintPath>C:\Users\Administrator\Desktop\新建文件夹 (4)\aliyun-net-sdk-core.dll</HintPath>
<HintPath>..\packages\aliyun-net-sdk-core.dll</HintPath>
</Reference>
<Reference Include="aliyun-net-sdk-dysmsapi">
<HintPath>C:\Users\Administrator\Desktop\新建文件夹 (4)\aliyun-net-sdk-dysmsapi.dll</HintPath>
<HintPath>..\packages\aliyun-net-sdk-dysmsapi.dll</HintPath>
</Reference>
<Reference Include="Aliyun.Net.SDK.Core">
<HintPath>C:\Users\Administrator\Desktop\新建文件夹 (4)\Aliyun.Net.SDK.Core.dll</HintPath>
<HintPath>..\packages\Aliyun.Net.SDK.Core.dll</HintPath>
</Reference>
<Reference Include="Aliyun.OSS, Version=2.9.0.0, Culture=neutral, PublicKeyToken=0ad4175f0dac0b9b, processorArchitecture=MSIL">
<HintPath>..\packages\Aliyun.OSS.SDK.2.9.0\lib\Aliyun.OSS.dll</HintPath>
......
......@@ -97,7 +97,12 @@
<script src="/Scripts/Validator/bootstrapValidator.js"></script>
<script type="text/javascript">
$(document).ready(function () {
if ($("#iParentType").val() == "2") {
$("#PicInfo").hide();
}
else {
$("#PicInfo").show();
}
$("#iParentType").change(function () {
if ($("#iParentType").val() == "2") {
$("#PicInfo").hide();
......@@ -125,21 +130,22 @@
data.push({ name: "iLanguage", value: $("#iLanguage").val() });
data.push({ name: "iParentType", value: $("#iParentType").val() });
data.push({ name: "sContent", value: encodeURIComponent(UE.getEditor("sMobileDescribe").getContent()) });
if ($("#goods-select-image li").find("img").length == 0) {
alert("首页图片不能为空!");
$('#defaultForm').bootstrapValidator('disableSubmitButtons', false);
return;
} else {
if ($("#goods-select-image li").find("img").length > 1) {
alert("只能上传1张图片!");
if ($("#iParentType").val()!=2) {
if ($("#goods-select-image li").find("img").length == 0) {
alert("图片不能为空!");
$('#defaultForm').bootstrapValidator('disableSubmitButtons', false);
return;
} else {
if ($("#goods-select-image li").find("img").length > 1) {
alert("只能上传1张图片!");
$('#defaultForm').bootstrapValidator('disableSubmitButtons', false);
return;
}
}
$("#goods-select-image li").find("img").each(function (i) {
data.push({ name: "sIconUrl", value: $(this).attr("src") });
});
}
$("#goods-select-image li").find("img").each(function (i) {
data.push({ name: "sIconUrl", value: $(this).attr("src") });
});
$.post(form.attr('action'), data, function (result) {
if (result.valid == true || result.valid == 'true') {
......
......@@ -142,21 +142,22 @@
data.push({ name: "iLanguage", value: $("#iLanguage").val() });
data.push({ name: "iParentType", value: $("#iParentType").val()});
data.push({ name: "sContent", value: encodeURIComponent(UE.getEditor("sMobileDescribe").getContent()) });
if ($("#goods-select-image li").find("img").length == 0) {
alert("首页图片不能为空!");
$('#defaultForm').bootstrapValidator('disableSubmitButtons', false);
return;
} else {
if ($("#goods-select-image li").find("img").length > 1) {
alert("只能上传1张图片!");
if ($("#iParentType").val() != 2) {
if ($("#goods-select-image li").find("img").length == 0) {
alert("图片不能为空!");
$('#defaultForm').bootstrapValidator('disableSubmitButtons', false);
return;
} else {
if ($("#goods-select-image li").find("img").length > 1) {
alert("只能上传1张图片!");
$('#defaultForm').bootstrapValidator('disableSubmitButtons', false);
return;
}
}
$("#goods-select-image li").find("img").each(function (i) {
data.push({ name: "sIconUrl", value: $(this).attr("src") });
});
}
$("#goods-select-image li").find("img").each(function (i) {
data.push({ name: "sIconUrl", value: $(this).attr("src") });
});
$.post(form.attr('action'), data, function (result) {
if (result.valid == true || result.valid == 'true') {
......
......@@ -11,8 +11,8 @@
<img alt="" src="~/Areas/Mobile/Content/images/people1.png" style="display: inline-block; vertical-align: middle;" />
</a>
</div>
@*@if (!string.IsNullOrEmpty(Request.QueryString["debug"]))
{*@
@if (!string.IsNullOrEmpty(Request.QueryString["debug"]))
{
<div style="padding-bottom: 20px; overflow: hidden">
<form id="searchForm">
<div style="width: 230px; float: left">
......@@ -186,4 +186,4 @@
});
</script>
}
@*}*@
\ No newline at end of file
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment