Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
gm_flutter
Project
Project
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
林生雨
gm_flutter
Commits
02a1c894
Commit
02a1c894
authored
Jul 09, 2020
by
林生雨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commit
parent
bb75ed22
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
7 deletions
+16
-7
PlanPage.dart
lib/ClueModel/page/plan/PlanPage.dart
+5
-3
TopModel.dart
lib/ClueModel/page/top/TopModel.dart
+10
-4
MainRouterImpl.dart
lib/MainRouter/MainRouterImpl.dart
+1
-0
No files found.
lib/ClueModel/page/plan/PlanPage.dart
View file @
02a1c894
...
@@ -65,9 +65,11 @@ class PlanState extends BaseState<PlanPage> with TickerProviderStateMixin {
...
@@ -65,9 +65,11 @@ class PlanState extends BaseState<PlanPage> with TickerProviderStateMixin {
// DioUtil.getInstance().setProxy("172.30.9.128");
// DioUtil.getInstance().setProxy("172.30.9.128");
super
.
initState
();
super
.
initState
();
if
(
CacheManager
.
getInstance
().
get
(
MEMORY_CACHE
).
get
(
COOKIE
)
==
null
)
{
if
(
CacheManager
.
getInstance
().
get
(
MEMORY_CACHE
).
get
(
COOKIE
)
==
null
)
{
RouterCenterImpl
().
findMainRouter
().
getInitParams
((
()
{
VoidCallback
callback
=
()
{
_model
.
init
();
_model
.
init
();
}));
};
print
(
"LST FIRST CALLBACK is null ?
${callback == null}
"
);
RouterCenterImpl
().
findMainRouter
().
getInitParams
(
callback
);
}
else
{
}
else
{
_model
.
init
();
_model
.
init
();
}
}
...
@@ -397,7 +399,7 @@ class PlanState extends BaseState<PlanPage> with TickerProviderStateMixin {
...
@@ -397,7 +399,7 @@ class PlanState extends BaseState<PlanPage> with TickerProviderStateMixin {
}
else
{
}
else
{
refreshController
.
loadComplete
();
refreshController
.
loadComplete
();
}
}
return
PlanItem
(
_model
.
feedDatas
[
index
],
index
,
true
);
return
PlanItem
(
_model
.
feedDatas
[
index
],
index
,
true
);
},
},
childCount:
_model
.
feedDatas
.
length
,
childCount:
_model
.
feedDatas
.
length
,
),
),
...
...
lib/ClueModel/page/top/TopModel.dart
View file @
02a1c894
...
@@ -41,10 +41,16 @@ class TopModel extends BaseModel {
...
@@ -41,10 +41,16 @@ class TopModel extends BaseModel {
return
;
return
;
}
}
tabIndex
=
index
;
tabIndex
=
index
;
// Map<String, dynamic> map = {
Map
<
String
,
dynamic
>
map
=
{
// "page_name"
"page_name"
:
"favor_plan"
,
// };
"referrer"
:
"plan_home"
,
// RouterCenterImpl().findMainRouter().buriedEvent("on_click_tab", map);
"referrer"
:
"plan_home"
,
"referrer_id"
:
""
,
"referrer_link"
:
[
"plan_home"
],
"from_tab_name"
:
""
,
"tab_name"
:
tabs
[
index
].
name
,
};
RouterCenterImpl
().
findMainRouter
().
buriedEvent
(
"on_click_tab"
,
map
);
}
}
void
init
(
VoidCallback
back
)
{
void
init
(
VoidCallback
back
)
{
...
...
lib/MainRouter/MainRouterImpl.dart
View file @
02a1c894
...
@@ -45,6 +45,7 @@ class MainRouterImpl implements MainRouter {
...
@@ -45,6 +45,7 @@ class MainRouterImpl implements MainRouter {
@override
@override
void
getInitParams
(
VoidCallback
callback
)
{
void
getInitParams
(
VoidCallback
callback
)
{
print
(
"LST SECOND CALLBACK is null ?
${callback == null}
"
);
MainManager
.
getInstance
().
getInitParams
(
callback
);
MainManager
.
getInstance
().
getInitParams
(
callback
);
}
}
}
}
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