Commit 33c53ac4 authored by 朱璇's avatar 朱璇

conflict fix

parents 6d481654 197b47af
...@@ -51,13 +51,16 @@ class _PopView implements ICenterPicker { ...@@ -51,13 +51,16 @@ class _PopView implements ICenterPicker {
RouterCenterImpl() RouterCenterImpl()
.findMainRouter() .findMainRouter()
.buriedEvent("popup_view", phobosData()); .buriedEvent("popup_view", phobosData());
return Opacity( return Opacity(
opacity: alp / 255.0, opacity: alp / 255.0,
child: Container( child: Container(
color: Colors.red,
width: contentWidth, width: contentWidth,
height: _model.popViewLive.data.second.title.length > 13 height: _model.popViewLive.data.second.title.length > 13
? 357.5 ? 367.5
: 305.5, : 310.5,
child: Stack( child: Stack(
alignment: AlignmentDirectional.topCenter, alignment: AlignmentDirectional.topCenter,
children: <Widget>[ children: <Widget>[
...@@ -68,8 +71,8 @@ class _PopView implements ICenterPicker { ...@@ -68,8 +71,8 @@ class _PopView implements ICenterPicker {
Positioned( Positioned(
top: 62.5, top: 62.5,
right: 20, right: 20,
width: 13.5, width: 15,
height: 13.5, height: 14,
child: GestureDetector( child: GestureDetector(
onTap: () { onTap: () {
dismissCallback(); dismissCallback();
...@@ -83,7 +86,7 @@ class _PopView implements ICenterPicker { ...@@ -83,7 +86,7 @@ class _PopView implements ICenterPicker {
decoration: BoxDecoration(boxShadow: [ decoration: BoxDecoration(boxShadow: [
BoxShadow( BoxShadow(
color: Colors.black12, color: Colors.black12,
offset: Offset(0.0, 3.0), offset: Offset(0.0, 1.0),
blurRadius: 15.0, blurRadius: 15.0,
spreadRadius: 1.0) spreadRadius: 1.0)
], shape: BoxShape.circle), ], shape: BoxShape.circle),
...@@ -110,7 +113,7 @@ class _PopView implements ICenterPicker { ...@@ -110,7 +113,7 @@ class _PopView implements ICenterPicker {
return Container( return Container(
width: contentWidth, width: contentWidth,
decoration: BoxDecoration( decoration: BoxDecoration(
borderRadius: BorderRadius.circular(7), borderRadius: BorderRadius.circular(10),
color: Colors.white, color: Colors.white,
), ),
child: Container( child: Container(
...@@ -152,8 +155,9 @@ class _PopView implements ICenterPicker { ...@@ -152,8 +155,9 @@ class _PopView implements ICenterPicker {
alignment: Alignment.center, alignment: Alignment.center,
margin: EdgeInsets.only(bottom: 25), margin: EdgeInsets.only(bottom: 25),
child: baseText( child: baseText(
_model.popViewLive.data.second.title, 18, Color(0xff464646), "${_model.popViewLive.data.second.title}", 18, Color(0xff464646),
bold: true, textAlign: TextAlign.center)), bold: true, textAlign: TextAlign.center,
maxLines: 2)),
Container( Container(
decoration: BoxDecoration( decoration: BoxDecoration(
borderRadius: BorderRadius.circular(7), borderRadius: BorderRadius.circular(7),
......
...@@ -68,7 +68,7 @@ class _PlansCompareFeedItemViewState ...@@ -68,7 +68,7 @@ class _PlansCompareFeedItemViewState
child: ClipRRect( child: ClipRRect(
borderRadius: BorderRadius.circular(4.0), borderRadius: BorderRadius.circular(4.0),
child: CachedNetworkImage( child: CachedNetworkImage(
imageUrl: widget.plan.projectImage, imageUrl: widget.plan.projectImage ?? "",
width: 50, width: 50,
height: 50, height: 50,
fit: BoxFit.cover, fit: BoxFit.cover,
...@@ -113,8 +113,8 @@ class _PlansCompareFeedItemViewState ...@@ -113,8 +113,8 @@ class _PlansCompareFeedItemViewState
children: <Widget>[ children: <Widget>[
baseText('¥${widget.plan.minPrice}-${widget.plan.maxPrice}', baseText('¥${widget.plan.minPrice}-${widget.plan.maxPrice}',
13, Color(0xFFFF5963)), 13, Color(0xFFFF5963)),
baseText("销量${NumPlanUtil.getSale(widget.plan.salesCount)}", baseText(
11, Color(0xFF666666)) "销量${widget.plan.salesCount}", 11, Color(0xFF666666))
], ],
) )
], ],
......
...@@ -16,7 +16,7 @@ class LevelOneItem extends StatelessWidget { ...@@ -16,7 +16,7 @@ class LevelOneItem extends StatelessWidget {
final Cards cards; final Cards cards;
VoidCallback lowPrice; VoidCallback lowPrice;
VoidCallback ask; VoidCallback ask;
VoidCallback compare; Function(int planId) compare;
Function(int planId) gotoPlan; Function(int planId) gotoPlan;
int position; int position;
String tabName; String tabName;
...@@ -342,8 +342,11 @@ class LevelOneItem extends StatelessWidget { ...@@ -342,8 +342,11 @@ class LevelOneItem extends StatelessWidget {
Positioned( Positioned(
left: 0, left: 0,
top: 15, top: 15,
child: baseText(cards.plan.planName, 15, Color(0xff282828), child: Container(
bold: true), width: 210,
child: baseText(cards.plan.planName, 15, Color(0xff282828),
bold: true),
),
), ),
Positioned( Positioned(
right: 0, right: 0,
...@@ -359,7 +362,8 @@ class LevelOneItem extends StatelessWidget { ...@@ -359,7 +362,8 @@ class LevelOneItem extends StatelessWidget {
) )
: baseText("¥", 12, Color(0xffFF5963)), : baseText("¥", 12, Color(0xffFF5963)),
baseText(price, price == "暂无报价" ? 13 : 15, baseText(price, price == "暂无报价" ? 13 : 15,
price == "暂无报价" ? Color(0xff999999) : Color(0xffFF5963)) price == "暂无报价" ? Color(0xff999999) : Color(0xffFF5963),
bold: price != "暂无报价")
], ],
), ),
), ),
...@@ -463,7 +467,9 @@ class LevelOneItem extends StatelessWidget { ...@@ -463,7 +467,9 @@ class LevelOneItem extends StatelessWidget {
child: baseText("去比较", 13, Color(0xff282828), bold: true), child: baseText("去比较", 13, Color(0xff282828), bold: true),
) )
], ],
).gestureDetector(compare); ).gestureDetector(() {
compare(cards.plan.plan_id);
});
} }
Widget DiaryItem(BuildContext context) { Widget DiaryItem(BuildContext context) {
......
...@@ -157,7 +157,7 @@ class LevelOneListState extends State<LevelOneList> ...@@ -157,7 +157,7 @@ class LevelOneListState extends State<LevelOneList>
..show(context); ..show(context);
} }
}, },
compare: () { compare: (int planId) {
var data2 = _model.data[index]; var data2 = _model.data[index];
if (data2.cardType == "doctor") { if (data2.cardType == "doctor") {
buried_on_click_button(index, "compare", "doctor", buried_on_click_button(index, "compare", "doctor",
...@@ -172,15 +172,15 @@ class LevelOneListState extends State<LevelOneList> ...@@ -172,15 +172,15 @@ class LevelOneListState extends State<LevelOneList>
Map<String, dynamic> map = { Map<String, dynamic> map = {
"business_id": "${widget.planId}", "business_id": "${widget.planId}",
"planId": widget.planId, "planId": planId,
"planType": widget.index == 0 ? 1 : 2 "planType": 2
}; };
RouterCenterImpl().findMainRouter().jumpPage( RouterCenterImpl().findMainRouter().jumpPage(
context, context,
widget.index == 0 widget.index == 0
? "level_one_plan_compare" ? "level_one_plan_compare"
: "level_two_plan_compare", : "level_two_plan_compare",
map, {"planId": planId, "planType": 2},
false); false);
}, },
tabName: _model.tab_type, tabName: _model.tab_type,
......
...@@ -329,7 +329,7 @@ class LevelOneState extends BaseState<LevelOnePage> ...@@ -329,7 +329,7 @@ class LevelOneState extends BaseState<LevelOnePage>
right: 15, right: 15,
bottom: 8, bottom: 8,
child: baseText( child: baseText(
"销量${NumPlanUtil.getSale(_model.planoverItem.salesCount)}", "销量${_model.planoverItem.salesCount}",
11, 11,
Color(0xff666666)), Color(0xff666666)),
) )
......
...@@ -88,8 +88,9 @@ class PlanItem extends StatelessWidget { ...@@ -88,8 +88,9 @@ class PlanItem extends StatelessWidget {
borderRadius: BorderRadius.circular(2), borderRadius: BorderRadius.circular(2),
color: Color(0xffF0F9F7)), color: Color(0xffF0F9F7)),
alignment: Alignment.center, alignment: Alignment.center,
child: child: baseText(
baseText("??", 11, Color(0xff3FB5AF), bold: true), "${plans.operation_type}", 11, Color(0xff3FB5AF),
bold: true),
), ),
) )
], ],
...@@ -116,7 +117,7 @@ class PlanItem extends StatelessWidget { ...@@ -116,7 +117,7 @@ class PlanItem extends StatelessWidget {
Positioned( Positioned(
bottom: 14, bottom: 14,
right: 10, right: 10,
child: baseText("销量${NumPlanUtil.getSale(plans.salesCount)}", child: baseText("销量${plans.salesCount}",
11, Color(0xff282828)), 11, Color(0xff282828)),
), ),
Positioned( Positioned(
......
...@@ -64,7 +64,7 @@ class PlanState extends BaseState<PlanPage> with TickerProviderStateMixin { ...@@ -64,7 +64,7 @@ class PlanState extends BaseState<PlanPage> with TickerProviderStateMixin {
@override @override
void initState() { void initState() {
print("LSY PLAN INIT "); print("LSY PLAN INIT ");
// DioUtil.getInstance().setProxy("172.30.9.128"); DioUtil.getInstance().setProxy("172.30.9.128");
_model.init(needCache: true); _model.init(needCache: true);
super.initState(); super.initState();
planBarView = planBarView =
...@@ -497,9 +497,8 @@ class PlanState extends BaseState<PlanPage> with TickerProviderStateMixin { ...@@ -497,9 +497,8 @@ class PlanState extends BaseState<PlanPage> with TickerProviderStateMixin {
boxShadow: [ boxShadow: [
BoxShadow( BoxShadow(
color: Colors.black12, color: Colors.black12,
offset: Offset(0.0, 1.0), //阴影xy轴偏移量 blurRadius: 0.5,
blurRadius: 1.0, //阴影模糊程度 spreadRadius: 0.5
spreadRadius: 1.0 //阴影扩散程度
) )
], ],
color: Colors.white, color: Colors.white,
......
...@@ -102,6 +102,7 @@ class Plans { ...@@ -102,6 +102,7 @@ class Plans {
String minPrice; String minPrice;
String maxPrice; String maxPrice;
String projectImage; String projectImage;
String operation_type;
Plans( Plans(
{this.id, {this.id,
...@@ -119,6 +120,7 @@ class Plans { ...@@ -119,6 +120,7 @@ class Plans {
cardType = json['card_type']; cardType = json['card_type'];
name = json['name']; name = json['name'];
positiveRate = json['positive_rate']; positiveRate = json['positive_rate'];
operation_type = json['operation_type'];
salesCount = json['sales_count']; salesCount = json['sales_count'];
baseAttrs = json['base_attrs'].cast<String>(); baseAttrs = json['base_attrs'].cast<String>();
minPrice = minPrice =
...@@ -132,6 +134,7 @@ class Plans { ...@@ -132,6 +134,7 @@ class Plans {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = new Map<String, dynamic>();
data['id'] = this.id; data['id'] = this.id;
data['card_type'] = this.cardType; data['card_type'] = this.cardType;
data['operation_type'] = this.operation_type;
data['name'] = this.name; data['name'] = this.name;
data['positive_rate'] = this.positiveRate; data['positive_rate'] = this.positiveRate;
data['sales_count'] = this.salesCount; data['sales_count'] = this.salesCount;
......
...@@ -432,9 +432,8 @@ Widget baseTabBar( ...@@ -432,9 +432,8 @@ Widget baseTabBar(
boxShadow: [ boxShadow: [
BoxShadow( BoxShadow(
color: Colors.black12, color: Colors.black12,
offset: Offset(0.0, 1.0), //阴影xy轴偏移量 blurRadius: 0.5,
blurRadius: 1.0, //阴影模糊程度 spreadRadius: 0.5
spreadRadius: 1.0 //阴影扩散程度
) )
], ],
), ),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment