Commit 2af42286 authored by 林生雨's avatar 林生雨

Merge branch 'zx/gmFlutter' into 'test'

Zx/gm flutter

See merge request !18
parents e66cc63b 1794906e
...@@ -15,10 +15,10 @@ import 'package:gm_flutter/commonModel/base/BaseUtil.dart'; ...@@ -15,10 +15,10 @@ import 'package:gm_flutter/commonModel/base/BaseUtil.dart';
import 'package:gm_flutter/main.mark.dart'; import 'package:gm_flutter/main.mark.dart';
class DiscussLowPricePopView { class DiscussLowPricePopView {
static void showPopView( static void showPopView(BuildContext content, String pageName, String planId,
BuildContext content, String planId, String hospitalId, String doctorId) { String hospitalId, String doctorId) {
BaseCenterPicker() BaseCenterPicker()
..setPicker(_PopView(planId, hospitalId, doctorId)) ..setPicker(_PopView(pageName, planId, hospitalId, doctorId))
..show(content); ..show(content);
} }
} }
...@@ -27,7 +27,8 @@ class _PopView implements ICenterPicker { ...@@ -27,7 +27,8 @@ class _PopView implements ICenterPicker {
String planId; String planId;
String hospitalId; String hospitalId;
String doctorId; String doctorId;
_PopView(this.planId, this.hospitalId, this.doctorId); String pageName;
_PopView(this.pageName, this.planId, this.hospitalId, this.doctorId);
VoidCallback dismissCallback; VoidCallback dismissCallback;
double contentWidth; double contentWidth;
DiscussLowPriceModel _model = new DiscussLowPriceModel(); DiscussLowPriceModel _model = new DiscussLowPriceModel();
...@@ -45,7 +46,9 @@ class _PopView implements ICenterPicker { ...@@ -45,7 +46,9 @@ class _PopView implements ICenterPicker {
if (data.data.second == null || data.data.first == FAIL) { if (data.data.second == null || data.data.first == FAIL) {
return errorItem(contentWidth, 308.5, () {}); return errorItem(contentWidth, 308.5, () {});
} }
RouterCenterImpl().findMainRouter().buriedEvent("popup_view", {}); RouterCenterImpl()
.findMainRouter()
.buriedEvent("popup_view", phobosData());
return Opacity( return Opacity(
opacity: alp / 255.0, opacity: alp / 255.0,
child: Container( child: Container(
...@@ -65,9 +68,6 @@ class _PopView implements ICenterPicker { ...@@ -65,9 +68,6 @@ class _PopView implements ICenterPicker {
height: 13.5, height: 13.5,
child: GestureDetector( child: GestureDetector(
onTap: () { onTap: () {
RouterCenterImpl()
.findMainRouter()
.buriedEvent("popup_view", {});
dismissCallback(); dismissCallback();
}, },
child: Image.asset( child: Image.asset(
...@@ -177,6 +177,19 @@ class _PopView implements ICenterPicker { ...@@ -177,6 +177,19 @@ class _PopView implements ICenterPicker {
]); ]);
} }
Map<String, dynamic> phobosData() {
Map<String, dynamic> params = Map();
params['page_name'] = this.pageName;
if (this.hospitalId.length > 0) {
params['popup_name'] = 'interested_hospital';
} else if (this.doctorId.length > 0) {
params['popup_name'] = 'interested_doctor';
} else {
params['popup_name'] = 'interested_plan';
}
return params;
}
@override @override
void dispose() { void dispose() {
_model.dispose(); _model.dispose();
......
...@@ -442,4 +442,3 @@ class PlanCompareDetailPageState extends BaseState<PlanCompareDetailPage> { ...@@ -442,4 +442,3 @@ class PlanCompareDetailPageState extends BaseState<PlanCompareDetailPage> {
), ),
])); ]));
} }
}
...@@ -70,7 +70,7 @@ class TestState extends BaseState<TestPage> { ...@@ -70,7 +70,7 @@ class TestState extends BaseState<TestPage> {
RouterCenterImpl().findClueRouter().getTopPage({"rank_type": "0"})); RouterCenterImpl().findClueRouter().getTopPage({"rank_type": "0"}));
})); }));
list.add(listItem("弹窗", () { list.add(listItem("弹窗", () {
DiscussLowPricePopView.showPopView(context, "1", "", "112"); DiscussLowPricePopView.showPopView(context, "hahaha", "1", "", "112");
})); }));
return list; return list;
} }
......
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