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
00729cb8
authored
Jul 17, 2019
by
梁建民
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
css
parent
6e4f4da0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
4 deletions
Application/Home/View/GoodManage/uploadsingle.html
dist/js/goodmanage/uploadsingle.js
Application/Home/View/GoodManage/uploadsingle.html
View file @
00729cb8
...
...
@@ -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/js/goodmanage/uploadsingle.js
View file @
00729cb8
...
...
@@ -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