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
2964573c
Commit
2964573c
authored
Jul 08, 2020
by
林生雨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commit
parent
11a4f46c
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
31 deletions
+18
-31
LevelOneItem.dart
lib/ClueModel/page/levelOne/LevelOneItem.dart
+7
-2
PlanItem.dart
lib/ClueModel/page/plan/PlanItem.dart
+8
-2
PlanPage.dart
lib/ClueModel/page/plan/PlanPage.dart
+0
-27
LevelOneFeedList.dart
lib/ClueModel/server/entity/LevelOneFeedList.dart
+3
-0
No files found.
lib/ClueModel/page/levelOne/LevelOneItem.dart
View file @
2964573c
...
@@ -17,8 +17,10 @@ class LevelOneItem extends StatelessWidget {
...
@@ -17,8 +17,10 @@ class LevelOneItem extends StatelessWidget {
VoidCallback
lowPrice
;
VoidCallback
lowPrice
;
VoidCallback
ask
;
VoidCallback
ask
;
VoidCallback
compare
;
VoidCallback
compare
;
Function
(
int
planId
)
gotoPlan
;
LevelOneItem
(
this
.
cards
,
{
this
.
lowPrice
,
this
.
ask
,
this
.
compare
});
LevelOneItem
(
this
.
cards
,
{
this
.
lowPrice
,
this
.
ask
,
this
.
compare
,
this
.
gotoPlan
});
@override
@override
Widget
build
(
BuildContext
context
)
{
Widget
build
(
BuildContext
context
)
{
...
@@ -287,7 +289,10 @@ class LevelOneItem extends StatelessWidget {
...
@@ -287,7 +289,10 @@ class LevelOneItem extends StatelessWidget {
)
)
],
],
),
),
);
).
gestureDetector
(()
{
RouterCenterImpl
().
findMainRouter
().
jumpPage
(
context
,
"level_two_plan_deatil"
,
{
"planId"
:
cards
.
plan
.
plan_id
},
false
);
});
}
}
Widget
lowPriceWidget
()
{
Widget
lowPriceWidget
()
{
...
...
lib/ClueModel/page/plan/PlanItem.dart
View file @
2964573c
...
@@ -7,6 +7,8 @@ import 'package:flutter/cupertino.dart';
...
@@ -7,6 +7,8 @@ import 'package:flutter/cupertino.dart';
import
'package:flutter/material.dart'
;
import
'package:flutter/material.dart'
;
import
'package:gm_flutter/ClueModel/server/entity/PlanFeedBean.dart'
;
import
'package:gm_flutter/ClueModel/server/entity/PlanFeedBean.dart'
;
import
'package:gm_flutter/commonModel/base/BaseComponent.dart'
;
import
'package:gm_flutter/commonModel/base/BaseComponent.dart'
;
import
'package:gm_flutter/commonModel/util/DartUtil.dart'
;
import
'package:gm_flutter/main.mark.dart'
;
class
PlanItem
extends
StatelessWidget
{
class
PlanItem
extends
StatelessWidget
{
final
Plans
plans
;
final
Plans
plans
;
...
@@ -104,11 +106,15 @@ class PlanItem extends StatelessWidget {
...
@@ -104,11 +106,15 @@ class PlanItem extends StatelessWidget {
Positioned
(
Positioned
(
left:
92
,
left:
92
,
top:
36
,
top:
36
,
child:
baseText
(
"
${stringBuffer.toString()}
"
,
11
,
Color
(
0xff999999
)),
child:
baseText
(
"
${stringBuffer.toString()}
"
,
11
,
Color
(
0xff999999
)),
)
)
],
],
),
),
),
),
);
).
gestureDetector
(()
{
RouterCenterImpl
().
findMainRouter
().
jumpPage
(
context
,
"level_one_plan_detail"
,
{
"planId"
:
plans
.
id
},
false
);
});
}
}
}
}
lib/ClueModel/page/plan/PlanPage.dart
View file @
2964573c
...
@@ -48,7 +48,6 @@ class PlanState extends BaseState<PlanPage> with TickerProviderStateMixin {
...
@@ -48,7 +48,6 @@ class PlanState extends BaseState<PlanPage> with TickerProviderStateMixin {
TextEditingController
_editingController
=
TextEditingController
();
TextEditingController
_editingController
=
TextEditingController
();
FocusNode
focusNode
=
FocusNode
();
FocusNode
focusNode
=
FocusNode
();
RefreshController
refreshController
=
RefreshController
();
RefreshController
refreshController
=
RefreshController
();
List
<
Widget
>
planList
=
List
();
BaseMenuListener
projectMenuListener
=
BaseMenuListener
();
BaseMenuListener
projectMenuListener
=
BaseMenuListener
();
BaseMenuListener
sortMenuListener
=
BaseMenuListener
();
BaseMenuListener
sortMenuListener
=
BaseMenuListener
();
...
@@ -66,9 +65,6 @@ class PlanState extends BaseState<PlanPage> with TickerProviderStateMixin {
...
@@ -66,9 +65,6 @@ class PlanState extends BaseState<PlanPage> with TickerProviderStateMixin {
_model
.
init
();
_model
.
init
();
planBarView
=
planBarView
=
PlanBarView
(
_model
.
managerLive
,
clickIndex
,
hideAllMenuListener
);
PlanBarView
(
_model
.
managerLive
,
clickIndex
,
hideAllMenuListener
);
planList
.
add
(
towPic
().
toActive
());
planList
.
add
(
planBar
().
toActive
());
planList
.
add
(
pages
());
}
}
@override
@override
...
@@ -607,27 +603,4 @@ class PlanState extends BaseState<PlanPage> with TickerProviderStateMixin {
...
@@ -607,27 +603,4 @@ class PlanState extends BaseState<PlanPage> with TickerProviderStateMixin {
},
},
);
);
}
}
void
_onScroll
(
double
offset
)
{
var
topPos
=
PosUtil
.
findPos
(
globalKey
);
if
(
topPos
!=
null
)
{
if
(
topPos
.
dy
>
topHeight
)
{
_model
.
showTab
.
notifyView
(
false
);
}
else
{
_model
.
showTab
.
notifyView
(
true
);
}
}
// if (topPos != null && topPos.dy < 0) {
// double dy = -topPos.dy;
// if (dy < 20) {
// dy = 0;
// }
// double alpha = dy / 112;
// if (alpha < 0) {
// alpha = 0;
// } else if (alpha > 1) {
// alpha = 1;
// }
// _model.showTab.notifyView(alpha);
}
}
}
lib/ClueModel/server/entity/LevelOneFeedList.dart
View file @
2964573c
...
@@ -119,6 +119,7 @@ class Cards {
...
@@ -119,6 +119,7 @@ class Cards {
}
}
class
Plan
{
class
Plan
{
int
plan_id
;
String
planName
;
String
planName
;
String
minPrice
;
String
minPrice
;
String
maxPrice
;
String
maxPrice
;
...
@@ -142,6 +143,7 @@ class Plan {
...
@@ -142,6 +143,7 @@ class Plan {
Plan
.
fromJson
(
Map
<
String
,
dynamic
>
json
)
{
Plan
.
fromJson
(
Map
<
String
,
dynamic
>
json
)
{
planName
=
json
[
'plan_name'
];
planName
=
json
[
'plan_name'
];
plan_id
=
json
[
'plan_id'
];
minPrice
=
json
[
'min_price'
];
minPrice
=
json
[
'min_price'
];
maxPrice
=
json
[
'max_price'
];
maxPrice
=
json
[
'max_price'
];
positiveRate
=
json
[
'positive_rate'
];
positiveRate
=
json
[
'positive_rate'
];
...
@@ -162,6 +164,7 @@ class Plan {
...
@@ -162,6 +164,7 @@ class Plan {
data
[
'plan_name'
]
=
this
.
planName
;
data
[
'plan_name'
]
=
this
.
planName
;
data
[
'min_price'
]
=
this
.
minPrice
;
data
[
'min_price'
]
=
this
.
minPrice
;
data
[
'max_price'
]
=
this
.
maxPrice
;
data
[
'max_price'
]
=
this
.
maxPrice
;
data
[
'plan_id'
]
=
this
.
plan_id
;
data
[
'positive_rate'
]
=
this
.
positiveRate
;
data
[
'positive_rate'
]
=
this
.
positiveRate
;
data
[
'sales_count'
]
=
this
.
salesCount
;
data
[
'sales_count'
]
=
this
.
salesCount
;
if
(
this
.
baseAttrs
!=
null
)
{
if
(
this
.
baseAttrs
!=
null
)
{
...
...
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