Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wx-school-app
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
姜雷
wx-school-app
Commits
3f88493f
Commit
3f88493f
authored
Jun 18, 2019
by
姜雷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
每次进入查询豆服务和公告
parent
1fd1cd75
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
18 deletions
+20
-18
Home.tsx
src/pages/Home/Home.tsx
+20
-18
No files found.
src/pages/Home/Home.tsx
View file @
3f88493f
...
...
@@ -114,26 +114,12 @@ class Home extends Component {
}
componentDidShow
()
{
this
.
get
BeanCoun
tData
();
this
.
get
Ini
tData
();
}
getInitData
()
{
this
.
getBeanCountData
();
this
.
getServiceList
();
const
{
userinfo
}
=
this
.
props
;
fetchAnn
({
campusId
:
userinfo
.
areaId
,
customerId
:
userinfo
.
customerId
,
})
.
then
(
res
=>
{
if
(
res
)
{
this
.
setState
({
annItem
:
res
,
});
}
})
.
catch
(
err
=>
{
console
.
error
(
err
);
});
this
.
getAnn
();
}
getServiceList
()
{
...
...
@@ -176,10 +162,26 @@ class Home extends Component {
.
catch
(
console
.
error
);
}
getAnn
()
{
const
{
userinfo
}
=
this
.
props
;
fetchAnn
({
campusId
:
userinfo
.
areaId
,
customerId
:
userinfo
.
customerId
,
})
.
then
(
res
=>
{
if
(
res
)
{
this
.
setState
({
annItem
:
res
,
});
}
})
.
catch
(
err
=>
{
console
.
error
(
err
);
});
}
getFilterBeanList
()
{
const
{
beanAccount
,
serviceList
}
=
this
.
state
;
console
.
log
(
beanAccount
,
serviceList
);
let
beanMap
=
{
[
BeanType
.
water
]:
0
,
[
BeanType
.
shower
]:
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