|
@@ -8399,6 +8399,154 @@ class DialogUtil { |
|
@@ -8399,6 +8399,154 @@ class DialogUtil { |
|
8399
|
);
|
8399
|
);
|
|
8400
|
return action;
|
8400
|
return action;
|
|
8401
|
}
|
8401
|
}
|
|
|
|
8402
|
+ ///店铺临近过期弹窗
|
|
|
|
8403
|
+ static cupertinoAlertSellerEdateDialogSim(BuildContext context,
|
|
|
|
8404
|
+ {String title = "",
|
|
|
|
8405
|
+ String content = "内容",
|
|
|
|
8406
|
+ String lTitle = "关闭",
|
|
|
|
8407
|
+ String rTitle = "立即续费",
|
|
|
|
8408
|
+ Color rColor = MyColours.color_438E93,
|
|
|
|
8409
|
+ bool isBold = false,
|
|
|
|
8410
|
+ bool isBoldContent = false,
|
|
|
|
8411
|
+ Color contentColor = MyColours.color_99000000,
|
|
|
|
8412
|
+ VoidCallback lCallback,
|
|
|
|
8413
|
+ VoidCallback rCallback}) async {
|
|
|
|
8414
|
+ // bool isRed = content != '' ? false : true;
|
|
|
|
8415
|
+ final action = await showDialog(
|
|
|
|
8416
|
+ context: context,
|
|
|
|
8417
|
+ barrierDismissible: false,
|
|
|
|
8418
|
+ builder: (BuildContext context) {
|
|
|
|
8419
|
+ return StatefulBuilder(builder: (context, state) {
|
|
|
|
8420
|
+ return Scaffold(
|
|
|
|
8421
|
+ backgroundColor: Colors.transparent,
|
|
|
|
8422
|
+ body: Center(
|
|
|
|
8423
|
+ child: Container(
|
|
|
|
8424
|
+ padding: EdgeInsets.symmetric(
|
|
|
|
8425
|
+ horizontal: ScreenUtil().setWidth(50)),
|
|
|
|
8426
|
+ // height: ScreenUtil().setWidth(421 * 2),
|
|
|
|
8427
|
+ decoration: BoxDecoration(
|
|
|
|
8428
|
+ borderRadius:
|
|
|
|
8429
|
+ BorderRadius.circular(ScreenUtil().setWidth(16))),
|
|
|
|
8430
|
+ child: SingleChildScrollView(
|
|
|
|
8431
|
+ child: Card(
|
|
|
|
8432
|
+ shape: RoundedRectangleBorder(
|
|
|
|
8433
|
+ borderRadius: BorderRadius.all(
|
|
|
|
8434
|
+ Radius.circular(ScreenUtil().setWidth(10)))), //设置圆角
|
|
|
|
8435
|
+ child: Container(
|
|
|
|
8436
|
+ child: Column(
|
|
|
|
8437
|
+ mainAxisSize: MainAxisSize.min,
|
|
|
|
8438
|
+ children: [
|
|
|
|
8439
|
+ VEmptyView(64),
|
|
|
|
8440
|
+ Container(
|
|
|
|
8441
|
+ alignment: Alignment.center,
|
|
|
|
8442
|
+ child: Text(title,
|
|
|
|
8443
|
+ style: TextStyle(
|
|
|
|
8444
|
+ fontWeight: FontWeight.bold,
|
|
|
|
8445
|
+ fontSize: ScreenUtil().setSp(32),
|
|
|
|
8446
|
+ color: MyColours.color_E5000000)),
|
|
|
|
8447
|
+ ),
|
|
|
|
8448
|
+ VEmptyView(16),
|
|
|
|
8449
|
+ Text(
|
|
|
|
8450
|
+ '您的店铺即将在',
|
|
|
|
8451
|
+ style: TextStyle(
|
|
|
|
8452
|
+ fontSize: ScreenUtil().setSp(32),
|
|
|
|
8453
|
+ color: MyColours.color_515151),
|
|
|
|
8454
|
+ ),
|
|
|
|
8455
|
+ VEmptyView(24),
|
|
|
|
8456
|
+ Text(
|
|
|
|
8457
|
+ '$content 过期',
|
|
|
|
8458
|
+ style: TextStyle(
|
|
|
|
8459
|
+ fontSize: ScreenUtil().setSp(32),
|
|
|
|
8460
|
+ color: MyColours.color_E34D59),
|
|
|
|
8461
|
+ ),
|
|
|
|
8462
|
+ VEmptyView(24),
|
|
|
|
8463
|
+ Text(
|
|
|
|
8464
|
+ '请及时续费或联系您的服务商',
|
|
|
|
8465
|
+ style: TextStyle(
|
|
|
|
8466
|
+ fontSize: ScreenUtil().setSp(32),
|
|
|
|
8467
|
+ color: MyColours.color_515151),
|
|
|
|
8468
|
+ ),
|
|
|
|
8469
|
+ // VEmptyView(24),
|
|
|
|
8470
|
+ // Text(
|
|
|
|
8471
|
+ // '400-000-9690 及时续费',
|
|
|
|
8472
|
+ // style: TextStyle(
|
|
|
|
8473
|
+ // fontSize: ScreenUtil().setSp(32),
|
|
|
|
8474
|
+ // color: MyColours.color_515151),
|
|
|
|
8475
|
+ // ),
|
|
|
|
8476
|
+ VEmptyView(24),
|
|
|
|
8477
|
+ Text(
|
|
|
|
8478
|
+ '以免影响您的正常使用',
|
|
|
|
8479
|
+ style: TextStyle(
|
|
|
|
8480
|
+ fontSize: ScreenUtil().setSp(32),
|
|
|
|
8481
|
+ color: MyColours.color_515151),
|
|
|
|
8482
|
+ ),
|
|
|
|
8483
|
+ VEmptyView(66),
|
|
|
|
8484
|
+ MyDivider(double.infinity, ScreenUtil().setWidth(2),
|
|
|
|
8485
|
+ color: MyColours.color_f3f3f3),
|
|
|
|
8486
|
+ // RoundButton(
|
|
|
|
8487
|
+ // text: lTitle,
|
|
|
|
8488
|
+ // width: (ScreenUtil().screenWidth -
|
|
|
|
8489
|
+ // ScreenUtil().setWidth(62) * 2),
|
|
|
|
8490
|
+ // height: ScreenUtil().setWidth(112),
|
|
|
|
8491
|
+ // // radius: ScreenUtil().setWidth(10),
|
|
|
|
8492
|
+ // gradientStart: Colors.transparent,
|
|
|
|
8493
|
+ // gradientEnd: Colors.transparent,
|
|
|
|
8494
|
+ // textColor: MyColours.color_E6000000,
|
|
|
|
8495
|
+ // isBold: false,
|
|
|
|
8496
|
+ // fontSize: 32,
|
|
|
|
8497
|
+ // onPressed: () {
|
|
|
|
8498
|
+ // Navigator.pop(context);
|
|
|
|
8499
|
+ // }),
|
|
|
|
8500
|
+ Row(
|
|
|
|
8501
|
+ // mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
8502
|
+ children: [
|
|
|
|
8503
|
+ RoundButton(
|
|
|
|
8504
|
+ text: lTitle,
|
|
|
|
8505
|
+ width: (ScreenUtil().screenWidth -
|
|
|
|
8506
|
+ ScreenUtil().setWidth(62) * 2) /
|
|
|
|
8507
|
+ 2,
|
|
|
|
8508
|
+ height: ScreenUtil().setWidth(112),
|
|
|
|
8509
|
+ // radius: ScreenUtil().setWidth(10),
|
|
|
|
8510
|
+ gradientStart: Colors.transparent,
|
|
|
|
8511
|
+ gradientEnd: Colors.transparent,
|
|
|
|
8512
|
+ textColor: MyColours.color_E6000000,
|
|
|
|
8513
|
+ isBold: false,
|
|
|
|
8514
|
+ fontSize: 32,
|
|
|
|
8515
|
+ onPressed: () {
|
|
|
|
8516
|
+ Navigator.pop(context);
|
|
|
|
8517
|
+ }),
|
|
|
|
8518
|
+ MyDivider(ScreenUtil().setWidth(2),
|
|
|
|
8519
|
+ ScreenUtil().setWidth(112),
|
|
|
|
8520
|
+ color: MyColours.color_f3f3f3),
|
|
|
|
8521
|
+ RoundButton(
|
|
|
|
8522
|
+ text: rTitle,
|
|
|
|
8523
|
+ width: (ScreenUtil().screenWidth -
|
|
|
|
8524
|
+ ScreenUtil().setWidth(62) * 2) /
|
|
|
|
8525
|
+ 2,
|
|
|
|
8526
|
+ height: ScreenUtil().setWidth(112),
|
|
|
|
8527
|
+ // radius: ScreenUtil().setWidth(10),
|
|
|
|
8528
|
+ gradientStart: Colors.transparent,
|
|
|
|
8529
|
+ gradientEnd: Colors.transparent,
|
|
|
|
8530
|
+ textColor: MyColours.color_438E93,
|
|
|
|
8531
|
+ fontSize: 32,
|
|
|
|
8532
|
+ onPressed: () {
|
|
|
|
8533
|
+ rCallback();
|
|
|
|
8534
|
+ Navigator.pop(
|
|
|
|
8535
|
+ context,
|
|
|
|
8536
|
+ );
|
|
|
|
8537
|
+ }),
|
|
|
|
8538
|
+ ],
|
|
|
|
8539
|
+ )
|
|
|
|
8540
|
+ ],
|
|
|
|
8541
|
+ ),
|
|
|
|
8542
|
+ ),
|
|
|
|
8543
|
+ )),
|
|
|
|
8544
|
+ ),
|
|
|
|
8545
|
+ ));
|
|
|
|
8546
|
+ });
|
|
|
|
8547
|
+ },
|
|
|
|
8548
|
+ );
|
|
|
|
8549
|
+ }
|
|
8402
|
|
8550
|
|
|
8403
|
///店铺临近过期弹窗
|
8551
|
///店铺临近过期弹窗
|
|
8404
|
static cupertinoAlertSellerEdateDialog(BuildContext context,
|
8552
|
static cupertinoAlertSellerEdateDialog(BuildContext context,
|