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
3a6cf206
Commit
3a6cf206
authored
Jul 07, 2020
by
朱璇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
接口修改
parent
7a4a74ac
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
13 deletions
+16
-13
PlanCompareDetailPage.dart
...ueModel/page/PlanCompareDetail/PlanCompareDetailPage.dart
+1
-1
ClueApi.dart
lib/ClueModel/server/api/ClueApi.dart
+2
-2
ClueApi.serv.dart
lib/ClueModel/server/api/ClueApi.serv.dart
+6
-7
TestPage.dart
lib/MainRouter/page/test/TestPage.dart
+7
-3
No files found.
lib/ClueModel/page/PlanCompareDetail/PlanCompareDetailPage.dart
View file @
3a6cf206
...
...
@@ -86,7 +86,7 @@ class PlanCompareDetailPageState extends BaseState<PlanCompareDetailPage> {
if
(
data
.
data
.
first
==
FAIL
)
{
return
errorItem
(
MediaQuery
.
of
(
context
).
size
.
width
,
MediaQuery
.
of
(
context
).
size
.
height
,
()
{
_model
.
init
(
[
1
,
2
]
);
_model
.
init
(
widget
.
_planIds
);
});
}
return
ListView
.
builder
(
...
...
lib/ClueModel/server/api/ClueApi.dart
View file @
3a6cf206
...
...
@@ -32,7 +32,7 @@ abstract class ClueApi {
LevelOneFeedList
getLevelOneList
(
@Query
(
"plan_id"
)
int
plan_id
,
@Query
(
"tab_type"
)
String
tab_type
,
@Query
(
"page"
)
int
page
);
@Get
(
"api/janus/plans/compare"
)
@Get
(
"api/janus/plans/
plan_
compare"
)
PlanCompareDetail
getPlanCompareDetail
(
@Query
(
"plan_ids"
)
List
<
int
>
planIds
);
@Get
(
"api/janus/plans/options"
)
...
...
@@ -55,7 +55,7 @@ abstract class ClueApi {
@Post
(
"api/janus/plans/plan_consult"
)
PlanConsultBean
sendMessage
(
@Query
(
"doctor_ids"
)
List
<
int
>
doctor_ids
,
@Query
(
"question"
)
String
question
,
@Query
(
"plan_id"
)
int
plan_id
);
@Get
(
"api/janus/plans/rank"
)
PlanBarBean
getPlanBar
(
@Query
(
"rank_type"
)
String
rank_type
);
...
...
lib/ClueModel/server/api/ClueApi.serv.dart
View file @
3a6cf206
...
...
@@ -25,7 +25,7 @@ import 'package:gm_flutter/ClueModel/server/entity/PlanConsultBean.dart';
import
'package:gm_flutter/ClueModel/server/entity/PlanBarBean.dart'
;
import
'package:gm_flutter/ClueModel/server/entity/DiscussLowPriceModelBean.dart'
;
import
'package:gm_flutter/ClueModel/server/entity/DiscussLowPriceAuthBean.dart'
;
import
'package:gm_flutter/ClueModel/server/entity/
PlanOverViewBean
.dart'
;
import
'package:gm_flutter/ClueModel/server/entity/
dynamic
.dart'
;
const
bool
inProduction
=
const
bool
.
fromEnvironment
(
"dart.vm.product"
);
...
...
@@ -91,7 +91,7 @@ class ClueApiImpl {
}
Stream
<
PlanCompareDetail
>
getPlanCompareDetail
(
Dio
_dio
,
List
<
int
>
planIds
)
{
return
Stream
.
fromFuture
(
get
(
_dio
,
'api/janus/plans/compare'
,
data:
{
return
Stream
.
fromFuture
(
get
(
_dio
,
'api/janus/plans/
plan_
compare'
,
data:
{
'plan_ids'
:
planIds
,
})).
flatMap
((
value
)
{
if
(
value
!=
null
&&
...
...
@@ -224,14 +224,13 @@ class ClueApiImpl {
});
}
Stream
<
PlanOverViewBean
>
getPlanOverView
(
Dio
_dio
,
int
plan_id
)
{
Stream
<
dynamic
>
getPlanOverView
(
Dio
_dio
,
int
plan_id
)
{
return
Stream
.
fromFuture
(
get
(
_dio
,
'api/janus/plans/plan_overview'
,
data:
{
'plan_id'
:
plan_id
,
})).
flatMap
((
value
)
{
if
(
value
!=
null
&&
(
value
.
statusCode
>=
200
&&
value
.
statusCode
<
300
))
{
return
Stream
.
fromFuture
(
compute
(
parsePlanOverViewBean
,
value
.
toString
()));
return
Stream
.
fromFuture
(
compute
(
parsedynamic
,
value
.
toString
()));
}
else
{
throw
Exception
(
"--未知网络错误--"
);
}
...
...
@@ -419,6 +418,6 @@ DiscussLowPriceAuthBean parseDiscussLowPriceAuthBean(String value) {
return
DiscussLowPriceAuthBean
.
fromJson
(
json
.
decode
(
value
));
}
PlanOverViewBean
parsePlanOverViewBean
(
String
value
)
{
return
PlanOverViewBean
.
fromJson
(
json
.
decode
(
value
));
dynamic
parsedynamic
(
String
value
)
{
return
dynamic
.
fromJson
(
json
.
decode
(
value
));
}
lib/MainRouter/page/test/TestPage.dart
View file @
3a6cf206
...
...
@@ -41,9 +41,13 @@ class TestState extends BaseState<TestPage> {
.
jumpPage
(
context
,
"plan_home"
,
{
"planId"
:
137
},
false
);
}));
list
.
add
(
listItem
(
"对比详情页"
,
()
{
RouterCenterImpl
()
.
findMainRouter
()
.
jumpPage
(
context
,
"level_one_plan_compare_detail"
,
{
"planId"
:
137
},
false
);
RouterCenterImpl
().
findMainRouter
().
jumpPage
(
context
,
"level_one_plan_compare_detail"
,
{
"planIds"
:
[
137
,
139
]
},
false
);
}));
list
.
add
(
listItem
(
"项目说明"
,
()
{
JumpUtil
.
jumpToPageRight
(
...
...
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