Browse Source

ios 会员管理板块列表bug更改;

wr_2023_business
zsw 1 year ago
parent
commit
8761e5e94c
  1. 6
      ios/Runner.xcodeproj/project.pbxproj
  2. 40
      lib/business_system/home/vip/balance_change_record.dart
  3. 95
      lib/business_system/home/vip/bus_vip_list.dart
  4. 45
      lib/business_system/home/vip/vip_recharge_flow.dart

6
ios/Runner.xcodeproj/project.pbxproj

@ -619,7 +619,7 @@
CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES = NO; CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES = NO;
CLANG_ENABLE_MODULES = YES; CLANG_ENABLE_MODULES = YES;
CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements; CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
CURRENT_PROJECT_VERSION = 2; CURRENT_PROJECT_VERSION = 6;
DEVELOPMENT_TEAM = YF3Q8DVP52; DEVELOPMENT_TEAM = YF3Q8DVP52;
ENABLE_BITCODE = NO; ENABLE_BITCODE = NO;
FRAMEWORK_SEARCH_PATHS = ( FRAMEWORK_SEARCH_PATHS = (
@ -822,7 +822,7 @@
CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES = NO; CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES = NO;
CLANG_ENABLE_MODULES = YES; CLANG_ENABLE_MODULES = YES;
CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements; CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
CURRENT_PROJECT_VERSION = 2; CURRENT_PROJECT_VERSION = 6;
DEVELOPMENT_TEAM = YF3Q8DVP52; DEVELOPMENT_TEAM = YF3Q8DVP52;
ENABLE_BITCODE = NO; ENABLE_BITCODE = NO;
FRAMEWORK_SEARCH_PATHS = ( FRAMEWORK_SEARCH_PATHS = (
@ -916,7 +916,7 @@
CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES = NO; CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES = NO;
CLANG_ENABLE_MODULES = YES; CLANG_ENABLE_MODULES = YES;
CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements; CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
CURRENT_PROJECT_VERSION = 2; CURRENT_PROJECT_VERSION = 6;
DEVELOPMENT_TEAM = YF3Q8DVP52; DEVELOPMENT_TEAM = YF3Q8DVP52;
ENABLE_BITCODE = NO; ENABLE_BITCODE = NO;
FRAMEWORK_SEARCH_PATHS = ( FRAMEWORK_SEARCH_PATHS = (

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

@ -243,27 +243,25 @@ class _BalanceChangeRecord extends State<BalanceChangeRecord> {
iconHeight: 120.h, iconHeight: 120.h,
margin: EdgeInsets.all(50.h), margin: EdgeInsets.all(50.h),
) )
: Padding( : Container(
padding: EdgeInsets.only(top: 16.h), padding:EdgeInsets.only(top: 16.h),
child: Expanded( child: ListView.builder(
child: ListView.builder( itemCount: records?.length ?? 0,
itemCount: records?.length ?? 0, physics: BouncingScrollPhysics(),
physics: BouncingScrollPhysics(), shrinkWrap: true,
shrinkWrap: true, itemBuilder: (context, position) {
itemBuilder: (context, position) { return GestureDetector(
return GestureDetector( behavior: HitTestBehavior.opaque,
behavior: HitTestBehavior.opaque, onTap: () {
onTap: () { if (isKeyBoardShow)
if (isKeyBoardShow) FocusScope.of(context)
FocusScope.of(context) .requestFocus(FocusNode());
.requestFocus(FocusNode()); return;
return; },
}, child: balanceChangeItem(
child: balanceChangeItem( records[position], position),
records[position], position), );
); },
},
),
), ),
))), ))),
), ),

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

@ -126,9 +126,7 @@ class _BusVipList extends State<BusVipList> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Scaffold( return Column(
backgroundColor: Colors.white,
body: Column(
children: [ children: [
Container( Container(
width: double.infinity, width: double.infinity,
@ -163,7 +161,7 @@ class _BusVipList extends State<BusVipList> {
children: [ children: [
Padding( Padding(
padding: EdgeInsets.only( padding: EdgeInsets.only(
left: 20.w,top: 16.h left: 20.w,top: 16.h,bottom: 16.h
), ),
child: Row( child: Row(
children: [ children: [
@ -189,56 +187,51 @@ class _BusVipList extends State<BusVipList> {
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) : ((records == null || records.length == 0)
? NoDataView( ? NoDataView(
src: src:
"assets/image/bs_no data_logo.webp", "assets/image/bs_no data_logo.webp",
isShowBtn: false, isShowBtn: false,
text: "暂无数据", text: "暂无数据",
fontSize: 16.sp, fontSize: 16.sp,
iconHeight: 120.h, iconHeight: 120.h,
margin: EdgeInsets.all(50.h), margin: EdgeInsets.all(50.h),
) )
: Padding( : ListView.builder(
padding: EdgeInsets.only(top: 16.h), itemCount: records?.length ?? 0,
child: Expanded( physics: BouncingScrollPhysics(),
child: ListView.builder( shrinkWrap: true,
itemCount: records?.length ?? 0, itemBuilder: (context, position) {
physics: BouncingScrollPhysics(), return GestureDetector(
shrinkWrap: true, behavior:
itemBuilder: (context, position) { HitTestBehavior.opaque,
return GestureDetector( onTap: () {
behavior: if (isKeyBoardShow)
HitTestBehavior.opaque, FocusScope.of(context)
onTap: () { .requestFocus(
if (isKeyBoardShow) FocusNode());
FocusScope.of(context) return;
.requestFocus( },
FocusNode()); child: vipListItem(
return; records[position],
}, position),
child: vipListItem( );
records[position], },
position), ))),
);
},
),
),
))),
], ],
)))), )))),
], ],
)); );
} }
/// ///

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

@ -163,7 +163,7 @@ class _VipRechargeFlow extends State<VipRechargeFlow> {
child: Column( child: Column(
children: [ children: [
Padding( Padding(
padding: EdgeInsets.only(left: 20.w, top: 16.h), padding: EdgeInsets.only(left: 20.w, top: 16.h,bottom: 16.h),
child: Row( child: Row(
children: [ children: [
Container( Container(
@ -208,31 +208,26 @@ class _VipRechargeFlow extends State<VipRechargeFlow> {
iconHeight: 120.h, iconHeight: 120.h,
margin: EdgeInsets.all(50.h), margin: EdgeInsets.all(50.h),
) )
: Padding( : ListView.builder(
padding: EdgeInsets.only(top: 16.h), itemCount: records?.length ?? 0,
child: Expanded( physics: BouncingScrollPhysics(),
child: ListView.builder( shrinkWrap: true,
itemCount: records?.length ?? 0, itemBuilder: (context, position) {
physics: BouncingScrollPhysics(), return GestureDetector(
shrinkWrap: true, behavior:
itemBuilder: (context, position) { HitTestBehavior.opaque,
return GestureDetector( onTap: () {
behavior: if (isKeyBoardShow)
HitTestBehavior.opaque, FocusScope.of(context)
onTap: () { .requestFocus(
if (isKeyBoardShow) FocusNode());
FocusScope.of(context) return;
.requestFocus(
FocusNode());
return;
},
child: rechargeFlowItem(
records[position],
position),
);
}, },
), child: rechargeFlowItem(
), records[position],
position),
);
},
))), ))),
], ],
))), ))),

Loading…
Cancel
Save