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
2af42286
Commit
2af42286
authored
Jul 07, 2020
by
林生雨
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'zx/gmFlutter' into 'test'
Zx/gm flutter See merge request
!18
parents
e66cc63b
1794906e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
10 deletions
+22
-10
DiscussLowPricePopView.dart
...lueModel/page/DiscussLowPrice/DiscussLowPricePopView.dart
+21
-8
PlanCompareDetailPage.dart
...ueModel/page/PlanCompareDetail/PlanCompareDetailPage.dart
+0
-1
TestPage.dart
lib/MainRouter/page/test/TestPage.dart
+1
-1
No files found.
lib/ClueModel/page/DiscussLowPrice/DiscussLowPricePopView.dart
View file @
2af42286
...
...
@@ -15,10 +15,10 @@ import 'package:gm_flutter/commonModel/base/BaseUtil.dart';
import
'package:gm_flutter/main.mark.dart'
;
class
DiscussLowPricePopView
{
static
void
showPopView
(
BuildContext
content
,
String
planId
,
String
hospitalId
,
String
doctorId
)
{
static
void
showPopView
(
BuildContext
content
,
String
pageName
,
String
planId
,
String
hospitalId
,
String
doctorId
)
{
BaseCenterPicker
()
..
setPicker
(
_PopView
(
planId
,
hospitalId
,
doctorId
))
..
setPicker
(
_PopView
(
p
ageName
,
p
lanId
,
hospitalId
,
doctorId
))
..
show
(
content
);
}
}
...
...
@@ -27,7 +27,8 @@ class _PopView implements ICenterPicker {
String
planId
;
String
hospitalId
;
String
doctorId
;
_PopView
(
this
.
planId
,
this
.
hospitalId
,
this
.
doctorId
);
String
pageName
;
_PopView
(
this
.
pageName
,
this
.
planId
,
this
.
hospitalId
,
this
.
doctorId
);
VoidCallback
dismissCallback
;
double
contentWidth
;
DiscussLowPriceModel
_model
=
new
DiscussLowPriceModel
();
...
...
@@ -45,7 +46,9 @@ class _PopView implements ICenterPicker {
if
(
data
.
data
.
second
==
null
||
data
.
data
.
first
==
FAIL
)
{
return
errorItem
(
contentWidth
,
308.5
,
()
{});
}
RouterCenterImpl
().
findMainRouter
().
buriedEvent
(
"popup_view"
,
{});
RouterCenterImpl
()
.
findMainRouter
()
.
buriedEvent
(
"popup_view"
,
phobosData
());
return
Opacity
(
opacity:
alp
/
255.0
,
child:
Container
(
...
...
@@ -65,9 +68,6 @@ class _PopView implements ICenterPicker {
height:
13.5
,
child:
GestureDetector
(
onTap:
()
{
RouterCenterImpl
()
.
findMainRouter
()
.
buriedEvent
(
"popup_view"
,
{});
dismissCallback
();
},
child:
Image
.
asset
(
...
...
@@ -177,6 +177,19 @@ class _PopView implements ICenterPicker {
]);
}
Map
<
String
,
dynamic
>
phobosData
()
{
Map
<
String
,
dynamic
>
params
=
Map
();
params
[
'page_name'
]
=
this
.
pageName
;
if
(
this
.
hospitalId
.
length
>
0
)
{
params
[
'popup_name'
]
=
'interested_hospital'
;
}
else
if
(
this
.
doctorId
.
length
>
0
)
{
params
[
'popup_name'
]
=
'interested_doctor'
;
}
else
{
params
[
'popup_name'
]
=
'interested_plan'
;
}
return
params
;
}
@override
void
dispose
()
{
_model
.
dispose
();
...
...
lib/ClueModel/page/PlanCompareDetail/PlanCompareDetailPage.dart
View file @
2af42286
...
...
@@ -442,4 +442,3 @@ class PlanCompareDetailPageState extends BaseState<PlanCompareDetailPage> {
),
]));
}
}
lib/MainRouter/page/test/TestPage.dart
View file @
2af42286
...
...
@@ -70,7 +70,7 @@ class TestState extends BaseState<TestPage> {
RouterCenterImpl
().
findClueRouter
().
getTopPage
({
"rank_type"
:
"0"
}));
}));
list
.
add
(
listItem
(
"弹窗"
,
()
{
DiscussLowPricePopView
.
showPopView
(
context
,
"1"
,
""
,
"112"
);
DiscussLowPricePopView
.
showPopView
(
context
,
"
hahaha"
,
"
1"
,
""
,
"112"
);
}));
return
list
;
}
...
...
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