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
a283ddc2
authored
Jun 24, 2019
by
梁建民
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
js
parent
1a7c6622
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
41 additions
and
6 deletions
Application/Home/View/GoodManage/index.html
dist/js/global/global.min.js
dist/js/goodmanage/index.js
Application/Home/View/GoodManage/index.html
View file @
a283ddc2
This diff is collapsed.
Click to expand it.
dist/js/global/global.min.js
View file @
a283ddc2
...
...
@@ -4,7 +4,9 @@
this
.
mounted
(
this
).
handleBind
(
this
);
},
getData
:
function
(
url
,
type
,
param
,
callback
)
{
var
index
=
layer
.
load
(
1
);
var
index
=
layer
.
load
(
1
,{
offset
:
[
'50%'
,
"50%"
],
shade
:
false
})
var
platform
=
{
pf
:
20
,
...
...
dist/js/goodmanage/index.js
View file @
a283ddc2
!
function
()
{
window
.
GoodManage
=
{
init
:
function
()
{
this
.
created
(
this
).
mounted
(
this
).
handleBind
(
this
);
this
.
created
(
this
).
mounted
(
this
,
{
offset
:
1
,
p
:
1
},
1
).
handleBind
(
this
);
},
created
(
opt
)
{
IcController
.
getData
(
apis
.
goodsInfo
,
'POST'
,
null
,
function
(
res
)
{
console
.
log
(
res
)
})
return
this
;
},
mounted
:
function
(
opt
)
{
mounted
:
function
(
opt
,
params
,
curr
)
{
//日期控件初始化
layui
.
laydate
.
render
({
elem
:
'#start_time'
,
theme
:
'#0D84D1'
});
layui
.
laydate
.
render
({
elem
:
'#end_time'
,
theme
:
'#0D84D1'
});
//商品列表初始化
IcController
.
getData
(
apis
.
goodsInfo
,
'POST'
,
params
,
function
(
res
)
{
var
getTpl
=
listHtml
.
innerHTML
;
layui
.
laytpl
(
getTpl
).
render
(
res
.
goods_list
,
function
(
html
)
{
$
(
"#listData"
).
empty
().
html
(
html
);
layui
.
laypage
.
render
({
elem
:
'pagination'
,
theme
:
'#1080d0'
,
count
:
res
.
total
,
limit
:
1
,
curr
:
curr
,
jump
:
function
(
obj
,
first
)
{
if
(
!
first
)
{
//分页回调调用
var
json
=
{
p
:
obj
.
curr
}
var
param
=
$
.
extend
({},
params
,
json
);
opt
.
mounted
(
opt
,
param
,
obj
.
curr
);
}
}
});
});
});
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