|
...
|
...
|
@@ -148,7 +148,7 @@ class DialogUtil { |
|
|
|
fontSize: font(14)))),
|
|
|
|
VEmptyView(60),
|
|
|
|
Container(
|
|
|
|
child: Text('点击“前往续费” ',
|
|
|
|
child: Text('联系客服 400 000 9690',
|
|
|
|
style: TextStyle(
|
|
|
|
color:
|
|
|
|
MyColours.color_515151,
|
|
...
|
...
|
@@ -163,7 +163,7 @@ class DialogUtil { |
|
|
|
VEmptyView(20),
|
|
|
|
Container(
|
|
|
|
child: Text(
|
|
|
|
'联系您的服务商续费 ${names.toString()}功能;',
|
|
|
|
'联系您的服务商续费 ${names.join('、')} 功能;',
|
|
|
|
style: TextStyle(
|
|
|
|
color:
|
|
|
|
MyColours.color_515151,
|
|
...
|
...
|
@@ -185,7 +185,7 @@ class DialogUtil { |
|
|
|
Expanded(
|
|
|
|
flex: 1,
|
|
|
|
child: RoundButton(
|
|
|
|
text: '取消',
|
|
|
|
text: '确定',
|
|
|
|
// width: (ScreenUtil().screenWidth -
|
|
|
|
// ScreenUtil().setWidth(62) * 2) /
|
|
|
|
// 2,
|
|
...
|
...
|
@@ -199,47 +199,195 @@ class DialogUtil { |
|
|
|
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,
|
|
|
|
fontSize: 32,
|
|
|
|
onPressed: () {
|
|
|
|
// Navigator.pop(context, {
|
|
|
|
// 'spec': menuSunModel.specCan != null &&
|
|
|
|
// menuSunModel.specCan.length > 0
|
|
|
|
// ? menuSunModel.specCan
|
|
|
|
// .where((element) =>
|
|
|
|
// element.select == true)
|
|
|
|
// .toList()
|
|
|
|
// : [],
|
|
|
|
// 'practice': menuSunModel.practice !=
|
|
|
|
// null &&
|
|
|
|
// menuSunModel.practice.length > 0
|
|
|
|
// ? menuSunModel.practice
|
|
|
|
// .where((element) =>
|
|
|
|
// element.select == true)
|
|
|
|
// .toList()
|
|
|
|
// : []
|
|
|
|
// });
|
|
|
|
})),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
])));
|
|
|
|
}));
|
|
|
|
});
|
|
|
|
}
|
|
|
|
// static showSellerVersionEdateDialog(BuildContext context,
|
|
|
|
// List<SellerVersionSunModel> showData, CustomCallBack callback,
|
|
|
|
// {GestureTapCallback onTapLeft, GestureTapCallback onTapRight}) {
|
|
|
|
// List<String> names = showData.map((e) => e.vname).toList();
|
|
|
|
// ScrollController controller = ScrollController();
|
|
|
|
// 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(10)),
|
|
|
|
// child: SingleChildScrollView(
|
|
|
|
// controller: controller,
|
|
|
|
// child: Column(
|
|
|
|
// crossAxisAlignment:
|
|
|
|
// CrossAxisAlignment.start,
|
|
|
|
// children: [
|
|
|
|
// VEmptyView(50),
|
|
|
|
// Container(
|
|
|
|
// child: Text('您的:',
|
|
|
|
// style: TextStyle(
|
|
|
|
// color:
|
|
|
|
// MyColours.color_515151,
|
|
|
|
// fontSize: font(14)))),
|
|
|
|
// VEmptyView(50),
|
|
|
|
// ListView.builder(
|
|
|
|
// itemCount: showData.length,
|
|
|
|
// shrinkWrap: true,
|
|
|
|
// controller: controller,
|
|
|
|
// itemBuilder: (BuildContext context,
|
|
|
|
// int index) {
|
|
|
|
// SellerVersionSunModel
|
|
|
|
// sellerVersionSunModel =
|
|
|
|
// showData[index];
|
|
|
|
// return Column(
|
|
|
|
// crossAxisAlignment:
|
|
|
|
// CrossAxisAlignment.start,
|
|
|
|
// children: [
|
|
|
|
// Container(
|
|
|
|
// child: Text(
|
|
|
|
// '${sellerVersionSunModel.vname}功能即将在:',
|
|
|
|
// style: TextStyle(
|
|
|
|
// color: MyColours
|
|
|
|
// .color_515151,
|
|
|
|
// fontSize:
|
|
|
|
// font(14)))),
|
|
|
|
// VEmptyView(5),
|
|
|
|
// Container(
|
|
|
|
// child: Text(
|
|
|
|
// DateUtil.formatDate(
|
|
|
|
// DateTime.fromMillisecondsSinceEpoch(
|
|
|
|
// int.parse(sellerVersionSunModel
|
|
|
|
// .edate) *
|
|
|
|
// 1000),
|
|
|
|
// format:
|
|
|
|
// DateFormats
|
|
|
|
// .full,
|
|
|
|
// ),
|
|
|
|
// style: TextStyle(
|
|
|
|
// color: MyColours
|
|
|
|
// .color_E34D59,
|
|
|
|
// fontSize:
|
|
|
|
// font(14)))),
|
|
|
|
// VEmptyView(20),
|
|
|
|
// ]);
|
|
|
|
// }),
|
|
|
|
// VEmptyView(20),
|
|
|
|
// Container(
|
|
|
|
// child: Text('您可以:',
|
|
|
|
// style: TextStyle(
|
|
|
|
// color:
|
|
|
|
// MyColours.color_515151,
|
|
|
|
// fontSize: font(14)))),
|
|
|
|
// VEmptyView(60),
|
|
|
|
// Container(
|
|
|
|
// child: Text('点击“前往续费” ',
|
|
|
|
// style: TextStyle(
|
|
|
|
// color:
|
|
|
|
// MyColours.color_515151,
|
|
|
|
// fontSize: font(14)))),
|
|
|
|
// VEmptyView(20),
|
|
|
|
// Container(
|
|
|
|
// child: Text('或者',
|
|
|
|
// style: TextStyle(
|
|
|
|
// color:
|
|
|
|
// MyColours.color_515151,
|
|
|
|
// fontSize: font(14)))),
|
|
|
|
// VEmptyView(20),
|
|
|
|
// Container(
|
|
|
|
// child: Text(
|
|
|
|
// '联系您的服务商续费 ${names.join('、')} 功能;',
|
|
|
|
// style: TextStyle(
|
|
|
|
// color:
|
|
|
|
// MyColours.color_515151,
|
|
|
|
// fontSize: font(14)))),
|
|
|
|
// VEmptyView(60),
|
|
|
|
// Container(
|
|
|
|
// child: Text('*您可以通过开通超能版获得全部软件功能。',
|
|
|
|
// style: TextStyle(
|
|
|
|
// color:
|
|
|
|
// MyColours.color_515151,
|
|
|
|
// fontSize: font(14)))),
|
|
|
|
// VEmptyView(50),
|
|
|
|
// ]))),
|
|
|
|
// 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,
|
|
|
|
// fontSize: 32,
|
|
|
|
// onPressed: () {
|
|
|
|
// // Navigator.pop(context, {
|
|
|
|
// // 'spec': menuSunModel.specCan != null &&
|
|
|
|
// // menuSunModel.specCan.length > 0
|
|
|
|
// // ? menuSunModel.specCan
|
|
|
|
// // .where((element) =>
|
|
|
|
// // element.select == true)
|
|
|
|
// // .toList()
|
|
|
|
// // : [],
|
|
|
|
// // 'practice': menuSunModel.practice !=
|
|
|
|
// // null &&
|
|
|
|
// // menuSunModel.practice.length > 0
|
|
|
|
// // ? menuSunModel.practice
|
|
|
|
// // .where((element) =>
|
|
|
|
// // element.select == true)
|
|
|
|
// // .toList()
|
|
|
|
// // : []
|
|
|
|
// // });
|
|
|
|
// })),
|
|
|
|
// ],
|
|
|
|
// ),
|
|
|
|
// ])));
|
|
|
|
// }));
|
|
|
|
// });
|
|
|
|
// }
|
|
|
|
|
|
|
|
//功能购买提醒
|
|
|
|
static showSellerVersionBuyDialog(
|
|
...
|
...
|
@@ -278,7 +426,8 @@ class DialogUtil { |
|
|
|
fontSize: font(14)))),
|
|
|
|
VEmptyView(60),
|
|
|
|
Container(
|
|
|
|
child: Text('点击“前往开通”开通${title}功能;',
|
|
|
|
child: Text(
|
|
|
|
'联系客服 400 000 9690 开通${title}功能;',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_515151,
|
|
|
|
fontSize: font(14)))),
|
|
...
|
...
|
@@ -310,7 +459,7 @@ class DialogUtil { |
|
|
|
Expanded(
|
|
|
|
flex: 1,
|
|
|
|
child: RoundButton(
|
|
|
|
text: '取消',
|
|
|
|
text: '确定',
|
|
|
|
// width: (ScreenUtil().screenWidth -
|
|
|
|
// ScreenUtil().setWidth(62) * 2) /
|
|
|
|
// 2,
|
|
...
|
...
|
@@ -324,47 +473,170 @@ class DialogUtil { |
|
|
|
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,
|
|
|
|
fontSize: 32,
|
|
|
|
onPressed: () {
|
|
|
|
// Navigator.pop(context, {
|
|
|
|
// 'spec': menuSunModel.specCan != null &&
|
|
|
|
// menuSunModel.specCan.length > 0
|
|
|
|
// ? menuSunModel.specCan
|
|
|
|
// .where((element) =>
|
|
|
|
// element.select == true)
|
|
|
|
// .toList()
|
|
|
|
// : [],
|
|
|
|
// 'practice': menuSunModel.practice !=
|
|
|
|
// null &&
|
|
|
|
// menuSunModel.practice.length > 0
|
|
|
|
// ? menuSunModel.practice
|
|
|
|
// .where((element) =>
|
|
|
|
// element.select == true)
|
|
|
|
// .toList()
|
|
|
|
// : []
|
|
|
|
// });
|
|
|
|
})),
|
|
|
|
// 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,
|
|
|
|
// fontSize: 32,
|
|
|
|
// onPressed: () {
|
|
|
|
// // Navigator.pop(context, {
|
|
|
|
// // 'spec': menuSunModel.specCan != null &&
|
|
|
|
// // menuSunModel.specCan.length > 0
|
|
|
|
// // ? menuSunModel.specCan
|
|
|
|
// // .where((element) =>
|
|
|
|
// // element.select == true)
|
|
|
|
// // .toList()
|
|
|
|
// // : [],
|
|
|
|
// // 'practice': menuSunModel.practice !=
|
|
|
|
// // null &&
|
|
|
|
// // menuSunModel.practice.length > 0
|
|
|
|
// // ? menuSunModel.practice
|
|
|
|
// // .where((element) =>
|
|
|
|
// // element.select == true)
|
|
|
|
// // .toList()
|
|
|
|
// // : []
|
|
|
|
// // });
|
|
|
|
// })),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
])));
|
|
|
|
}));
|
|
|
|
});
|
|
|
|
}
|
|
|
|
// static showSellerVersionBuyDialog(
|
|
|
|
// 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(10)),
|
|
|
|
// child: Column(
|
|
|
|
// crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
// children: [
|
|
|
|
// VEmptyView(50),
|
|
|
|
// Container(
|
|
|
|
// child: Text('您的店铺尚未开通${title}功能,您可以:',
|
|
|
|
// style: TextStyle(
|
|
|
|
// color: MyColours.color_515151,
|
|
|
|
// fontSize: font(14)))),
|
|
|
|
// VEmptyView(60),
|
|
|
|
// Container(
|
|
|
|
// child: Text('点击“前往开通”开通${title}功能;',
|
|
|
|
// style: TextStyle(
|
|
|
|
// color: MyColours.color_515151,
|
|
|
|
// fontSize: font(14)))),
|
|
|
|
// VEmptyView(20),
|
|
|
|
// Container(
|
|
|
|
// child: Text('或者',
|
|
|
|
// style: TextStyle(
|
|
|
|
// color: MyColours.color_515151,
|
|
|
|
// fontSize: font(14)))),
|
|
|
|
// VEmptyView(20),
|
|
|
|
// Container(
|
|
|
|
// child: Text('联系您的服务商开通${title}功能;',
|
|
|
|
// style: TextStyle(
|
|
|
|
// color: MyColours.color_515151,
|
|
|
|
// fontSize: font(14)))),
|
|
|
|
// VEmptyView(60),
|
|
|
|
// Container(
|
|
|
|
// child: Text('*您可以通过开通超能版获得全部软件功能。',
|
|
|
|
// style: TextStyle(
|
|
|
|
// color: MyColours.color_515151,
|
|
|
|
// fontSize: font(14)))),
|
|
|
|
// VEmptyView(50),
|
|
|
|
// ])),
|
|
|
|
// 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,
|
|
|
|
// fontSize: 32,
|
|
|
|
// onPressed: () {
|
|
|
|
// // Navigator.pop(context, {
|
|
|
|
// // 'spec': menuSunModel.specCan != null &&
|
|
|
|
// // menuSunModel.specCan.length > 0
|
|
|
|
// // ? menuSunModel.specCan
|
|
|
|
// // .where((element) =>
|
|
|
|
// // element.select == true)
|
|
|
|
// // .toList()
|
|
|
|
// // : [],
|
|
|
|
// // 'practice': menuSunModel.practice !=
|
|
|
|
// // null &&
|
|
|
|
// // menuSunModel.practice.length > 0
|
|
|
|
// // ? menuSunModel.practice
|
|
|
|
// // .where((element) =>
|
|
|
|
// // element.select == true)
|
|
|
|
// // .toList()
|
|
|
|
// // : []
|
|
|
|
// // });
|
|
|
|
// })),
|
|
|
|
// ],
|
|
|
|
// ),
|
|
|
|
// ])));
|
|
|
|
// }));
|
|
|
|
// });
|
|
|
|
// }
|
|
|
|
|
|
|
|
//回复评论弹框
|
|
|
|
static openCommentsModalBottomSheet(context, TextEditingController controller,
|
...
|
...
|
|