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
5bd6bf03
authored
Jun 24, 2019
by
梁建民
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
多次点击
parent
b5f11c9c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
3 deletions
dist/js/goodmanage/uploadsingle.js
dist/js/goodmanage/uploadsingle.js
View file @
5bd6bf03
!
function
()
{
!
function
()
{
window
.
UploadSingle
=
{
window
.
UploadSingle
=
{
isClick
:
false
,
init
:
function
()
{
init
:
function
()
{
this
.
created
(
this
).
mounted
(
this
).
handleBind
(
this
);
this
.
created
(
this
).
mounted
(
this
).
handleBind
(
this
);
},
},
...
@@ -38,9 +39,20 @@
...
@@ -38,9 +39,20 @@
//上传商品
//上传商品
layui
.
form
.
on
(
'submit(add)'
,
function
(
data
)
{
layui
.
form
.
on
(
'submit(add)'
,
function
(
data
)
{
IcController
.
getData
(
apis
.
goodsAdd
,
'POST'
,
data
.
field
,
function
(
res
)
{
$
(
data
.
elem
).
addClass
(
"layui-btn-disabled"
);
console
.
log
(
res
)
if
(
!
opt
.
isClick
)
{
});
opt
.
isClick
=
true
;
IcController
.
getData
(
apis
.
goodsAdd
,
'POST'
,
data
.
field
,
function
(
res
)
{
if
(
res
.
errcode
==
0
)
{
layer
.
msg
(
'上传商品成功'
,
{
time
:
2000
},
function
()
{
window
.
location
.
href
=
'/goodmanage'
;
});
}
else
{
layer
.
msg
(
res
.
errmsg
);
opt
.
isClick
=
false
;
}
});
}
});
});
return
this
;
return
this
;
},
},
...
...
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