Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuy-portal-fe2
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
匡佳华
6 years ago
Commit
b27612d94634a4ce815e4927e7263afd14227daa
1 parent
d98a9210
删除商品描述首张图片
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
43 additions
and
0 deletions
code/apps/goods/interfaces/productdesc.js
dist/yohobuy-portal-fe/5.0.2/jquery/goods.productdesc.Index.js
server/controllers/goods.productdesc.js
server/interfaces/goods.productdesc.js
server/views/goods/productdesc/Index.html
code/apps/goods/interfaces/productdesc.js
View file @
b27612d
...
...
@@ -12,6 +12,18 @@ module.exports={
{
name
:
'smallSortId'
,
type
:
'Number'
},
{
name
:
'productDesc'
,
type
:
'String'
}
]
},
deleteBatchProductDescFirstImg
:{
title
:
'批量删除商品首张图片'
,
url
:
'/product/deleteBatchProductDescFirstImg'
,
params
:[
{
name
:
'productSknStrs'
,
type
:
'String'
},
{
name
:
'brandId'
,
type
:
'Number'
},
{
name
:
'maxSortId'
,
type
:
'Number'
},
{
name
:
'middleSortId'
,
type
:
'Number'
},
{
name
:
'smallSortId'
,
type
:
'Number'
}
]
}
}
}
\ No newline at end of file
...
...
dist/yohobuy-portal-fe/5.0.2/jquery/goods.productdesc.Index.js
View file @
b27612d
...
...
@@ -44,6 +44,20 @@ webpackJsonp([54],{
});
});
/*删除skn第一张图片*/
$
(
document
).
on
(
"click"
,
"#btn-deleteFirstDesc"
,
function
(){
common
.
util
.
__ajax
({
url
:
'/product/deleteBatchProductDescFirstImg'
,
data
:{
productSknStrs
:
common
.
util
.
__input
(
'productSkn'
),
brandId
:
common
.
util
.
__input
(
"brandId"
),
maxSortId
:
tabTree
.
selected
.
length
>
0
?
tabTree
.
selected
[
0
].
id
:
""
,
// 一级类目
middleSortId
:
tabTree
.
selected
.
length
>
1
?
tabTree
.
selected
[
1
].
id
:
""
,
// 二级类目
smallSortId
:
tabTree
.
selected
.
length
>
2
?
tabTree
.
selected
[
2
].
id
:
""
,
// 三级类目
}
});
});
/*下拉选择
new common.dropDown({
...
...
server/controllers/goods.productdesc.js
View file @
b27612d
...
...
@@ -10,6 +10,8 @@ module.exports=function(app) {
app
.
post
(
"/product/updateBatchProductDesc"
,
"productdesc_updateBatchProductDesc"
);
app
.
post
(
"/product/deleteBatchProductDescFirstImg"
,
"productdesc_deleteBatchProductDescFirstImg"
);
/*ajax列表数据
app.post("/product/queryNetSaleInforList","audit_queryNetSaleInforList");*/
...
...
server/interfaces/goods.productdesc.js
View file @
b27612d
...
...
@@ -12,6 +12,17 @@ module.exports={
{
name
:
'smallSortId'
,
type
:
'Number'
},
{
name
:
'productDesc'
,
type
:
'String'
}
]
},
deleteBatchProductDescFirstImg
:{
title
:
'批量删除商品首张图片'
,
url
:
'/product/deleteBatchProductDescFirstImg'
,
params
:[
{
name
:
'productSknStrs'
,
type
:
'String'
},
{
name
:
'brandId'
,
type
:
'Number'
},
{
name
:
'maxSortId'
,
type
:
'Number'
},
{
name
:
'middleSortId'
,
type
:
'Number'
},
{
name
:
'smallSortId'
,
type
:
'Number'
}
]
}
}
}
\ No newline at end of file
...
...
server/views/goods/productdesc/Index.html
View file @
b27612d
...
...
@@ -23,6 +23,10 @@
<div
id=
"sort"
></div>
</div>
<div
class=
"panel-footer"
>
<a
href=
"javascript:;"
class=
"btn btn-primary"
id=
"btn-deleteFirstDesc"
>
删除首张图片
</a>
</div>
</div>
</div>
</div>
...
...
Please
register
or
login
to post a comment