Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
施宇
/
icsales
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
cf3ed074
authored
Jul 17, 2019
by
梁建民
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
css
parent
90903c17
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
47 additions
and
13 deletions
Application/Home/View/GoodManage/index.html
dist/css/goodmanage.css
dist/css/goodmanage.css.map
dist/css/goodmanage.less
dist/js/goodmanage/index.js
Application/Home/View/GoodManage/index.html
View file @
cf3ed074
...
...
@@ -72,7 +72,7 @@
上传商品
</div>
<div
class=
"xz fr boxsiz btn btn_border"
>
下载商品模板
<a
href=
"__PUBLIC__/ic_templet.xls"
>
下载商品模板
</a>
</div>
<div
class=
"plsc fr btn btn_green"
>
<span
class=
"icon iconfont iconjuxing16 "
></span>
...
...
@@ -166,7 +166,7 @@
{{
#
if
(
item
[
'audit_status'
]
==
1
){
}}
<
a
class
=
"edit fr"
href
=
"/uploadsingle?id={{item.goods_id}}"
>
编辑
<
/a
>
{{
#
}
else
{
}}
<
a
class
=
"edit fr disabled"
href
=
"/uploadsingle?id={{item.goods_id}}"
>
编辑
<
/a
>
<
a
class
=
"edit fr disabled"
>
编辑
<
/a
>
{{
#
}
}}
<
/div
>
{{
#
});
}}
...
...
dist/css/goodmanage.css
View file @
cf3ed074
...
...
@@ -229,6 +229,7 @@
}
.good_manage_content
.good_data
.data_list
.data_item
.edit.disabled
{
cursor
:
not-allowed
;
opacity
:
0.5
;
}
.good_manage_content
.good_data
.data_list
.data_item
.xj_status
{
color
:
#686E73
;
...
...
@@ -237,6 +238,7 @@
}
.good_manage_content
.good_data
.data_list
.data_item
.xj_status.disabled
{
cursor
:
not-allowed
;
opacity
:
0.5
;
}
.good_manage_content
.good_data
.data_list
.data_item
.xj_status.fb
{
color
:
#0D84D1
;
...
...
dist/css/goodmanage.css.map
View file @
cf3ed074
{"version":3,"sources":["goodmanage.less"],"names":[],"mappings":"AAAA;EACI,eAAA;;AADJ,oBAGI;EACI,eAAA;;AAJR,oBAOI;EACI,sBAAA;EACA,aAAA;EACA,kBAAA;;AAVR,oBAOI,YAKI;EACI,aAAA;EACA,kBAAA;;AAdZ,oBAOI,YAKI,IAII;EACI,eAAA;EACA,gBAAA;;AAlBhB,oBAOI,YAKI,IASI;EACI,eAAA;EACA,cAAA;;AAGJ,oBAnBR,YAKI,IAcK,QACG;EACI,cAAA;;AAIR,oBAzBR,YAKI,IAoBK,UACG;EACI,cAAA;;AAIR,oBA/BR,YAKI,IA0BK,QACG;EACI,cAAA;;AAxCpB,oBAOI,YAsCI;EACI,kBAAA;EACA,SAAA;EACA,YAAA;EACA,UAAA;EACA,yBAAA;;AAEA,oBA7CR,YAsCI,aAOK;EACG,YAAA;;AAIJ,oBAlDR,YAsCI,aAYK;EACG,YAAA;;AA1DhB,oBAgEI;EACI,YAAA;EACA,sBAAA;EACA,gBAAA;EACA,eAAA;EACA,cAAA;EACA,eAAA;EACA,iBAAA;;AAvER,oBAgEI,gBASI;EACI,mBAAA;EACA,kBAAA;;AA3EZ,oBAgEI,gBASI,WAII;EACI,UAAA;EACA,QAAA;EACA,kBAAA;EACA,QAAA;;AAjFhB,oBAgEI,gBASI,WAWI;EACI,YAAA;EACA,kBAAA;EACA,yBAAA;EACA,eAAA;EACA,UAAA;EACA,iBAAA;;AAIJ,mBAAqC;EAArC,oBA9BR,gBASI,WAsBQ;IACI,UAAA;;;AAhGpB,oBAgEI,gBASI,WA2BI;EACI,WAAA;;AArGhB,oBAgEI,gBAyCI,UACI;EACI,YAAA;EACA,8BAAA;EACA,yBAAA;EACA,eAAA;EACA,WAAA;EACA,cAAA;EACA,iBAAA;;AAjHhB,oBAgEI,gBAyCI,UAWI;AApHZ,oB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A4CI,KAGI;EACI,cAAA;;AArOxB,oBAiLI,WACI,WAGI,WAoDI;EACI,UAAA;;AA1OpB,oBAiLI,WACI,WAGI,WAoDI,aAGI;EACI,YAAA;EACA,WAAA;EACA,sBAAA;EACA,iBAAA;;AAGJ,oBAlEhB,WACI,WAGI,WAoDI,aAUK,GACG;EACI,yBAAA;;AAIR,oBAxEhB,WACI,WAGI,WAoDI,aAgBK,GACG;EACI,yBAAA;;AAGR,oBA7EhB,WACI,WAGI,WAoDI,aAqBK,GACG;EACI,yBAAA;;AAhQ5B,oBAiLI,WACI,WAGI,WAoDI,aA2BI;EACI,cAAA;;AArQxB,oBAiLI,WACI,WAGI,WAoFI;EACI,UAAA;;AA1QpB,oBAiLI,WACI,WAGI,WAyFI;EACI,cAAA;EACA,UAAA;;AAGJ,mBAAqC;EAArC,oBAlGZ,WACI,WAGI,WAiGQ;IACI,UAAA;;EAJR,oBAlGZ,WACI,WAGI,WAqGQ;IACI,UAAA;;EARR,oBAlGZ,WACI,WAGI,WAyGQ;IACI,UAAA;;EAZR,oBAlGZ,WACI,WAGI,WA6GQ;IACI,aAAA;;;AAnSxB,oBAiLI,WACI,WAGI,WAkHI;EACI,cAAA;EACA,eAAA;;AACA,oBAzHhB,WACI,WAGI,WAkHI,MAGK;EACG,mBAAA;;AA3SxB,oBAiLI,WACI,WAGI,WA0HI;EACI,cAAA;EACA,eAAA;EACA,iBAAA;;AACA,oBAlIhB,WACI,WAGI,WA0HI,WAIK;EACG,mBAAA;;AAEJ,oBArIhB,WACI,WAGI,WA0HI,WAOK;EACG,cAAA","file":"goodmanage.css"}
\ No newline at end of file
{"version":3,"sources":["goodmanage.less"],"names":[],"mappings":"AAAA;EACI,eAAA;;AADJ,oBAGI;EACI,eAAA;;AAJR,oBAOI;EACI,sBAAA;EACA,aAAA;EACA,kBAAA;;AAVR,oBAOI,YAKI;EACI,aAAA;EACA,kBAAA;;AAdZ,oBAOI,YAKI,IAII;EACI,eAAA;EACA,gBAAA;;AAl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yBAAA;;AAhQ5B,oBAiLI,WACI,WAGI,WAoDI,aA2BI;EACI,cAAA;;AArQxB,oBAiLI,WACI,WAGI,WAoFI;EACI,UAAA;;AA1QpB,oBAiLI,WACI,WAGI,WAyFI;EACI,cAAA;EACA,UAAA;;AAGJ,mBAAqC;EAArC,oBAlGZ,WACI,WAGI,WAiGQ;IACI,UAAA;;EAJR,oBAlGZ,WACI,WAGI,WAqGQ;IACI,UAAA;;EARR,oBAlGZ,WACI,WAGI,WAyGQ;IACI,UAAA;;EAZR,oBAlGZ,WACI,WAGI,WA6GQ;IACI,aAAA;;;AAnSxB,oBAiLI,WACI,WAGI,WAkHI;EACI,cAAA;EACA,eAAA;;AACA,oBAzHhB,WACI,WAGI,WAkHI,MAGK;EACG,mBAAA;EACA,YAAA;;AA5SxB,oBAiLI,WACI,WAGI,WA2HI;EACI,cAAA;EACA,eAAA;EACA,iBAAA;;AACA,oBAnIhB,WACI,WAGI,WA2HI,WAIK;EACG,mBAAA;EACA,YAAA;;AAEJ,oBAvIhB,WACI,WAGI,WA2HI,WAQK;EACG,cAAA","file":"goodmanage.css"}
\ No newline at end of file
dist/css/goodmanage.less
View file @
cf3ed074
...
...
@@ -298,6 +298,7 @@
cursor: pointer;
&.disabled{
cursor: not-allowed;
opacity: 0.5;
}
}
...
...
@@ -307,6 +308,7 @@
margin-left: 20px;
&.disabled{
cursor: not-allowed;
opacity: 0.5;
}
&.fb {
color: #0D84D1;
...
...
dist/js/goodmanage/index.js
View file @
cf3ed074
!
function
()
{
!
function
()
{
window
.
GoodManageController
=
{
token
:
Util
.
getCookie
(
'token'
)
||
''
,
init
:
function
()
{
...
...
@@ -139,35 +139,65 @@
//上架
$
(
'#listData'
).
on
(
'click'
,
'.fb'
,
function
(
e
)
{
e
.
stopPropagation
();
var
goodId
=
$
(
this
).
parent
(
'.data_item'
).
attr
(
'goodid'
);
if
(
$
(
this
).
hasClass
(
'disabled'
))
{
return
return
;
}
else
{
opt
.
sxj
(
goodId
,
1
)
opt
.
sxj
(
goodId
,
1
);
}
});
//下架
$
(
'#listData'
).
on
(
'click'
,
'.xj'
,
function
(
e
)
{
e
.
stopPropagation
();
var
goodId
=
$
(
this
).
parent
(
'.data_item'
).
attr
(
'goodid'
);
if
(
$
(
this
).
hasClass
(
'disabled'
))
{
return
return
;
}
else
{
opt
.
sxj
(
goodId
,
2
)
}
});
$
(
'.xz'
).
on
(
'click'
,
function
(){
window
.
location
.
href
=
"http://icsales-files-2019.oss-cn-shenzhen.aliyuncs.com/files/templates/ic_templet.xls"
})
$
(
'#listData'
).
on
(
'click'
,
'.data_item'
,
function
(
e
)
{
//进入详情
$
(
document
).
on
(
'click'
,
'#listData .data_item'
,
function
(
e
)
{
e
.
stopPropagation
();
var
goodId
=
$
(
this
).
attr
(
'goodid'
);
window
.
location
.
href
=
"/gooddetail?id="
+
goodId
window
.
location
.
href
=
"/gooddetail?id="
+
goodId
;
});
//阻止默认事件
$
(
document
).
on
(
'click'
,
'.data_list .disabled'
,
function
(
e
)
{
e
.
stopPropagation
();
});
return
this
;
},
},
$
(
function
()
{
...
...
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