diff --git a/lib/view_widget/selector_store_dialog.dart b/lib/view_widget/selector_store_dialog.dart index be5eec08..87fc9cef 100644 --- a/lib/view_widget/selector_store_dialog.dart +++ b/lib/view_widget/selector_store_dialog.dart @@ -8,6 +8,8 @@ import 'package:huixiang/view_widget/border_text.dart'; import 'package:huixiang/view_widget/custom_image.dart'; import 'package:huixiang/view_widget/round_button.dart'; +import 'no_data_view.dart'; + class SelectorStoreWidget extends StatefulWidget { final List stores; @@ -91,7 +93,18 @@ class _SelectorStoreWidget extends State { ? (widget.stores.length > 4 ? 4 : widget.stores.length) : 0) * 60.h, - child: ListView.builder( + child: (widget.stores == null || widget.stores.length == 0) + ? Padding(padding:EdgeInsets.symmetric(horizontal: 16.w), + child: Text( + "该优惠券未设置适用门店,适用情况请查看使用详情", + textAlign: TextAlign.center, + style: TextStyle( + fontWeight: MyFontWeight.regular, + fontSize: 14.sp, + color: Colors.black, + ), + ),) + : ListView.builder( physics: BouncingScrollPhysics(), itemBuilder: (context, position) { return GestureDetector(