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
4146105c
Commit
4146105c
authored
Jul 11, 2020
by
林生雨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
W
parent
1af25d1f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
12 deletions
+26
-12
ProjectDetailsItemView.dart
...ClueModel/page/ProjectDetails/ProjectDetailsItemView.dart
+5
-2
LevelOneItem.dart
lib/ClueModel/page/levelOne/LevelOneItem.dart
+21
-10
No files found.
lib/ClueModel/page/ProjectDetails/ProjectDetailsItemView.dart
View file @
4146105c
...
...
@@ -7,6 +7,7 @@ import 'package:flutter/cupertino.dart';
import
'package:flutter/material.dart'
;
import
'package:gm_flutter/ClueModel/server/entity/ProjectDetailsItem.dart'
;
import
'package:gm_flutter/commonModel/base/BaseComponent.dart'
;
import
'package:gm_flutter/commonModel/util/DartUtil.dart'
;
class
ProjectDetailsItemView
extends
StatelessWidget
{
Groups
listData
;
...
...
@@ -53,14 +54,16 @@ class ProjectDetailsItemView extends StatelessWidget {
Container
(
margin:
EdgeInsets
.
only
(
right:
25.0
,
left:
15
,
bottom:
25
),
width:
78
,
child:
baseText
(
attrs
.
attrName
,
13
,
Color
(
0xFF999999
),
child:
baseText
(
attrs
.
attrName
.
empty
()
?
"无"
:
attrs
.
attrName
,
13
,
Color
(
0xFF999999
),
textAlign:
TextAlign
.
start
,
maxLines:
2
,
overflow:
TextOverflow
.
ellipsis
)),
Expanded
(
child:
Container
(
margin:
EdgeInsets
.
only
(
right:
15
,
bottom:
25
),
child:
baseText
(
attrs
.
attrValue
,
14
,
Color
(
0xFF282828
),
child:
baseText
(
attrs
.
attrValue
.
empty
()
?
"无"
:
attrs
.
attrValue
,
14
,
Color
(
0xFF282828
),
textAlign:
TextAlign
.
start
,
maxLines:
2
,
overflow:
TextOverflow
.
ellipsis
)),
...
...
lib/ClueModel/page/levelOne/LevelOneItem.dart
View file @
4146105c
...
...
@@ -67,6 +67,7 @@ class LevelOneItem extends StatelessWidget {
if
(
cards
.
doctor
==
null
&&
isDebug
)
{
throw
new
Exception
();
}
var
price
=
NumPlanUtil
.
getPrice
(
cards
.
doctor
.
minPrice
,
cards
.
doctor
.
maxPrice
);
return
GestureDetector
(
behavior:
HitTestBehavior
.
opaque
,
onTap:
()
{
...
...
@@ -126,9 +127,15 @@ class LevelOneItem extends StatelessWidget {
crossAxisAlignment:
CrossAxisAlignment
.
end
,
mainAxisSize:
MainAxisSize
.
min
,
children:
<
Widget
>[
baseText
(
"¥"
,
12
,
Color
(
0xffFF5963
)),
baseText
(
"
${cards.doctor.minPrice}
-
${cards.doctor.maxPrice}
"
,
15
,
Color
(
0xffFF5963
)),
price
==
"暂无报价"
?
Container
(
width:
0
,
height:
0
,
)
:
baseText
(
"¥"
,
12
,
Color
(
0xffFF5963
)),
baseText
(
price
,
price
==
"暂无报价"
?
13
:
15
,
price
==
"暂无报价"
?
Color
(
0xff999999
)
:
Color
(
0xffFF5963
),
bold:
price
!=
"暂无报价"
)
],
),
),
...
...
@@ -186,6 +193,7 @@ class LevelOneItem extends StatelessWidget {
if
(
cards
.
hospital
==
null
&&
isDebug
)
{
throw
new
Exception
();
}
var
price
=
NumPlanUtil
.
getPrice
(
cards
.
hospital
.
minPrice
,
cards
.
hospital
.
maxPrice
);
return
GestureDetector
(
behavior:
HitTestBehavior
.
opaque
,
onTap:
()
{
...
...
@@ -232,12 +240,15 @@ class LevelOneItem extends StatelessWidget {
crossAxisAlignment:
CrossAxisAlignment
.
end
,
mainAxisSize:
MainAxisSize
.
min
,
children:
<
Widget
>[
baseText
(
"¥"
,
12
,
Color
(
0xffFF5963
)),
baseText
(
"
${cards.hospital.minPrice}
-
${cards.hospital.maxPrice}
"
,
15
,
Color
(
0xffFF5963
),
bold:
true
),
price
==
"暂无报价"
?
Container
(
width:
0
,
height:
0
,
)
:
baseText
(
"¥"
,
12
,
Color
(
0xffFF5963
)),
baseText
(
price
,
price
==
"暂无报价"
?
13
:
15
,
price
==
"暂无报价"
?
Color
(
0xff999999
)
:
Color
(
0xffFF5963
),
bold:
price
!=
"暂无报价"
)
],
),
),
...
...
@@ -354,7 +365,7 @@ class LevelOneItem extends StatelessWidget {
top:
40
,
right:
0
,
child:
baseText
(
"指导价:
${cards.plan.guide_price}
"
,
11
,
Color
(
0xff666666
)),
"指导价:
${cards.plan.guide_price
??"暂无报价"
}
"
,
11
,
Color
(
0xff666666
)),
),
Positioned
(
left:
0
,
...
...
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