Commit c693920a authored by 朱翠翠's avatar 朱翠翠

bugfix

parent 9d0c540f
......@@ -40,6 +40,7 @@ class _PlansCompareFeedItemViewState
}
getItem() {
_icon = widget.plan.isChecked ? _checked : _unchecked;
if (widget.plan.planType == 1) {
return getFirstLevelItem();
} else {
......@@ -200,12 +201,14 @@ class _PlansCompareFeedItemViewState
onClickCheckBox(String icon) {
if (icon == _checked) {
_icon = _unchecked;
widget.plan.isChecked = false;
} else {
if (widget._setCompare.length == 2) {
NativeToast.showNativeToast("请选择最多2个项目进行对比");
return;
}
_icon = _checked;
widget.plan.isChecked = true;
}
setState(() {
widget.compareItem.checkedItem(widget.plan.planId);
......
......@@ -86,6 +86,7 @@ class Plans {
String maxPrice;
String projectImage;
String guidePrice;
bool isChecked = false;
Plans(
{this.planId,
......
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