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
735d25bd
Commit
735d25bd
authored
Jul 11, 2020
by
林生雨
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'featrue/duxin' into 'test'
Featrue/duxin See merge request
!36
parents
4759f490
db521a6e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
7 deletions
+13
-7
MechanismBoxPage.dart
lib/ClueModel/page/mechanismBox/MechanismBoxPage.dart
+10
-4
TestPage.dart
lib/MainRouter/page/test/TestPage.dart
+3
-3
No files found.
lib/ClueModel/page/mechanismBox/MechanismBoxPage.dart
View file @
735d25bd
...
...
@@ -173,8 +173,11 @@ class MechanismBox implements IBottomPicker {
// 机构列表
Widget
mechanismList
(
mq
,
keyHeight
)
{
Hospital
firstHospital
=
_levelModel
.
cardsLive
.
data
[
0
].
hospital
;
firstHospital
.
isCheck
=
true
;
doctor_ids
.
add
(
firstHospital
.
doctorId
);
return
Container
(
height:
mq
.
size
.
height
-
140
-
96
-
50
-
keyHeight
,
height:
mq
.
size
.
height
-
286
-
keyHeight
,
width:
mq
.
size
.
width
,
padding:
EdgeInsets
.
only
(
left:
15
,
right:
15
),
child:
baseRefreshView
(
refreshController
,
()
{},
null
,
null
,
...
...
@@ -201,7 +204,7 @@ class MechanismBox implements IBottomPicker {
}
if
(
_levelModel
.
data
[
index
].
cardType
==
'hospital'
)
{
return
HospitalItem
(
_levelModel
.
data
[
index
].
hospital
);
_levelModel
.
data
[
index
].
hospital
,
index
);
}
else
{
return
Container
();
}
...
...
@@ -218,11 +221,11 @@ class MechanismBox implements IBottomPicker {
}
// 机构卡片
Widget
HospitalItem
(
Hospital
hospital
)
{
Widget
HospitalItem
(
Hospital
hospital
,
index
)
{
return
GestureDetector
(
behavior:
HitTestBehavior
.
opaque
,
onTap:
()
{
if
(
doctor_ids
.
indexOf
(
hospital
.
doctorId
)
!=
-
1
)
{
if
(
doctor_ids
.
contains
(
hospital
.
doctorId
)
)
{
doctor_ids
.
remove
(
hospital
.
doctorId
);
}
else
{
doctor_ids
.
add
(
hospital
.
doctorId
);
...
...
@@ -230,6 +233,9 @@ class MechanismBox implements IBottomPicker {
hospital
.
isCheck
=
!
hospital
.
isCheck
;
focusNode
.
unfocus
();
_levelModel
.
cardsLive
.
notifyView
(
_levelModel
.
cardsLive
.
data
);
if
(
doctor_ids
.
length
>
3
||
doctor_ids
.
length
==
0
)
{
NativeToast
.
showNativeToast
(
'请选择1-3个机构咨询'
);
}
},
child:
Container
(
height:
91.5
,
...
...
lib/MainRouter/page/test/TestPage.dart
View file @
735d25bd
...
...
@@ -30,12 +30,12 @@ class TestState extends BaseState<TestPage> {
list
.
add
(
listItem
(
"一级列表页"
,
()
{
RouterCenterImpl
()
.
findMainRouter
()
.
jumpPage
(
context
,
"level_one_plan_detail"
,
{
"planId"
:
13
7
},
false
);
.
jumpPage
(
context
,
"level_one_plan_detail"
,
{
"planId"
:
64
7
},
false
);
}));
list
.
add
(
listItem
(
"二级列表页"
,
()
{
RouterCenterImpl
()
.
findMainRouter
()
.
jumpPage
(
context
,
"level_two_plan_deatil"
,
{
"planId"
:
192
},
false
);
.
jumpPage
(
context
,
"level_two_plan_deatil"
,
{
"planId"
:
696
},
false
);
}));
list
.
add
(
listItem
(
"项目首页"
,
()
{
RouterCenterImpl
()
...
...
@@ -77,7 +77,7 @@ class TestState extends BaseState<TestPage> {
@override
Widget
buildItem
(
BuildContext
context
)
{
CacheManager
.
getInstance
().
get
(
MEMORY_CACHE
).
save
(
COOKIE
,
"_g
m_token=1da6071594101423; csrftoken=rUrkkYYMOVZfIIQnU2IH09QIGmsfe8tE; sessionid=uz7f70uap76r6og48znci5l2hbr9vm5c; _gtid=5af9a5deba8511ea8d4082a085c393c93393
"
);
"_g
tid=c14659b0c25b11ea80d77a872bf3b5437841;sessionid=0r8emll1qcqay0vz44hhgf4j1014vgxq;_gm_token=ba7e621594369445;
"
);
return
Scaffold
(
appBar:
baseAppBar
(
title:
"测试页面"
,
...
...
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