Commit 86e2a37e7da34331c08e85122ebe1e62f7605c12

Authored by wdn127929
1 parent 46674069

清空&关闭

@@ -810,7 +810,11 @@ class MyPageState extends State<MyPage> with WidgetsBindingObserver { @@ -810,7 +810,11 @@ class MyPageState extends State<MyPage> with WidgetsBindingObserver {
810 context, FromPage.FromPageMyPage); 810 context, FromPage.FromPageMyPage);
811 } 811 }
812 }, 812 },
813 - child: _item(Utils.getImgPath('grxx'), '个人信息', 813 + child: _item(
  814 + !Utils.getAuthority(context, '个人信息')
  815 + ? Utils.getImgPath('grxx_un')
  816 + : Utils.getImgPath('grxx'),
  817 + '个人信息',
814 isRowLow: 818 isRowLow:
815 !Utils.getAuthority(context, '个人信息')), 819 !Utils.getAuthority(context, '个人信息')),
816 ), 820 ),
@@ -821,7 +825,10 @@ class MyPageState extends State<MyPage> with WidgetsBindingObserver { @@ -821,7 +825,10 @@ class MyPageState extends State<MyPage> with WidgetsBindingObserver {
821 } 825 }
822 }, 826 },
823 child: _item( 827 child: _item(
824 - Utils.getImgPath('wdkq'), '我的客情', 828 + !Utils.getAuthority(context, '我的客情')
  829 + ? Utils.getImgPath('wdkq_un')
  830 + : Utils.getImgPath('wdkq'),
  831 + '我的客情',
825 isRowLow: !Utils.getAuthority( 832 isRowLow: !Utils.getAuthority(
826 context, '我的客情'))), 833 context, '我的客情'))),
827 InkWell( 834 InkWell(
@@ -830,7 +837,11 @@ class MyPageState extends State<MyPage> with WidgetsBindingObserver { @@ -830,7 +837,11 @@ class MyPageState extends State<MyPage> with WidgetsBindingObserver {
830 NavigatorUtil.goCouponPage(context); 837 NavigatorUtil.goCouponPage(context);
831 } 838 }
832 }, 839 },
833 - child: _item(Utils.getImgPath('yhq'), '优惠券', 840 + child: _item(
  841 + !Utils.getAuthority(context, '优惠券')
  842 + ? Utils.getImgPath('yhq_un')
  843 + : Utils.getImgPath('yhq'),
  844 + '优惠券',
834 isRowLow: !Utils.getAuthority( 845 isRowLow: !Utils.getAuthority(
835 context, '优惠券'))), 846 context, '优惠券'))),
836 InkWell( 847 InkWell(
@@ -841,7 +852,10 @@ class MyPageState extends State<MyPage> with WidgetsBindingObserver { @@ -841,7 +852,10 @@ class MyPageState extends State<MyPage> with WidgetsBindingObserver {
841 } 852 }
842 }, 853 },
843 child: _item( 854 child: _item(
844 - Utils.getImgPath('cybz'), '常用备注', 855 + !Utils.getAuthority(context, '常用备注')
  856 + ? Utils.getImgPath('cybz_un')
  857 + : Utils.getImgPath('cybz'),
  858 + '常用备注',
845 isRowLow: !Utils.getAuthority( 859 isRowLow: !Utils.getAuthority(
846 context, '常用备注'))), 860 context, '常用备注'))),
847 ], 861 ],
@@ -860,7 +874,10 @@ class MyPageState extends State<MyPage> with WidgetsBindingObserver { @@ -860,7 +874,10 @@ class MyPageState extends State<MyPage> with WidgetsBindingObserver {
860 } 874 }
861 }, 875 },
862 child: _item( 876 child: _item(
863 - Utils.getImgPath('cdgl'), '套餐排菜', 877 + !Utils.getAuthority(context, '套餐排菜')
  878 + ? Utils.getImgPath('cdgl_un')
  879 + : Utils.getImgPath('cdgl'),
  880 + '套餐排菜',
864 isRowLow: !Utils.getAuthority( 881 isRowLow: !Utils.getAuthority(
865 context, '套餐排菜'))), 882 context, '套餐排菜'))),
866 InkWell( 883 InkWell(
@@ -873,7 +890,10 @@ class MyPageState extends State<MyPage> with WidgetsBindingObserver { @@ -873,7 +890,10 @@ class MyPageState extends State<MyPage> with WidgetsBindingObserver {
873 } 890 }
874 }, 891 },
875 child: _item( 892 child: _item(
876 - Utils.getImgPath('khcj'), '客户存酒', 893 + !Utils.getAuthority(context, '客户存酒')
  894 + ? Utils.getImgPath('khcj_un')
  895 + : Utils.getImgPath('khcj'),
  896 + '客户存酒',
877 isRowLow: !Utils.getAuthority( 897 isRowLow: !Utils.getAuthority(
878 context, '客户存酒'))), 898 context, '客户存酒'))),
879 InkWell( 899 InkWell(
@@ -1741,6 +1741,22 @@ class TableManagerPageState extends State<TableManagerPage> { @@ -1741,6 +1741,22 @@ class TableManagerPageState extends State<TableManagerPage> {
1741 _clearData(); 1741 _clearData();
1742 }, 1742 },
1743 child: Container( 1743 child: Container(
  1744 + padding: EdgeInsets.symmetric(
  1745 + vertical: ScreenUtil().setWidth(30),
  1746 + horizontal: ScreenUtil().setWidth(40)),
  1747 + // color: Colors.red,
  1748 + child: Image.asset(
  1749 + Utils.getImgPath('close'),
  1750 + width: ScreenUtil().setWidth(28),
  1751 + height: ScreenUtil().setWidth(28),
  1752 + )))),
  1753 + Positioned(
  1754 + left: 0,
  1755 + child: InkWell(
  1756 + onTap: () {
  1757 + _clearData();
  1758 + },
  1759 + child: Container(
1744 padding: EdgeInsets.symmetric( 1760 padding: EdgeInsets.symmetric(
1745 vertical: ScreenUtil().setWidth(30), 1761 vertical: ScreenUtil().setWidth(30),
1746 horizontal: ScreenUtil().setWidth(40)), 1762 horizontal: ScreenUtil().setWidth(40)),
@@ -2161,6 +2177,22 @@ class TableManagerPageState extends State<TableManagerPage> { @@ -2161,6 +2177,22 @@ class TableManagerPageState extends State<TableManagerPage> {
2161 vertical: ScreenUtil().setWidth(30), 2177 vertical: ScreenUtil().setWidth(30),
2162 horizontal: ScreenUtil().setWidth(40)), 2178 horizontal: ScreenUtil().setWidth(40)),
2163 // color: Colors.red, 2179 // color: Colors.red,
  2180 + child: Image.asset(
  2181 + Utils.getImgPath('close'),
  2182 + width: ScreenUtil().setWidth(28),
  2183 + height: ScreenUtil().setWidth(28),
  2184 + )))),
  2185 + Positioned(
  2186 + left: 0,
  2187 + child: InkWell(
  2188 + onTap: () {
  2189 + _clearData();
  2190 + },
  2191 + child: Container(
  2192 + padding: EdgeInsets.symmetric(
  2193 + vertical: ScreenUtil().setWidth(30),
  2194 + horizontal: ScreenUtil().setWidth(40)),
  2195 + // color: Colors.red,
2164 child: Text( 2196 child: Text(
2165 '清空', 2197 '清空',
2166 style: TextStyle( 2198 style: TextStyle(