|
...
|
...
|
@@ -1702,7 +1702,8 @@ class DialogUtil { |
|
|
|
}
|
|
|
|
|
|
|
|
//余额充值确认弹框
|
|
|
|
static showRechargeConfirmDialog(BuildContext context, String title,
|
|
|
|
static showRechargeConfirmDialog(
|
|
|
|
BuildContext context, String title, String subTitle,
|
|
|
|
{GestureTapCallback? onTapLeft, GestureTapCallback? onTapRight}) {
|
|
|
|
return showDialog(
|
|
|
|
context: context,
|
|
...
|
...
|
@@ -1746,7 +1747,8 @@ class DialogUtil { |
|
|
|
VEmptyView(28),
|
|
|
|
Container(
|
|
|
|
alignment: Alignment.center,
|
|
|
|
child: Text('为客户赵先生 ${title}1000元',
|
|
|
|
child: Text(
|
|
|
|
'为客户赵先生 ${title}${subTitle}',
|
|
|
|
style: TextStyle(
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
color: MyColours.color_515151,
|
|
...
|
...
|
@@ -2061,7 +2063,7 @@ class DialogUtil { |
|
|
|
Navigator.pop(context);
|
|
|
|
}
|
|
|
|
showRechargeConfirmDialog(
|
|
|
|
context, '充值金额');
|
|
|
|
context, '充值金额', '1000元');
|
|
|
|
})),
|
|
|
|
],
|
|
|
|
),
|
|
...
|
...
|
@@ -2108,7 +2110,104 @@ class DialogUtil { |
|
|
|
color: MyColours.color_515151,
|
|
|
|
fontSize: font(16)))),
|
|
|
|
VEmptyView(30),
|
|
|
|
rechargeItem(context, subTitle, '元'),
|
|
|
|
rechargeItem(context, subTitle,
|
|
|
|
title == '扣除积分' ? "个" : '元'),
|
|
|
|
// VEmptyView(30),
|
|
|
|
rechargeWidget('备注', '请输入备注',
|
|
|
|
TextEditingController(), FocusNode()),
|
|
|
|
])),
|
|
|
|
MyDivider(double.infinity, w(1),
|
|
|
|
color: MyColours.color_DBDBDB),
|
|
|
|
Row(
|
|
|
|
// mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
children: [
|
|
|
|
Expanded(
|
|
|
|
flex: 1,
|
|
|
|
child: RoundButton(
|
|
|
|
text: '取消',
|
|
|
|
// width: (ScreenUtil().screenWidth -
|
|
|
|
// ScreenUtil().setWidth(62) * 2) /
|
|
|
|
// 2,
|
|
|
|
height: ScreenUtil().setWidth(112),
|
|
|
|
// radius: ScreenUtil().setWidth(10),
|
|
|
|
gradientStart: Colors.transparent,
|
|
|
|
gradientEnd: Colors.transparent,
|
|
|
|
textColor: MyColours.color_515151,
|
|
|
|
isBold: false,
|
|
|
|
fontSize: 32,
|
|
|
|
onPressed: () {
|
|
|
|
Navigator.pop(context);
|
|
|
|
})),
|
|
|
|
MyDivider(ScreenUtil().setWidth(2),
|
|
|
|
ScreenUtil().setWidth(112),
|
|
|
|
color: MyColours.color_DBDBDB),
|
|
|
|
Expanded(
|
|
|
|
flex: 1,
|
|
|
|
child: RoundButton(
|
|
|
|
text: '确定',
|
|
|
|
// width: (ScreenUtil().screenWidth -
|
|
|
|
// ScreenUtil().setWidth(62) * 2) /
|
|
|
|
// 2,
|
|
|
|
height: ScreenUtil().setWidth(112),
|
|
|
|
// radius: ScreenUtil().setWidth(10),
|
|
|
|
gradientStart: Colors.transparent,
|
|
|
|
gradientEnd: Colors.transparent,
|
|
|
|
textColor: MyColours.color_438E93,
|
|
|
|
isBold: true,
|
|
|
|
fontSize: 32,
|
|
|
|
onPressed: () {
|
|
|
|
if (Navigator.canPop(context)) {
|
|
|
|
Navigator.pop(context);
|
|
|
|
}
|
|
|
|
showRechargeConfirmDialog(
|
|
|
|
context, '扣除积分', '1000个');
|
|
|
|
})),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
])));
|
|
|
|
}));
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
//发放积分弹框
|
|
|
|
static showGiveIntegralDialog(
|
|
|
|
BuildContext context, String title, CustomCallBack callback,
|
|
|
|
{GestureTapCallback? onTapLeft, GestureTapCallback? onTapRight}) {
|
|
|
|
return showDialog(
|
|
|
|
context: context,
|
|
|
|
barrierDismissible: true,
|
|
|
|
builder: (BuildContext context) {
|
|
|
|
return Center(child: StatefulBuilder(builder: (context, state) {
|
|
|
|
// locationState = state;
|
|
|
|
return Material(
|
|
|
|
color: Colors.transparent,
|
|
|
|
child: Container(
|
|
|
|
width: double.infinity,
|
|
|
|
margin: EdgeInsets.symmetric(horizontal: w(37)),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
color: MyColours.color_ffffff,
|
|
|
|
borderRadius: BorderRadius.circular(
|
|
|
|
r(8),
|
|
|
|
)),
|
|
|
|
child: Column(
|
|
|
|
mainAxisSize: MainAxisSize.min,
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
children: <Widget>[
|
|
|
|
Padding(
|
|
|
|
padding: EdgeInsets.symmetric(horizontal: w(20)),
|
|
|
|
child: Column(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
children: [
|
|
|
|
VEmptyView(40),
|
|
|
|
Container(
|
|
|
|
alignment: Alignment.center,
|
|
|
|
child: Text('发放积分',
|
|
|
|
style: TextStyle(
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
color: MyColours.color_515151,
|
|
|
|
fontSize: font(16)))),
|
|
|
|
VEmptyView(30),
|
|
|
|
rechargeItem(context, '发放数量', '个'),
|
|
|
|
// VEmptyView(30),
|
|
|
|
rechargeWidget('备注', '请输入备注',
|
|
|
|
TextEditingController(), FocusNode()),
|
|
...
|
...
|
@@ -2157,7 +2256,7 @@ class DialogUtil { |
|
|
|
Navigator.pop(context);
|
|
|
|
}
|
|
|
|
showRechargeConfirmDialog(
|
|
|
|
context, '扣除消费金');
|
|
|
|
context, '发放积分', '50个');
|
|
|
|
})),
|
|
|
|
],
|
|
|
|
),
|
|
...
|
...
|
@@ -2253,7 +2352,7 @@ class DialogUtil { |
|
|
|
Navigator.pop(context);
|
|
|
|
}
|
|
|
|
showRechargeConfirmDialog(
|
|
|
|
context, '发放消费金');
|
|
|
|
context, '发放消费金', '1000元');
|
|
|
|
})),
|
|
|
|
],
|
|
|
|
),
|
...
|
...
|
|