Commit cd5aaf1a073624fc5a20b42b49eddea1bd0d26c1

Authored by “gaiyaguang”
1 parent e9890703

修改部分UI

@@ -853,7 +853,7 @@ class _NoteBookChangePageState extends State<NoteBookChangePage> { @@ -853,7 +853,7 @@ class _NoteBookChangePageState extends State<NoteBookChangePage> {
853 } else { 853 } else {
854 //拒绝通讯录权限 , 苹果拒绝权限后,不再提示权限框,进入此处 854 //拒绝通讯录权限 , 苹果拒绝权限后,不再提示权限框,进入此处
855 DialogUtil.openAlertDialog( 855 DialogUtil.openAlertDialog(
856 - context, '未获得通讯录权限', "请在手机的权限管理里,将通讯录权限开启", '去设置', 340.0, 856 + context, '未获得通讯录权限', "请在手机的权限管理里,将通讯录权限开启。", '去设置', 340.0,
857 onTap: () { 857 onTap: () {
858 openSetting(); 858 openSetting();
859 Navigator.pop(context, ''); 859 Navigator.pop(context, '');
@@ -144,7 +144,7 @@ class _BookTimeSetPageState extends State<BookTimeSetPage> { @@ -144,7 +144,7 @@ class _BookTimeSetPageState extends State<BookTimeSetPage> {
144 noon.start = night.start; 144 noon.start = night.start;
145 } 145 }
146 }); 146 });
147 - Utils.compareDateTime(noon.end, morning.start, (needChange) { 147 + Utils.compareDateTime(noon.end, night.start, (needChange) {
148 if (!needChange) { 148 if (!needChange) {
149 noon.end = night.start; 149 noon.end = night.start;
150 } 150 }
@@ -85,6 +85,7 @@ class MyPageState extends State<MyPage> with WidgetsBindingObserver { @@ -85,6 +85,7 @@ class MyPageState extends State<MyPage> with WidgetsBindingObserver {
85 85
86 ///获取短信余量 86 ///获取短信余量
87 _getSmsInfo(context) async { 87 _getSmsInfo(context) async {
  88 + myModel = Provider.of<MyModel>(context, listen: false);
88 await myModel.getSmsInfo(context); 89 await myModel.getSmsInfo(context);
89 // setState(() { 90 // setState(() {
90 // if (smsInfoData != null) { 91 // if (smsInfoData != null) {
@@ -163,8 +163,8 @@ class _ReceiveOrdersTimeSetPageState extends State<ReceiveOrdersTimeSetPage> { @@ -163,8 +163,8 @@ class _ReceiveOrdersTimeSetPageState extends State<ReceiveOrdersTimeSetPage> {
163 if (isSuccess) { 163 if (isSuccess) {
164 ///弹出提示框 164 ///弹出提示框
165 /// 165 ///
166 - DialogUtil.openAlertDialog(  
167 - context, '接单时间已修改', '需要重启电话机才能生效', '知道了', 295, 166 + DialogUtil.openAlertDialog(context, '接单时间已修改',
  167 + '需要重启电话机才能生效', '知道了', 295, fontSize: 30,
168 onTap: () { 168 onTap: () {
169 EventBus().emit('changeStatusColor'); 169 EventBus().emit('changeStatusColor');
170 Navigator.of(context).pop(); 170 Navigator.of(context).pop();
@@ -685,7 +685,7 @@ class DialogUtil { @@ -685,7 +685,7 @@ class DialogUtil {
685 685
686 static Future openAlertDialog(BuildContext context, String title, 686 static Future openAlertDialog(BuildContext context, String title,
687 String content, String btnTitle, double height, 687 String content, String btnTitle, double height,
688 - {GestureTapCallback onTap}) async { 688 + {GestureTapCallback onTap, double fontSize = 36}) async {
689 final action = await showDialog( 689 final action = await showDialog(
690 context: context, 690 context: context,
691 barrierDismissible: true, 691 barrierDismissible: true,
@@ -708,7 +708,7 @@ class DialogUtil { @@ -708,7 +708,7 @@ class DialogUtil {
708 alignment: Alignment.center, 708 alignment: Alignment.center,
709 child: Text(title, 709 child: Text(title,
710 style: TextStyle( 710 style: TextStyle(
711 - fontSize: ScreenUtil().setSp(36), 711 + fontSize: ScreenUtil().setSp(fontSize),
712 color: MyColours.color_353535)), 712 color: MyColours.color_353535)),
713 ), 713 ),
714 VEmptyView(20), 714 VEmptyView(20),
@@ -728,7 +728,7 @@ class DialogUtil { @@ -728,7 +728,7 @@ class DialogUtil {
728 content, 728 content,
729 style: TextStyle( 729 style: TextStyle(
730 color: MyColours.color_353535, 730 color: MyColours.color_353535,
731 - fontSize: ScreenUtil().setSp(28), 731 + fontSize: ScreenUtil().setSp(30),
732 ), 732 ),
733 strutStyle: StrutStyle( 733 strutStyle: StrutStyle(
734 forceStrutHeight: true, 734 forceStrutHeight: true,
@@ -747,7 +747,7 @@ class DialogUtil { @@ -747,7 +747,7 @@ class DialogUtil {
747 child: Text( 747 child: Text(
748 btnTitle, 748 btnTitle,
749 style: TextStyle( 749 style: TextStyle(
750 - color: MyColours.color_2bb5b7, 750 + color: MyColours.color_199095,
751 fontSize: ScreenUtil().setWidth(34)), 751 fontSize: ScreenUtil().setWidth(34)),
752 ), 752 ),
753 ), 753 ),
@@ -853,6 +853,7 @@ class DialogUtil { @@ -853,6 +853,7 @@ class DialogUtil {
853 InkWell( 853 InkWell(
854 child: Container( 854 child: Container(
855 height: ScreenUtil().setWidth(47 * 2), 855 height: ScreenUtil().setWidth(47 * 2),
  856 + width: ScreenUtil().setWidth(135 * 2),
856 alignment: Alignment.center, 857 alignment: Alignment.center,
857 child: Text( 858 child: Text(
858 "信息有误", 859 "信息有误",
@@ -873,6 +874,7 @@ class DialogUtil { @@ -873,6 +874,7 @@ class DialogUtil {
873 InkWell( 874 InkWell(
874 child: Container( 875 child: Container(
875 height: ScreenUtil().setWidth(47 * 2), 876 height: ScreenUtil().setWidth(47 * 2),
  877 + width: ScreenUtil().setWidth(135 * 2),
876 alignment: Alignment.center, 878 alignment: Alignment.center,
877 child: Text( 879 child: Text(
878 "确认无误", 880 "确认无误",