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
b3998064
Commit
b3998064
authored
Jul 10, 2020
by
林生雨
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'featrue/duxin' into 'test'
hospitalid替换成doctorid See merge request
!27
parents
7c85e881
7e6281c5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
10 deletions
+7
-10
LevelTwoPage.dart
lib/ClueModel/page/levelTwo/LevelTwoPage.dart
+1
-3
MechanismBoxPage.dart
lib/ClueModel/page/mechanismBox/MechanismBoxPage.dart
+3
-7
LevelOneFeedList.dart
lib/ClueModel/server/entity/LevelOneFeedList.dart
+3
-0
No files found.
lib/ClueModel/page/levelTwo/LevelTwoPage.dart
View file @
b3998064
...
...
@@ -58,7 +58,6 @@ class LevelTwoState extends BaseState<LevelTwoPage>
@override
void
initState
()
{
// DioUtil.getInstance().setProxy("172.30.8.245");
super
.
initState
();
_model
.
plan_id
=
widget
.
planId
;
_model
.
init
(()
{
...
...
@@ -548,7 +547,7 @@ class LevelTwoState extends BaseState<LevelTwoPage>
context
,
widget
.
PAGE_NAME
,
"
${widget.planId}
"
,
""
,
""
);
},
child:
Container
(
margin:
EdgeInsets
.
only
(
left:
15
,
right:
15
),
margin:
EdgeInsets
.
only
(
left:
15
,
right:
15
),
width:
ScreenUtil
().
setWidth
(
137
),
height:
40
,
decoration:
BoxDecoration
(
...
...
@@ -557,7 +556,6 @@ class LevelTwoState extends BaseState<LevelTwoPage>
alignment:
Alignment
.
center
,
child:
baseText
(
"获取底价"
,
14
,
Colors
.
white
,
bold:
true
),
)),
],
),
);
...
...
lib/ClueModel/page/mechanismBox/MechanismBoxPage.dart
View file @
b3998064
...
...
@@ -226,10 +226,10 @@ class MechanismBox implements IBottomPicker {
behavior:
HitTestBehavior
.
opaque
,
onTap:
()
{
print
(
hospital
.
toJson
());
if
(
doctor_ids
.
indexOf
(
hospital
.
hosiptal
Id
)
!=
-
1
)
{
doctor_ids
.
remove
(
hospital
.
hosiptal
Id
);
if
(
doctor_ids
.
indexOf
(
hospital
.
doctor
Id
)
!=
-
1
)
{
doctor_ids
.
remove
(
hospital
.
doctor
Id
);
}
else
{
doctor_ids
.
add
(
hospital
.
hosiptal
Id
);
doctor_ids
.
add
(
hospital
.
doctor
Id
);
}
hospital
.
isCheck
=
!
hospital
.
isCheck
;
focusNode
.
unfocus
();
...
...
@@ -388,12 +388,8 @@ class MechanismBox implements IBottomPicker {
NativeToast
.
showNativeToast
(
'请选择1-3个机构咨询'
);
}
else
{
if
(
txt
.
isNotEmpty
)
{
print
(
doctor_ids
.
join
(
','
));
_model
.
sendMessage
(
doctor_ids
.
join
(
','
),
txt
,
plan_id
,
(
i
)
{
print
(
doctor_ids
);
print
(
txt
);
print
(
plan_id
);
if
(
i
==
0
)
{
dismissCall
();
textController
.
text
=
''
;
...
...
lib/ClueModel/server/entity/LevelOneFeedList.dart
View file @
b3998064
...
...
@@ -202,6 +202,7 @@ class BaseAttrs {
class
Hospital
{
String
portrait
;
String
hosiptalId
;
String
doctorId
;
String
name
;
String
minPrice
;
String
maxPrice
;
...
...
@@ -224,6 +225,7 @@ class Hospital {
Hospital
.
fromJson
(
Map
<
String
,
dynamic
>
json
)
{
portrait
=
json
[
'portrait'
];
hosiptalId
=
json
[
'hospital_id'
];
doctorId
=
json
[
'doctor_id'
];
name
=
json
[
'name'
];
minPrice
=
json
[
'min_price'
];
maxPrice
=
json
[
'max_price'
];
...
...
@@ -237,6 +239,7 @@ class Hospital {
final
Map
<
String
,
dynamic
>
data
=
new
Map
<
String
,
dynamic
>();
data
[
'portrait'
]
=
this
.
portrait
;
data
[
'hospital_id'
]
=
this
.
hosiptalId
;
data
[
'doctor_id'
]
=
this
.
doctorId
;
data
[
'name'
]
=
this
.
name
;
data
[
'min_price'
]
=
this
.
minPrice
;
data
[
'max_price'
]
=
this
.
maxPrice
;
...
...
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