Browse Source

会员列表更改;

wr_2023_business
wurong 1 year ago
parent
commit
6828a3bb67
  1. 198
      lib/business_system/home/vip/bus_vip_list.dart

198
lib/business_system/home/vip/bus_vip_list.dart

@ -126,7 +126,9 @@ class _BusVipList extends State<BusVipList> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Column( return Scaffold(
backgroundColor: Colors.white,
body: Column(
children: [ children: [
Container( Container(
width: double.infinity, width: double.infinity,
@ -135,110 +137,108 @@ class _BusVipList extends State<BusVipList> {
), ),
vipSearch(), vipSearch(),
Expanded( Expanded(
child: Container( child: SmartRefresher(
child: SmartRefresher( controller: _refreshController,
controller: _refreshController, enablePullDown: true,
enablePullDown: true, enablePullUp: records.length == 0 ? false : true,
enablePullUp: records.length == 0 ? false : true, header: MyHeader(color: Color(0xFF30415B)),
header: MyHeader(color: Color(0xFF30415B)), physics: BouncingScrollPhysics(),
physics: BouncingScrollPhysics(), footer: CustomFooter(
footer: CustomFooter( builder: (context, mode) {
builder: (context, mode) { return MyFooter(mode);
return MyFooter(mode);
},
),
onRefresh: () {
_current = 1;
records.clear();
_onRefresh(isShowLoad: false);
}, },
onLoading: () { ),
_current++; onRefresh: () {
_onRefresh(isShowLoad: false); _current = 1;
}, records.clear();
child: SingleChildScrollView( _onRefresh(isShowLoad: false);
physics: NeverScrollableScrollPhysics(), },
child: Column( onLoading: () {
children: [ _current++;
Padding( _onRefresh(isShowLoad: false);
padding: EdgeInsets.only( },
left: 20.w,top: 16.h child: SingleChildScrollView(
), physics: NeverScrollableScrollPhysics(),
child: Row( child: Column(
children: [ children: [
Container( Padding(
width: 4.w, padding: EdgeInsets.only(
height: 16.h, left: 20.w,top: 16.h
color: Color(0xFF30415B), ),
margin: EdgeInsets.only(right: 12.w), child: Row(
), children: [
Expanded( Container(
child: Text( width: 4.w,
"会员管理", height: 16.h,
style: TextStyle( color: Color(0xFF30415B),
fontSize: 15.sp, margin: EdgeInsets.only(right: 12.w),
fontWeight: MyFontWeight.semi_bold, ),
color: Color(0xFF0D0D0D), Expanded(
), child: Text(
"会员管理",
style: TextStyle(
fontSize: 15.sp,
fontWeight: MyFontWeight.semi_bold,
color: Color(0xFF0D0D0D),
), ),
), ),
], ),
), ],
), ),
networkStatus == -1 ),
? noNetwork() networkStatus == -1
: ((networkStatus == 0) ? noNetwork()
? ListView.builder( : ((networkStatus == 0)
padding: EdgeInsets.zero, ? ListView.builder(
itemCount: 10, padding: EdgeInsets.zero,
scrollDirection: Axis.vertical, itemCount: 10,
shrinkWrap: true, scrollDirection: Axis.vertical,
physics: BouncingScrollPhysics(), shrinkWrap: true,
itemBuilder: (context, position) { physics: BouncingScrollPhysics(),
return vipListItemSm(); itemBuilder: (context, position) {
}, return vipListItemSm();
)
: ((records == null || records.length == 0)
? NoDataView(
src:
"assets/image/bs_no data_logo.webp",
isShowBtn: false,
text: "暂无数据",
fontSize: 16.sp,
iconHeight: 120.h,
margin: EdgeInsets.all(50.h),
)
: Padding(
padding: EdgeInsets.only(top: 16.h),
child: Expanded(
child: ListView.builder(
itemCount: records?.length ?? 0,
physics: BouncingScrollPhysics(),
shrinkWrap: true,
itemBuilder: (context, position) {
return GestureDetector(
behavior:
HitTestBehavior.opaque,
onTap: () {
if (isKeyBoardShow)
FocusScope.of(context)
.requestFocus(
FocusNode());
return;
}, },
child: vipListItem( )
records[position], : ((records == null || records.length == 0)
position), ? NoDataView(
); src:
}, "assets/image/bs_no data_logo.webp",
), isShowBtn: false,
), text: "暂无数据",
))), fontSize: 16.sp,
], iconHeight: 120.h,
))), margin: EdgeInsets.all(50.h),
)), )
: Padding(
padding: EdgeInsets.only(top: 16.h),
child: Expanded(
child: ListView.builder(
itemCount: records?.length ?? 0,
physics: BouncingScrollPhysics(),
shrinkWrap: true,
itemBuilder: (context, position) {
return GestureDetector(
behavior:
HitTestBehavior.opaque,
onTap: () {
if (isKeyBoardShow)
FocusScope.of(context)
.requestFocus(
FocusNode());
return;
},
child: vipListItem(
records[position],
position),
);
},
),
),
))),
],
)))),
], ],
); ));
} }
/// ///

Loading…
Cancel
Save