Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
Theater
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
吴春
Theater
Commits
d9e947ab
Commit
d9e947ab
authored
Feb 26, 2019
by
吴春
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
官网新增修改bug修复
parent
00ca8e8c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
36 additions
and
29 deletions
+36
-29
EheMall.Business.csproj
EheMall.Business/EheMall.Business.csproj
+3
-3
Create.cshtml
EheMall.Web/Areas/Admin/Views/Article/Create.cshtml
+18
-12
Edit.cshtml
EheMall.Web/Areas/Admin/Views/Article/Edit.cshtml
+12
-11
Index.cshtml
EheMall.Web/Areas/Admin/Views/Home/Index.cshtml
+3
-3
No files found.
EheMall.Business/EheMall.Business.csproj
View file @
d9e947ab
...
...
@@ -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>
...
...
EheMall.Web/Areas/Admin/Views/Article/Create.cshtml
View file @
d9e947ab
...
...
@@ -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') {
...
...
EheMall.Web/Areas/Admin/Views/Article/Edit.cshtml
View file @
d9e947ab
...
...
@@ -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') {
...
...
EheMall.Web/Areas/Admin/Views/Home/Index.cshtml
View file @
d9e947ab
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment