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
b431a011
authored
Jul 17, 2019
by
施宇
Browse files
Options
_('Browse Files')
Download
Plain Diff
Merge branch 'master' of
http://119.23.72.7/shiyu/icsales
parents
ff4b5e97
00729cb8
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
49 additions
and
8 deletions
Application/Home/View/GoodManage/index.html
Application/Home/View/GoodManage/uploadsingle.html
dist/css/goodmanage.css
dist/css/goodmanage.css.map
dist/js/goodmanage/uploadsingle.js
Application/Home/View/GoodManage/index.html
View file @
b431a011
...
...
@@ -156,6 +156,7 @@
<
a
class
=
"xj xj_status fr disabled"
>
下架
<
/a
>
{{
#
}
}}
{{
#
}
else
{
}}
{{
#
if
(
item
[
'audit_status'
]
==
1
){
}}
<
a
class
=
"fb xj_status fr"
>
发布
<
/a
>
{{
#
}
else
{
}}
...
...
@@ -163,9 +164,9 @@
{{
#
}
}}
{{
#
}
}}
{{
#
if
(
item
[
'audit_status'
]
==
1
){
}}
<
a
class
=
"edit fr
"
>
编辑
<
/a
>
<
a
class
=
"edit fr"
href
=
"/uploadsingle?id={{item.goods_id}}
"
>
编辑
<
/a
>
{{
#
}
else
{
}}
<
a
class
=
"edit fr disabled
"
>
编辑
<
/a
>
<
a
class
=
"edit fr disabled"
href
=
"/uploadsingle?id={{item.goods_id}}
"
>
编辑
<
/a
>
{{
#
}
}}
<
/div
>
{{
#
});
}}
...
...
Application/Home/View/GoodManage/uploadsingle.html
View file @
b431a011
...
...
@@ -26,8 +26,8 @@
<span
class=
"icon iconfont iconjuxing19 va-m"
></span>
<span>
上传的商品有图片,搜索排名会优先排前
</span>
</div>
<div
class=
"form_content layui-form clr"
>
<div
class=
"form_left fl
layui-form
"
>
<div
class=
"form_content layui-form clr"
lay-filter=
"goodsave"
>
<div
class=
"form_left fl"
>
<div
class=
"xh input_div "
>
<span
class=
"input_title lineBlock"
>
*型号:
</span>
<div
class=
"input_parent"
>
...
...
dist/css/goodmanage.css
View file @
b431a011
...
...
@@ -241,3 +241,4 @@
.good_manage_content
.good_data
.data_list
.data_item
.xj_status.fb
{
color
:
#0D84D1
;
}
/*# sourceMappingURL=goodmanage.css.map */
\ No newline at end of file
dist/css/goodmanage.css.map
View file @
b431a011
{"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,mBA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AGI,WAuBI,MAKI;EACI,eAAA;EACA,cAAA;EACA,mBAAA;EACA,iBAAA;;AArNxB,oBAiLI,WACI,WAGI,WAoCI;EACI,UAAA;;AA1NpB,oBAiLI,WACI,WAGI,WAoCI,OAGI;EACI,cAAA;;AA7NxB,oBAiLI,WACI,WAGI,WA4CI;EACI,UAAA;;AAlOpB,oBAiLI,WACI,WAGI,WA4CI,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;;AA3P5B,oBAiLI,WACI,WAGI,WAoDI,aAsBI;EACI,cAAA;;AAhQxB,oBAiLI,WACI,WAGI,WA+EI;EACI,UAAA;;AArQpB,oBAiLI,WACI,WAGI,WAoFI;EACI,cAAA;EACA,UAAA;;AAGJ,mBAAqC;EAArC,oBA7FZ,WACI,WAGI,WA4FQ;IACI,UAAA;;EAJR,oBA7FZ,WACI,WAGI,WAgGQ;IACI,UAAA;;EARR,oBA7FZ,WACI,WAGI,WAoGQ;IACI,UAAA;;EAZR,oBA7FZ,WACI,WAGI,WAwGQ;IACI,aAAA;;;AA9RxB,oBAiLI,WACI,WAGI,WA6GI;EACI,cAAA;EACA,eAAA;;AApSpB,oBAiLI,WACI,WAGI,WAkHI;EACI,cAAA;EACA,eAAA;EACA,iBAAA;;AAEA,oBA3HhB,WACI,WAGI,WAkHI,IAKK;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;EAC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AgBK,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
dist/js/goodmanage/uploadsingle.js
View file @
b431a011
...
...
@@ -19,6 +19,39 @@
},
mounted
:
function
(
opt
)
{
var
id
=
Util
.
getRequest
(
'id'
),
text
=
''
;
//编辑
if
(
id
)
{
IcController
.
getData
(
apis
.
goodsInfo
,
'GET'
,
{
token
:
opt
.
token
,
'goods_id/eq'
:
id
},
function
(
res
)
{
if
(
res
.
errcode
===
0
){
layui
.
form
.
val
(
"goodsave"
,
{
"goods_name"
:
res
[
'goods_list'
][
id
].
goods_name
,
"brand_name"
:
res
[
'goods_list'
][
id
].
brand_name
,
"encap"
:
res
[
'goods_list'
][
id
].
encap
,
"stock"
:
res
[
'goods_list'
][
id
].
stock
,
"price"
:
res
[
'goods_list'
][
id
].
price
,
"day"
:
res
[
'goods_list'
][
id
].
delivery_time
,
"currency"
:
res
[
'goods_list'
][
id
].
currency
,
"delivery_time"
:
res
[
'goods_list'
][
id
].
delivery_time
});
setTimeout
(
function
()
{
$
(
'.hq'
).
find
(
'.layui-form-radioed'
).
trigger
(
'click'
);
},
500
)
}
});
}
return
this
;
},
...
...
@@ -55,13 +88,18 @@
$
(
data
.
elem
).
addClass
(
"layui-btn-disabled"
);
var
id
=
Util
.
getRequest
(
'id'
),
params
=
{},
url
=
''
;
if
(
!
opt
.
isClick
)
{
opt
.
isClick
=
true
;
var
params
=
$
.
extend
({},
data
.
field
,
{
token
:
opt
.
token
});
id
?
params
=
$
.
extend
({},
data
.
field
,
{
token
:
opt
.
token
,
'goods_id'
:
id
})
:
$
.
extend
({},
data
.
field
,
{
token
:
opt
.
token
});
id
?
url
=
apis
.
goodsSave
:
url
=
apis
.
goodsAdd
;
IcController
.
getData
(
apis
.
goodsAdd
,
'POS
T'
,
params
,
function
(
res
)
{
IcController
.
getData
(
url
,
'GE
T'
,
params
,
function
(
res
)
{
if
(
res
.
errcode
===
0
)
{
...
...
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