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
1840a1dd
authored
Jun 26, 2019
by
梁建民
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
js
parent
dd7e6d7a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
12 deletions
Application/Home/View/GoodManage/uploadsingle.html
dist/js/global/global.min.js
dist/js/goodmanage/uploadsingle.js
Application/Home/View/GoodManage/uploadsingle.html
View file @
1840a1dd
...
...
@@ -96,7 +96,7 @@
<include
file=
"public/foot"
/>
<script
src=
"__PUBLIC__/js/goodmanage/uploadsingle.js"
></script>
<script
type=
"text/html"
id=
"deliveryHtml"
>
{{
#
if
(
d
==
1
)
{
}}
{{
#
if
(
d
==
'期货'
)
{
}}
<
input
type
=
"text"
placeholder
=
"输入时间"
class
=
"boxsiz day_input input"
lay
-
verify
=
"required|number"
name
=
"day"
>
<
i
class
=
"day"
>
天
<
/i
>
{{
#
}
}}
...
...
dist/js/global/global.min.js
View file @
1840a1dd
...
...
@@ -9,7 +9,7 @@
})
var
platform
=
{
pf
:
20
,
source
:
2
,
token
:
'1298dc6f00a017d9e94fc1e57792625d'
}
...
...
dist/js/goodmanage/uploadsingle.js
View file @
1840a1dd
...
...
@@ -18,20 +18,13 @@
//货期选择
layui
.
form
.
on
(
'radio(delivery)'
,
function
(
data
)
{
var
val
=
1
;
var
str
=
'期货'
;
if
(
data
.
value
==
'期货'
)
{
val
=
1
;
}
else
if
(
data
.
value
==
'现货'
)
{
val
=
2
;
}
data
.
value
==
'期货'
?
str
=
'期货'
:
str
=
'现货'
;
var
getTpl
=
deliveryHtml
.
innerHTML
;
layui
.
laytpl
(
getTpl
).
render
(
val
,
function
(
html
)
{
layui
.
laytpl
(
getTpl
).
render
(
str
,
function
(
html
)
{
$
(
"#day"
).
empty
().
html
(
html
);
...
...
@@ -73,6 +66,8 @@
layer
.
msg
(
res
.
errmsg
);
opt
.
isClick
=
false
;
$
(
data
.
elem
).
removeClass
(
"layui-btn-disabled"
);
}
});
...
...
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