|
...
|
...
|
@@ -6337,6 +6337,300 @@ class DialogUtil { |
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
///店铺临近过期弹窗
|
|
|
|
static cupertinoAlertSellerEdateDialog(BuildContext context,
|
|
|
|
{String title = "",
|
|
|
|
String content = "内容",
|
|
|
|
String lTitle = "我知道了",
|
|
|
|
String rTitle = "立即续费",
|
|
|
|
Color rColor = MyColours.color_438E93,
|
|
|
|
bool isBold = false,
|
|
|
|
bool isBoldContent = false,
|
|
|
|
Color contentColor = MyColours.color_99000000,
|
|
|
|
VoidCallback lCallback,
|
|
|
|
VoidCallback rCallback}) async {
|
|
|
|
// bool isRed = content != '' ? false : true;
|
|
|
|
final action = await showDialog(
|
|
|
|
context: context,
|
|
|
|
barrierDismissible: false,
|
|
|
|
builder: (BuildContext context) {
|
|
|
|
return StatefulBuilder(builder: (context, state) {
|
|
|
|
return Scaffold(
|
|
|
|
backgroundColor: Colors.transparent,
|
|
|
|
body: Center(
|
|
|
|
child: Container(
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal: ScreenUtil().setWidth(50)),
|
|
|
|
// height: ScreenUtil().setWidth(421 * 2),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
borderRadius:
|
|
|
|
BorderRadius.circular(ScreenUtil().setWidth(16))),
|
|
|
|
child: SingleChildScrollView(
|
|
|
|
child: Card(
|
|
|
|
shape: RoundedRectangleBorder(
|
|
|
|
borderRadius: BorderRadius.all(
|
|
|
|
Radius.circular(ScreenUtil().setWidth(10)))), //设置圆角
|
|
|
|
child: Container(
|
|
|
|
child: Column(
|
|
|
|
children: [
|
|
|
|
VEmptyView(64),
|
|
|
|
Container(
|
|
|
|
alignment: Alignment.center,
|
|
|
|
child: Text(title,
|
|
|
|
style: TextStyle(
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
fontSize: ScreenUtil().setSp(32),
|
|
|
|
color: MyColours.color_E5000000)),
|
|
|
|
),
|
|
|
|
VEmptyView(16),
|
|
|
|
Text(
|
|
|
|
'您的店铺即将在',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(32),
|
|
|
|
color: MyColours.color_515151),
|
|
|
|
),
|
|
|
|
VEmptyView(24),
|
|
|
|
Text(
|
|
|
|
'$content 过期',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(32),
|
|
|
|
color: MyColours.color_E34D59),
|
|
|
|
),
|
|
|
|
VEmptyView(24),
|
|
|
|
Text(
|
|
|
|
'请联系您的服务商或拨打',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(32),
|
|
|
|
color: MyColours.color_515151),
|
|
|
|
),
|
|
|
|
VEmptyView(24),
|
|
|
|
Text(
|
|
|
|
'400-000-9690 及时续费',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(32),
|
|
|
|
color: MyColours.color_515151),
|
|
|
|
),
|
|
|
|
VEmptyView(24),
|
|
|
|
Text(
|
|
|
|
'以免影响您的正常使用',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(32),
|
|
|
|
color: MyColours.color_515151),
|
|
|
|
),
|
|
|
|
VEmptyView(66),
|
|
|
|
MyDivider(double.infinity, ScreenUtil().setWidth(2),
|
|
|
|
color: MyColours.color_f3f3f3),
|
|
|
|
RoundButton(
|
|
|
|
text: lTitle,
|
|
|
|
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_E6000000,
|
|
|
|
isBold: false,
|
|
|
|
fontSize: 32,
|
|
|
|
onPressed: () {
|
|
|
|
Navigator.pop(context);
|
|
|
|
}),
|
|
|
|
// Row(
|
|
|
|
// // mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
// children: [
|
|
|
|
// RoundButton(
|
|
|
|
// text: lTitle,
|
|
|
|
// 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_E6000000,
|
|
|
|
// isBold: false,
|
|
|
|
// fontSize: 32,
|
|
|
|
// onPressed: () {
|
|
|
|
// Navigator.pop(context);
|
|
|
|
// }),
|
|
|
|
// MyDivider(ScreenUtil().setWidth(2),
|
|
|
|
// ScreenUtil().setWidth(112),
|
|
|
|
// color: MyColours.color_f3f3f3),
|
|
|
|
// RoundButton(
|
|
|
|
// text: rTitle,
|
|
|
|
// 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,
|
|
|
|
// fontSize: 32,
|
|
|
|
// onPressed: () {
|
|
|
|
// rCallback();
|
|
|
|
// Navigator.pop(
|
|
|
|
// context,
|
|
|
|
// );
|
|
|
|
// }),
|
|
|
|
// ],
|
|
|
|
// )
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
)),
|
|
|
|
),
|
|
|
|
));
|
|
|
|
});
|
|
|
|
},
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
///店铺临近过期弹窗
|
|
|
|
static cupertinoAlertSellerHasEdateDialog(BuildContext context,
|
|
|
|
{String title = "",
|
|
|
|
String content = "内容",
|
|
|
|
String lTitle = "我知道了",
|
|
|
|
String rTitle = "立即续费",
|
|
|
|
Color rColor = MyColours.color_438E93,
|
|
|
|
bool isBold = false,
|
|
|
|
bool isBoldContent = false,
|
|
|
|
Color contentColor = MyColours.color_99000000,
|
|
|
|
VoidCallback lCallback,
|
|
|
|
VoidCallback rCallback}) async {
|
|
|
|
// bool isRed = content != '' ? false : true;
|
|
|
|
final action = await showDialog(
|
|
|
|
context: context,
|
|
|
|
barrierDismissible: false,
|
|
|
|
builder: (BuildContext context) {
|
|
|
|
return StatefulBuilder(builder: (context, state) {
|
|
|
|
return Scaffold(
|
|
|
|
backgroundColor: Colors.transparent,
|
|
|
|
body: Center(
|
|
|
|
child: Container(
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal: ScreenUtil().setWidth(50)),
|
|
|
|
// height: ScreenUtil().setWidth(421 * 2),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
borderRadius:
|
|
|
|
BorderRadius.circular(ScreenUtil().setWidth(16))),
|
|
|
|
child: SingleChildScrollView(
|
|
|
|
child: Card(
|
|
|
|
shape: RoundedRectangleBorder(
|
|
|
|
borderRadius: BorderRadius.all(
|
|
|
|
Radius.circular(ScreenUtil().setWidth(10)))), //设置圆角
|
|
|
|
child: Container(
|
|
|
|
// padding: EdgeInsets.symmetric(horizontal: w(20)),
|
|
|
|
child: Column(
|
|
|
|
children: [
|
|
|
|
VEmptyView(64),
|
|
|
|
Container(
|
|
|
|
alignment: Alignment.center,
|
|
|
|
child: Text(title,
|
|
|
|
style: TextStyle(
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
fontSize: ScreenUtil().setSp(32),
|
|
|
|
color: MyColours.color_E5000000)),
|
|
|
|
),
|
|
|
|
VEmptyView(16),
|
|
|
|
Text(
|
|
|
|
'您的店铺已过期',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(32),
|
|
|
|
color: MyColours.color_E34D59),
|
|
|
|
),
|
|
|
|
VEmptyView(24),
|
|
|
|
Text(
|
|
|
|
'请联系您的服务商或拨打',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(32),
|
|
|
|
color: MyColours.color_515151),
|
|
|
|
),
|
|
|
|
VEmptyView(24),
|
|
|
|
Text(
|
|
|
|
'400-000-9690 及时续费',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(32),
|
|
|
|
color: MyColours.color_515151),
|
|
|
|
),
|
|
|
|
VEmptyView(24),
|
|
|
|
Text(
|
|
|
|
'以免影响您的正常使用',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(32),
|
|
|
|
color: MyColours.color_515151),
|
|
|
|
),
|
|
|
|
VEmptyView(66),
|
|
|
|
MyDivider(double.infinity, ScreenUtil().setWidth(2),
|
|
|
|
color: MyColours.color_f3f3f3),
|
|
|
|
RoundButton(
|
|
|
|
text: lTitle,
|
|
|
|
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_E6000000,
|
|
|
|
isBold: false,
|
|
|
|
fontSize: 32,
|
|
|
|
onPressed: () {
|
|
|
|
Navigator.pop(context);
|
|
|
|
lCallback();
|
|
|
|
}),
|
|
|
|
// Row(
|
|
|
|
// // mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
// children: [
|
|
|
|
// RoundButton(
|
|
|
|
// text: lTitle,
|
|
|
|
// 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_E6000000,
|
|
|
|
// isBold: false,
|
|
|
|
// fontSize: 32,
|
|
|
|
// onPressed: () {
|
|
|
|
// Navigator.pop(context);
|
|
|
|
// lCallback();
|
|
|
|
// }),
|
|
|
|
// MyDivider(ScreenUtil().setWidth(2),
|
|
|
|
// ScreenUtil().setWidth(112),
|
|
|
|
// color: MyColours.color_f3f3f3),
|
|
|
|
// RoundButton(
|
|
|
|
// text: rTitle,
|
|
|
|
// 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,
|
|
|
|
// fontSize: 32,
|
|
|
|
// onPressed: () {
|
|
|
|
// rCallback();
|
|
|
|
// Navigator.pop(
|
|
|
|
// context,
|
|
|
|
// );
|
|
|
|
// }),
|
|
|
|
// ],
|
|
|
|
// )
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
)),
|
|
|
|
),
|
|
|
|
));
|
|
|
|
});
|
|
|
|
},
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
///时段设置提示弹框
|
|
|
|
static Future confirmTimeAlertDialog(BuildContext context, String morning,
|
|
|
|
String noon, String night, VoidCallback callback) async {
|
|
...
|
...
|
@@ -6560,6 +6854,8 @@ class DialogUtil { |
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
// static Future cupertinoAlertDialogOnly(BuildContext context,
|
|
|
|
|
|
|
|
static Future cupertinoAlertDialogOnly(BuildContext context,
|
|
|
|
{String title = "",
|
|
|
|
String content = "内容",
|
...
|
...
|
|