From 0b0d1740f7b1f4b7928ebf262dd7d48dd9f7a77a Mon Sep 17 00:00:00 2001 From: w-R <953969641@qq.com> Date: Thu, 23 Jun 2022 17:53:22 +0800 Subject: [PATCH] =?UTF-8?q?=E9=83=A8=E5=88=86=E4=BC=98=E5=8C=96=E6=9B=B4?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/community/community_view/class_list_view.dart | 10 +++++++++- lib/community/headlines/activity_top_list.dart | 2 +- lib/community/order_page.dart | 9 ++------- lib/home/points_mall_view/points_goods_title.dart | 9 +++++++-- lib/home/welfare_exchange.dart | 2 +- lib/settlement/settlement.dart | 5 ++++- 6 files changed, 24 insertions(+), 13 deletions(-) diff --git a/lib/community/community_view/class_list_view.dart b/lib/community/community_view/class_list_view.dart index c1c2a21f..0b88a1c7 100644 --- a/lib/community/community_view/class_list_view.dart +++ b/lib/community/community_view/class_list_view.dart @@ -4,6 +4,7 @@ import 'package:huixiang/utils/flutter_utils.dart'; import 'package:huixiang/utils/font_weight.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:huixiang/view_widget/custom_image.dart'; +import 'package:huixiang/view_widget/no_data_view.dart'; class ClassListView extends StatefulWidget { final List classList; @@ -19,7 +20,14 @@ class ClassListView extends StatefulWidget { class _ClassListView extends State { @override Widget build(BuildContext context) { - return GridView.builder( + return (widget.classList == null || widget.classList.length == 0) + ? NoDataView( + src: "assets/image/xiao_fei.webp", + isShowBtn: false, + text: "当前分类暂无精彩内容", + fontSize: 16.sp, + margin: EdgeInsets.only( left: 60.w, right: 60.w,bottom: 30), + ): GridView.builder( itemCount:widget.classList == null ? 0 : widget.classList.length, padding: EdgeInsets.only( left: 16.w, diff --git a/lib/community/headlines/activity_top_list.dart b/lib/community/headlines/activity_top_list.dart index 0e0393d2..257f61b6 100644 --- a/lib/community/headlines/activity_top_list.dart +++ b/lib/community/headlines/activity_top_list.dart @@ -74,7 +74,7 @@ class _ActivityTopList extends State { color: Colors.black, ), margin: EdgeInsets.symmetric( - horizontal: 6, + horizontal: 6.w, ), child:Column( children: [ diff --git a/lib/community/order_page.dart b/lib/community/order_page.dart index caddd2ac..c73789ee 100644 --- a/lib/community/order_page.dart +++ b/lib/community/order_page.dart @@ -42,12 +42,7 @@ class _OrderPage extends State appBar: MyAppBar( title: "", leading: false, - bottom: Theme( - data: ThemeData( - splashColor: Colors.transparent, // 点击时的水波纹颜色设置为透明 - highlightColor: Colors.transparent, // 点击时的背景高亮颜色设置为透明 - ), - child: TabBar( + bottom: TabBar( // isScrollable: true, //可滚动 indicatorColor: Color(0xff39B54A), labelColor: Colors.black, @@ -70,7 +65,7 @@ class _OrderPage extends State MyTab(text: S.of(context).weiwancheng), MyTab(text: S.of(context).yiwancheng), ], - )), + ), ), body: TabBarView( children: [OrderHistoryList(0),OrderHistoryList(1),OrderHistoryList(2),OrderHistoryList(3), ], diff --git a/lib/home/points_mall_view/points_goods_title.dart b/lib/home/points_mall_view/points_goods_title.dart index 7ff78430..f8a46de0 100644 --- a/lib/home/points_mall_view/points_goods_title.dart +++ b/lib/home/points_mall_view/points_goods_title.dart @@ -75,7 +75,12 @@ class _PointsGoodsTitle extends State length: widget.gooodsCategorys == null ? 0 : widget.gooodsCategorys.length, - child: TabBar( + child: Theme( + data: ThemeData( + splashColor: Colors.transparent, // 点击时的水波纹颜色设置为透明 + highlightColor: Colors.transparent, // 点击时的背景高亮颜色设置为透明 + ), + child: TabBar( isScrollable: true, //可滚动 indicatorColor: Color(0xff39B54A), @@ -99,7 +104,7 @@ class _PointsGoodsTitle extends State .map((e) => MyTab(text: e.name)) .toList(), onTap: widget.onTap, - ), + )), ), ), // Container( diff --git a/lib/home/welfare_exchange.dart b/lib/home/welfare_exchange.dart index ede6a0d7..d793aef9 100644 --- a/lib/home/welfare_exchange.dart +++ b/lib/home/welfare_exchange.dart @@ -220,7 +220,7 @@ class _WelfareExchange extends State with SingleTickerProvider ), ], )), - expandedHeight: 258.h, + expandedHeight: ScreenUtil().setHeight(258.h), bottom: PreferredSize( preferredSize: Size(double.infinity, 0), child: DefaultTabController( diff --git a/lib/settlement/settlement.dart b/lib/settlement/settlement.dart index a18fcc2b..9c2b869f 100644 --- a/lib/settlement/settlement.dart +++ b/lib/settlement/settlement.dart @@ -856,6 +856,9 @@ class _Settlement extends State { payChannelCheck(int payChannel) { this.payChannel = payChannel; + if (tableId > 0) { + queryOrderDetails(parentId); + } else { queryOrderInfo( address?.id, selectedBtn, @@ -867,7 +870,7 @@ class _Settlement extends State { actProductSkuId ?? "", count1, payChannel, - tableId); + tableId);} } mobileChange(String mobile) {