Commit 04013f83 authored by 朱璇's avatar 朱璇

弹窗接口

parent 4b531f2a
...@@ -18,12 +18,16 @@ class DiscussLowPricePopView { ...@@ -18,12 +18,16 @@ class DiscussLowPricePopView {
static void showPopView( static void showPopView(
BuildContext content, String planId, String hospitalId, String doctorId) { BuildContext content, String planId, String hospitalId, String doctorId) {
BaseCenterPicker() BaseCenterPicker()
..setPicker(_PopView()) ..setPicker(_PopView(planId, hospitalId, doctorId))
..show(content); ..show(content);
} }
} }
class _PopView implements ICenterPicker { class _PopView implements ICenterPicker {
String planId;
String hospitalId;
String doctorId;
_PopView(this.planId, this.hospitalId, this.doctorId);
VoidCallback dismissCallback; VoidCallback dismissCallback;
double contentWidth; double contentWidth;
DiscussLowPriceModel _model = new DiscussLowPriceModel(); DiscussLowPriceModel _model = new DiscussLowPriceModel();
...@@ -179,6 +183,6 @@ class _PopView implements ICenterPicker { ...@@ -179,6 +183,6 @@ class _PopView implements ICenterPicker {
@override @override
void initState(VoidCallback dismissCall, BuildContext context) { void initState(VoidCallback dismissCall, BuildContext context) {
this.dismissCallback = dismissCall; this.dismissCallback = dismissCall;
_model.fetchPopviewData('1', '', '3'); _model.fetchPopviewData(this.planId, this.hospitalId, this.doctorId);
} }
} }
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