Browse Source

会员列表,充值流水,余额变动列表更改;

wr_2023_business
wurong 1 year ago
parent
commit
0adeea2e3f
  1. 130
      lib/business_system/home/vip/balance_change_record.dart
  2. 192
      lib/business_system/home/vip/bus_vip_list.dart
  3. 188
      lib/business_system/home/vip/vip_recharge_flow.dart

130
lib/business_system/home/vip/balance_change_record.dart

@ -198,73 +198,75 @@ class _BalanceChangeRecord extends State<BalanceChangeRecord> {
], ],
)), )),
Expanded( Expanded(
child: SmartRefresher( child:Container(
controller: _refreshController, child: SmartRefresher(
enablePullDown: true, controller: _refreshController,
enablePullUp: records.length == 0 ? false : true, enablePullDown: true,
header: MyHeader(color: Color(0xFF30415B)), enablePullUp: records.length == 0 ? false : true,
physics: BouncingScrollPhysics(), header: MyHeader(color: Color(0xFF30415B)),
footer: CustomFooter(
builder: (context, mode) {
return MyFooter(mode);
},
),
onRefresh: () {
_isShow = false;
_current = 1;
records.clear();
_onRefresh(isShowLoad: false);
},
onLoading: () {
_isShow = false;
_current++;
_onRefresh(isShowLoad: false);
},
child: networkStatus == -1
? noNetwork()
: ((networkStatus == 0)
? ListView.builder(
padding: EdgeInsets.zero,
itemCount: 10,
scrollDirection: Axis.vertical,
shrinkWrap: true,
physics: BouncingScrollPhysics(), physics: BouncingScrollPhysics(),
itemBuilder: (context, position) { footer: CustomFooter(
return balanceChangeItemSm(); builder: (context, mode) {
return MyFooter(mode);
},
),
onRefresh: () {
_isShow = false;
_current = 1;
records.clear();
_onRefresh(isShowLoad: false);
},
onLoading: () {
_isShow = false;
_current++;
_onRefresh(isShowLoad: false);
}, },
) child: networkStatus == -1
: ((records == null || records.length == 0) ? noNetwork()
? NoDataView( : ((networkStatus == 0)
src: "assets/image/bs_no data_logo.webp", ? ListView.builder(
isShowBtn: false, padding: EdgeInsets.zero,
text: "暂无数据", itemCount: 10,
fontSize: 16.sp, scrollDirection: Axis.vertical,
iconHeight: 120.h, shrinkWrap: true,
margin: EdgeInsets.all(50.h), physics: BouncingScrollPhysics(),
) itemBuilder: (context, position) {
: Padding( return balanceChangeItemSm();
padding: EdgeInsets.only(top: 16.h), },
child: Expanded( )
child: ListView.builder( : ((records == null || records.length == 0)
itemCount: records?.length ?? 0, ? NoDataView(
physics: BouncingScrollPhysics(), src: "assets/image/bs_no data_logo.webp",
shrinkWrap: true, isShowBtn: false,
itemBuilder: (context, position) { text: "暂无数据",
return GestureDetector( fontSize: 16.sp,
behavior: HitTestBehavior.opaque, iconHeight: 120.h,
onTap: () { margin: EdgeInsets.all(50.h),
if (isKeyBoardShow) )
FocusScope.of(context) : Padding(
.requestFocus(FocusNode()); padding: EdgeInsets.only(top: 16.h),
return; child: Expanded(
}, child: ListView.builder(
child: balanceChangeItem( itemCount: records?.length ?? 0,
records[position], position), physics: BouncingScrollPhysics(),
); shrinkWrap: true,
}, itemBuilder: (context, position) {
return GestureDetector(
behavior: HitTestBehavior.opaque,
onTap: () {
if (isKeyBoardShow)
FocusScope.of(context)
.requestFocus(FocusNode());
return;
},
child: balanceChangeItem(
records[position], position),
);
},
),
), ),
), ))),
))), ),
)), )),
], ],
), ),

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

