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
4b3b9396
Commit
4b3b9396
authored
Jul 10, 2020
by
林生雨
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'zx/gmFlutter' into 'test'
Zx/gm flutter See merge request
!28
parents
b1742a37
da062571
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
36 deletions
+22
-36
LevelOnePage.dart
lib/ClueModel/page/levelOne/LevelOnePage.dart
+3
-9
LevelTwoPage.dart
lib/ClueModel/page/levelTwo/LevelTwoPage.dart
+0
-8
TopModel.dart
lib/ClueModel/page/top/TopModel.dart
+2
-2
MainManager.dart
lib/MainRouter/manager/MainManager.dart
+17
-17
No files found.
lib/ClueModel/page/levelOne/LevelOnePage.dart
View file @
4b3b9396
...
...
@@ -329,7 +329,9 @@ class LevelOneState extends BaseState<LevelOnePage>
right:
15
,
bottom:
8
,
child:
baseText
(
"销量
${NumPlanUtil.getSale(_model.planoverItem.salesCount)}
"
,
11
,
Color
(
0xff666666
)),
"销量
${NumPlanUtil.getSale(_model.planoverItem.salesCount)}
"
,
11
,
Color
(
0xff666666
)),
)
],
),
...
...
@@ -569,14 +571,6 @@ class LevelOneState extends BaseState<LevelOnePage>
.
jumpPage
(
context
,
"show_login"
,
null
,
true
);
return
;
}
Map
<
String
,
dynamic
>
map
=
{
"page_name"
:
"level_one_plan_deatil"
,
"referrer_link"
:
[],
"popup_name"
:
"interested_plan"
};
RouterCenterImpl
()
.
findMainRouter
()
.
buriedEvent
(
"popup_view"
,
map
);
DiscussLowPricePopView
.
showPopView
(
context
,
widget
.
PAGE_NAME
,
"
${widget.planId}
"
,
""
,
""
);
},
...
...
lib/ClueModel/page/levelTwo/LevelTwoPage.dart
View file @
4b3b9396
...
...
@@ -534,14 +534,6 @@ class LevelTwoState extends BaseState<LevelTwoPage>
.
jumpPage
(
context
,
"show_login"
,
null
,
true
);
return
;
}
Map
<
String
,
dynamic
>
map
=
{
"page_name"
:
"level_two_plan_deatil"
,
"referrer_link"
:
[],
"popup_name"
:
"interested_plan"
};
RouterCenterImpl
()
.
findMainRouter
()
.
buriedEvent
(
"popup_view"
,
map
);
DiscussLowPricePopView
.
showPopView
(
context
,
widget
.
PAGE_NAME
,
"
${widget.planId}
"
,
""
,
""
);
},
...
...
lib/ClueModel/page/top/TopModel.dart
View file @
4b3b9396
...
...
@@ -40,16 +40,16 @@ class TopModel extends BaseModel {
if
(
tabIndex
==
index
)
{
return
;
}
tabIndex
=
index
;
Map
<
String
,
dynamic
>
map
=
{
"page_name"
:
"favor_plan"
,
"referrer"
:
"plan_home"
,
"referrer"
:
"plan_home"
,
"referrer_id"
:
""
,
"referrer_link"
:
[
"plan_home"
],
"from_tab_name"
:
""
,
"from_tab_name"
:
tabs
[
tabIndex
].
name
,
"tab_name"
:
tabs
[
index
].
name
,
};
tabIndex
=
index
;
RouterCenterImpl
().
findMainRouter
().
buriedEvent
(
"on_click_tab"
,
map
);
}
...
...
lib/MainRouter/manager/MainManager.dart
View file @
4b3b9396
...
...
@@ -10,7 +10,6 @@ import 'package:flutter_boost/flutter_boost.dart';
import
'package:gm_flutter/commonModel/GMBase.dart'
;
import
'package:gm_flutter/commonModel/base/BaseUtil.dart'
;
import
'package:gm_flutter/commonModel/cache/CacheManager.dart'
;
import
'package:gm_flutter/commonModel/eventbus/SimpleEventBus.dart'
;
import
'package:gm_flutter/commonModel/util/DartUtil.dart'
;
import
'../../commonModel/App.dart'
;
...
...
@@ -119,20 +118,21 @@ class MainManager {
}
}
// void getInitParams(VoidCallback callback) {
// if (isInit) {
// if (flutterChannel != null) {
// flutterChannel.invokeMethod("get_common_params").then((data) {
// if (data is Map) {
// var map = Map<String, dynamic>.from(data);
// initParams(map, callback: callback);
// }
// }).whenComplete(() {
//// callback();
// });
// return;
// }
// }
// callback();
// }
void
getInitParams
(
VoidCallback
callback
)
{
if
(
isInit
)
{
if
(
flutterChannel
!=
null
)
{
flutterChannel
.
invokeMethod
(
"get_common_params"
).
then
((
data
)
{
if
(
data
is
Map
)
{
var
map
=
Map
<
String
,
dynamic
>.
from
(
data
);
initParams
(
map
,
callback:
callback
);
}
}).
whenComplete
(()
{
// callback();
});
return
;
}
}
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