|
|
@ -5,6 +5,7 @@ import 'package:huixiang/utils/font_weight.dart'; |
|
|
|
|
|
|
|
|
|
|
|
import '../../retrofit/data/min_order_info.dart'; |
|
|
|
import '../../retrofit/data/min_order_info.dart'; |
|
|
|
import '../../retrofit/data/settleOrderInfo.dart'; |
|
|
|
import '../../retrofit/data/settleOrderInfo.dart'; |
|
|
|
|
|
|
|
import '../../retrofit/data/store_info.dart'; |
|
|
|
import '../../view_widget/settlement_tips_dialog.dart'; |
|
|
|
import '../../view_widget/settlement_tips_dialog.dart'; |
|
|
|
|
|
|
|
|
|
|
|
class VipDiscountsSelect extends StatefulWidget { |
|
|
|
class VipDiscountsSelect extends StatefulWidget { |
|
|
@ -12,8 +13,9 @@ class VipDiscountsSelect extends StatefulWidget { |
|
|
|
final SettleOrderInfo settleOrderInfo; |
|
|
|
final SettleOrderInfo settleOrderInfo; |
|
|
|
final MinOrderInfo minOrderInfo; |
|
|
|
final MinOrderInfo minOrderInfo; |
|
|
|
final int payChannel; |
|
|
|
final int payChannel; |
|
|
|
|
|
|
|
final StoreInfo storeInfo; |
|
|
|
|
|
|
|
|
|
|
|
VipDiscountsSelect(this.vipSelectCheck,this.settleOrderInfo,this.minOrderInfo,this.payChannel); |
|
|
|
VipDiscountsSelect(this.vipSelectCheck,this.settleOrderInfo,this.minOrderInfo,this.payChannel,this.storeInfo); |
|
|
|
|
|
|
|
|
|
|
|
@override |
|
|
|
@override |
|
|
|
State<StatefulWidget> createState() { |
|
|
|
State<StatefulWidget> createState() { |
|
|
@ -48,7 +50,7 @@ class _VipDiscountsSelect extends State<VipDiscountsSelect> { |
|
|
|
), |
|
|
|
), |
|
|
|
child: Column( |
|
|
|
child: Column( |
|
|
|
children: [ |
|
|
|
children: [ |
|
|
|
Padding(padding:EdgeInsets.only(bottom: 14.h), |
|
|
|
Padding(padding:EdgeInsets.only(bottom: (widget?.storeInfo?.usePlatformVip ?? false) == true ? 14.h :0), |
|
|
|
child: GestureDetector( |
|
|
|
child: GestureDetector( |
|
|
|
onTap: (){ |
|
|
|
onTap: (){ |
|
|
|
setState(() { |
|
|
|
setState(() { |
|
|
@ -89,7 +91,7 @@ class _VipDiscountsSelect extends State<VipDiscountsSelect> { |
|
|
|
], |
|
|
|
], |
|
|
|
), |
|
|
|
), |
|
|
|
),), |
|
|
|
),), |
|
|
|
if((widget?.settleOrderInfo?.isVipDay?? false) == true) |
|
|
|
if((widget?.settleOrderInfo?.isVipDay?? false) == true || (widget?.storeInfo?.usePlatformVip ?? false) == true) |
|
|
|
Padding(padding:EdgeInsets.only(bottom: 14.h), |
|
|
|
Padding(padding:EdgeInsets.only(bottom: 14.h), |
|
|
|
child: GestureDetector( |
|
|
|
child: GestureDetector( |
|
|
|
onTap: (){ |
|
|
|
onTap: (){ |
|
|
@ -131,6 +133,7 @@ class _VipDiscountsSelect extends State<VipDiscountsSelect> { |
|
|
|
], |
|
|
|
], |
|
|
|
), |
|
|
|
), |
|
|
|
),), |
|
|
|
),), |
|
|
|
|
|
|
|
if((widget?.storeInfo?.usePlatformVip ?? false) == true) |
|
|
|
GestureDetector( |
|
|
|
GestureDetector( |
|
|
|
onTap: (){ |
|
|
|
onTap: (){ |
|
|
|
setState(() { |
|
|
|
setState(() { |
|
|
|