@ -135,106 +135,108 @@ class _BusVipList extends State<BusVipList> {
), ),
vipSearch(), vipSearch(),
Expanded( Expanded(
child: SmartRefresher( child: Container(
controller: _refreshController, child: SmartRefresher(
enablePullDown: true, controller: _refreshController,
enablePullUp: records.length == 0 ? false : true, enablePullDown: true,
header: MyHeader(color: Color(0xFF30415B)), enablePullUp: records.length == 0 ? false : true,
physics: BouncingScrollPhysics(), header: MyHeader(color: Color(0xFF30415B)),
footer: CustomFooter( physics: BouncingScrollPhysics(),
builder: (context, mode) { footer: CustomFooter(
return MyFooter(mode); builder: (context, mode) {
return MyFooter(mode);
},
),
onRefresh: () {
_current = 1;
records.clear();
_onRefresh(isShowLoad: false);
}, },
), onLoading: () {
onRefresh: () { _current++;
_current = 1; _onRefresh(isShowLoad: false);
records.clear(); },
_onRefresh(isShowLoad: false); child: SingleChildScrollView(
}, physics: NeverScrollableScrollPhysics(),
onLoading: () { child: Column(
_current++; children: [
_onRefresh(isShowLoad: false); Padding(
}, padding: EdgeInsets.only(
child: SingleChildScrollView( left: 20.w,top: 16.h
physics: NeverScrollableScrollPhysics(), ),
child: Column( child: Row(
children: [ children: [
Padding( Container(
padding: EdgeInsets.only( width: 4.w,
left: 20.w,top: 16.h height: 16.h,
), color: Color(0xFF30415B),
child: Row( margin: EdgeInsets.only(right: 12.w),
children: [ ),
Container( Expanded(
width: 4.w, child: Text(
height: 16.h, "会员管理",
color: Color(0xFF30415B), style: TextStyle(
margin: EdgeInsets.only(right: 12.w), fontSize: 15.sp,
), fontWeight: MyFontWeight.semi_bold,
Expanded( color: Color(0xFF0D0D0D),
child: Text( ),
"会员管理",
style: TextStyle(
fontSize: 15.sp,
fontWeight: MyFontWeight.semi_bold,
color: Color(0xFF0D0D0D),
), ),
), ),
), ],
], ),
), ),
), networkStatus == -1
networkStatus == -1 ? noNetwork()
? noNetwork() : ((networkStatus == 0)
: ((networkStatus == 0) ? ListView.builder(
? ListView.builder( padding: EdgeInsets.zero,
padding: EdgeInsets.zero, itemCount: 10,
itemCount: 10, scrollDirection: Axis.vertical,
scrollDirection: Axis.vertical, shrinkWrap: true,
shrinkWrap: true, physics: BouncingScrollPhysics(),
physics: BouncingScrollPhysics(), itemBuilder: (context, position) {
itemBuilder: (context, position) { return vipListItemSm();
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 == null || records.length == 0) records[position],
? NoDataView( position),
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),
);
},
),
),
))),
],
)))),
], ],
); );
} }

188
lib/business_system/home/vip/vip_recharge_flow.dart

@ -137,104 +137,106 @@ class _VipRechargeFlow extends State<VipRechargeFlow> {
), ),
rechargeFlowSearch(), rechargeFlowSearch(),
Expanded( Expanded(
child: SmartRefresher( child:Container(
controller: _refreshController, child:SmartRefresher(
enablePullDown: true, controller: _refreshController,
enablePullUp: records.length == 0 ? false : true, enablePullDown: true,
header: MyHeader(color: Color(0xFF30415B)), enablePullUp: records.length == 0 ? false : true,
physics: BouncingScrollPhysics(), header: MyHeader(color: Color(0xFF30415B)),
footer: CustomFooter( physics: BouncingScrollPhysics(),
builder: (context, mode) { footer: CustomFooter(
return MyFooter(mode); builder: (context, mode) {
return MyFooter(mode);
},
),
onRefresh: () {
_current = 1;
records.clear();
_onRefresh(isShowLoad: false);
}, },
), onLoading: () {
onRefresh: () { _current++;
_current = 1; _onRefresh(isShowLoad: false);
records.clear(); },
_onRefresh(isShowLoad: false); child: SingleChildScrollView(
}, physics: NeverScrollableScrollPhysics(),
onLoading: () { child: Column(
_current++; children: [
_onRefresh(isShowLoad: false); Padding(
}, padding: EdgeInsets.only(left: 20.w, top: 16.h),
child: SingleChildScrollView( child: Row(
physics: NeverScrollableScrollPhysics(), children: [
child: Column( Container(
children: [ width: 4.w,
Padding( height: 16.h,
padding: EdgeInsets.only(left: 20.w, top: 16.h), color: Color(0xFF30415B),
child: Row( margin: EdgeInsets.only(right: 12.w),
children: [ ),
Container( Expanded(
width: 4.w, child: Text(
height: 16.h, "充值流水",
color: Color(0xFF30415B), style: TextStyle(
margin: EdgeInsets.only(right: 12.w), fontSize: 15.sp,
), fontWeight: MyFontWeight.semi_bold,
Expanded( color: Color(0xFF0D0D0D),
child: Text( ),
"充值流水",
style: TextStyle(
fontSize: 15.sp,
fontWeight: MyFontWeight.semi_bold,
color: Color(0xFF0D0D0D),
), ),
), ),
), ],
], ),
), ),
), networkStatus == -1
networkStatus == -1 ? noNetwork()
? noNetwork() : ((networkStatus == 0)
: ((networkStatus == 0) ? ListView.builder(
? ListView.builder( padding: EdgeInsets.zero,
padding: EdgeInsets.zero, itemCount: 10,
itemCount: 10, scrollDirection: Axis.vertical,
scrollDirection: Axis.vertical, shrinkWrap: true,
shrinkWrap: true, physics: BouncingScrollPhysics(),
physics: BouncingScrollPhysics(), itemBuilder: (context, position) {
itemBuilder: (context, position) { return rechargeFlowItemSm();
return rechargeFlowItemSm(); },
)
: ((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: rechargeFlowItem(
: ((records == null || records.length == 0) records[position],
? NoDataView( position),
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: rechargeFlowItem(
records[position],
position),
);
},
),
),
))),
],
)))),
], ],
); );
} }

Loading…
Cancel
Save