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
210bc473
Commit
210bc473
authored
Jul 07, 2020
by
林生雨
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'zx/gmFlutter' into 'test'
弹窗接口 See merge request
!16
parents
729f554d
04013f83
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
18 additions
and
11 deletions
+18
-11
DiscussLowPricePopView.dart
...lueModel/page/DiscussLowPrice/DiscussLowPricePopView.dart
+8
-3
PlanCompareDetailModel.dart
...eModel/page/PlanCompareDetail/PlanCompareDetailModel.dart
+1
-1
PlanCompareDetailPage.dart
...ueModel/page/PlanCompareDetail/PlanCompareDetailPage.dart
+4
-2
ClueApi.dart
lib/ClueModel/server/api/ClueApi.dart
+2
-2
ClueApi.serv.dart
lib/ClueModel/server/api/ClueApi.serv.dart
+2
-2
TestPage.dart
lib/MainRouter/page/test/TestPage.dart
+1
-1
No files found.
lib/ClueModel/page/DiscussLowPrice/DiscussLowPricePopView.dart
View file @
210bc473
...
@@ -15,14 +15,19 @@ import 'package:gm_flutter/commonModel/base/BaseUtil.dart';
...
@@ -15,14 +15,19 @@ import 'package:gm_flutter/commonModel/base/BaseUtil.dart';
import
'package:gm_flutter/main.mark.dart'
;
import
'package:gm_flutter/main.mark.dart'
;
class
DiscussLowPricePopView
{
class
DiscussLowPricePopView
{
static
void
showPopView
(
BuildContext
content
)
{
static
void
showPopView
(
BuildContext
content
,
String
planId
,
String
hospitalId
,
String
doctorId
)
{
BaseCenterPicker
()
BaseCenterPicker
()
..
setPicker
(
_PopView
())
..
setPicker
(
_PopView
(
planId
,
hospitalId
,
doctorId
))
..
show
(
content
);
..
show
(
content
);
}
}
}
}
class
_PopView
implements
ICenterPicker
{
class
_PopView
implements
ICenterPicker
{
String
planId
;
String
hospitalId
;
String
doctorId
;
_PopView
(
this
.
planId
,
this
.
hospitalId
,
this
.
doctorId
);
VoidCallback
dismissCallback
;
VoidCallback
dismissCallback
;
double
contentWidth
;
double
contentWidth
;
DiscussLowPriceModel
_model
=
new
DiscussLowPriceModel
();
DiscussLowPriceModel
_model
=
new
DiscussLowPriceModel
();
...
@@ -178,6 +183,6 @@ class _PopView implements ICenterPicker {
...
@@ -178,6 +183,6 @@ class _PopView implements ICenterPicker {
@override
@override
void
initState
(
VoidCallback
dismissCall
,
BuildContext
context
)
{
void
initState
(
VoidCallback
dismissCall
,
BuildContext
context
)
{
this
.
dismissCallback
=
dismissCall
;
this
.
dismissCallback
=
dismissCall
;
_model
.
fetchPopviewData
(
'1'
,
'2'
,
'3'
);
_model
.
fetchPopviewData
(
this
.
planId
,
this
.
hospitalId
,
this
.
doctorId
);
}
}
}
}
lib/ClueModel/page/PlanCompareDetail/PlanCompareDetailModel.dart
View file @
210bc473
...
@@ -20,7 +20,7 @@ class PlanCompareDetailModel extends BaseModel {
...
@@ -20,7 +20,7 @@ class PlanCompareDetailModel extends BaseModel {
RxDispose
rxDispose
=
RxDispose
();
RxDispose
rxDispose
=
RxDispose
();
void
init
(
List
<
int
>
planIds
)
{
void
init
(
String
planIds
)
{
ClueApiImpl
.
getInstance
()
ClueApiImpl
.
getInstance
()
.
getPlanCompareDetail
(
DioUtil
.
getInstance
().
getDio
(),
planIds
)
.
getPlanCompareDetail
(
DioUtil
.
getInstance
().
getDio
(),
planIds
)
.
listen
((
event
)
{
.
listen
((
event
)
{
...
...
lib/ClueModel/page/PlanCompareDetail/PlanCompareDetailPage.dart
View file @
210bc473
...
@@ -12,12 +12,14 @@ import 'package:gm_flutter/ClueModel/view/FiveStarView.dart';
...
@@ -12,12 +12,14 @@ import 'package:gm_flutter/ClueModel/view/FiveStarView.dart';
import
'package:gm_flutter/commonModel/base/BaseComponent.dart'
;
import
'package:gm_flutter/commonModel/base/BaseComponent.dart'
;
import
'package:gm_flutter/commonModel/base/BaseState.dart'
;
import
'package:gm_flutter/commonModel/base/BaseState.dart'
;
import
'package:gm_flutter/commonModel/bean/Pair.dart'
;
import
'package:gm_flutter/commonModel/bean/Pair.dart'
;
import
'dart:convert'
;
class
PlanCompareDetailPage
extends
StatefulWidget
{
class
PlanCompareDetailPage
extends
StatefulWidget
{
List
<
int
>
_planIds
;
String
_planIds
;
PlanCompareDetailPage
(
Map
<
String
,
dynamic
>
params
)
{
PlanCompareDetailPage
(
Map
<
String
,
dynamic
>
params
)
{
this
.
_planIds
=
params
[
"planIds"
];
String
planIds
=
json
.
encode
(
params
[
"planIds"
]);
this
.
_planIds
=
planIds
;
}
}
@override
@override
...
...
lib/ClueModel/server/api/ClueApi.dart
View file @
210bc473
...
@@ -33,7 +33,7 @@ abstract class ClueApi {
...
@@ -33,7 +33,7 @@ abstract class ClueApi {
@Query
(
"tab_type"
)
String
tab_type
,
@Query
(
"page"
)
int
page
);
@Query
(
"tab_type"
)
String
tab_type
,
@Query
(
"page"
)
int
page
);
@Get
(
"api/janus/plans/plan_compare"
)
@Get
(
"api/janus/plans/plan_compare"
)
PlanCompareDetail
getPlanCompareDetail
(
@Query
(
"plan_ids"
)
List
<
int
>
planIds
);
PlanCompareDetail
getPlanCompareDetail
(
@Query
(
"plan_ids"
)
String
planIds
);
@Get
(
"api/janus/plans/options"
)
@Get
(
"api/janus/plans/options"
)
PlanBean
getPlan
();
PlanBean
getPlan
();
...
@@ -59,7 +59,7 @@ abstract class ClueApi {
...
@@ -59,7 +59,7 @@ abstract class ClueApi {
@Get
(
"api/janus/plans/rank"
)
@Get
(
"api/janus/plans/rank"
)
PlanBarBean
getPlanBar
(
@Query
(
"rank_type"
)
String
rank_type
);
PlanBarBean
getPlanBar
(
@Query
(
"rank_type"
)
String
rank_type
);
@
Ge
t
(
"api/janus/plans/plan_phone_authorize"
)
@
Pos
t
(
"api/janus/plans/plan_phone_authorize"
)
DiscussLowPriceModelBean
getPopviewData
(
DiscussLowPriceModelBean
getPopviewData
(
@Query
(
"plan_id"
)
String
planId
,
@Query
(
"plan_id"
)
String
planId
,
@Query
(
"hospital_id"
)
String
hospitalId
,
@Query
(
"hospital_id"
)
String
hospitalId
,
...
...
lib/ClueModel/server/api/ClueApi.serv.dart
View file @
210bc473
...
@@ -89,7 +89,7 @@ class ClueApiImpl {
...
@@ -89,7 +89,7 @@ class ClueApiImpl {
});
});
}
}
Stream
<
PlanCompareDetail
>
getPlanCompareDetail
(
Dio
_dio
,
List
<
int
>
planIds
)
{
Stream
<
PlanCompareDetail
>
getPlanCompareDetail
(
Dio
_dio
,
String
planIds
)
{
return
Stream
.
fromFuture
(
get
(
_dio
,
'api/janus/plans/plan_compare'
,
data:
{
return
Stream
.
fromFuture
(
get
(
_dio
,
'api/janus/plans/plan_compare'
,
data:
{
'plan_ids'
:
planIds
,
'plan_ids'
:
planIds
,
})).
flatMap
((
value
)
{
})).
flatMap
((
value
)
{
...
@@ -192,7 +192,7 @@ class ClueApiImpl {
...
@@ -192,7 +192,7 @@ class ClueApiImpl {
Stream
<
DiscussLowPriceModelBean
>
getPopviewData
(
Stream
<
DiscussLowPriceModelBean
>
getPopviewData
(
Dio
_dio
,
String
planId
,
String
hospitalId
,
String
doctorId
)
{
Dio
_dio
,
String
planId
,
String
hospitalId
,
String
doctorId
)
{
return
Stream
.
fromFuture
(
return
Stream
.
fromFuture
(
ge
t
(
_dio
,
'api/janus/plans/plan_phone_authorize'
,
data:
{
pos
t
(
_dio
,
'api/janus/plans/plan_phone_authorize'
,
data:
{
'plan_id'
:
planId
,
'plan_id'
:
planId
,
'hospital_id'
:
hospitalId
,
'hospital_id'
:
hospitalId
,
'doctor_id'
:
doctorId
,
'doctor_id'
:
doctorId
,
...
...
lib/MainRouter/page/test/TestPage.dart
View file @
210bc473
...
@@ -68,7 +68,7 @@ class TestState extends BaseState<TestPage> {
...
@@ -68,7 +68,7 @@ class TestState extends BaseState<TestPage> {
RouterCenterImpl
().
findClueRouter
().
getTopPage
({
"rank_type"
:
"0"
}));
RouterCenterImpl
().
findClueRouter
().
getTopPage
({
"rank_type"
:
"0"
}));
}));
}));
list
.
add
(
listItem
(
"弹窗"
,
()
{
list
.
add
(
listItem
(
"弹窗"
,
()
{
DiscussLowPricePopView
.
showPopView
(
context
);
DiscussLowPricePopView
.
showPopView
(
context
,
"1"
,
""
,
"112"
);
}));
}));
return
list
;
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