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_ENABLE_MODULES = YES;
CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
CURRENT_PROJECT_VERSION = 2;
CURRENT_PROJECT_VERSION = 6;
DEVELOPMENT_TEAM = YF3Q8DVP52;
ENABLE_BITCODE = NO;
FRAMEWORK_SEARCH_PATHS = (
@ -822,7 +822,7 @@
CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES = NO;
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
CURRENT_PROJECT_VERSION = 2;
CURRENT_PROJECT_VERSION = 6;
DEVELOPMENT_TEAM = YF3Q8DVP52;
ENABLE_BITCODE = NO;
FRAMEWORK_SEARCH_PATHS = (
@ -916,7 +916,7 @@
CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES = NO;
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
CURRENT_PROJECT_VERSION = 2;
CURRENT_PROJECT_VERSION = 6;
DEVELOPMENT_TEAM = YF3Q8DVP52;
ENABLE_BITCODE = NO;
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,
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: balanceChangeItem(
records[position], position),
);
},
),
: Container(
padding:EdgeInsets.only(top: 16.h),
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: balanceChangeItem(
records[position], position),
);
},
),
))),
),

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

@ -126,9 +126,7 @@ class _BusVipList extends State<BusVipList> {
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: Colors.white,
body: Column(
return Column(
children: [
Container(
width: double.infinity,
@ -163,7 +161,7 @@ class _BusVipList extends State<BusVipList> {
children: [
Padding(
padding: EdgeInsets.only(
left: 20.w,top: 16.h
left: 20.w,top: 16.h,bottom: 16.h
),
child: Row(
children: [
@ -189,56 +187,51 @@ class _BusVipList extends State<BusVipList> {
networkStatus == -1
? noNetwork()
: ((networkStatus == 0)
? ListView.builder(
padding: EdgeInsets.zero,
itemCount: 10,
scrollDirection: Axis.vertical,
shrinkWrap: true,
physics: BouncingScrollPhysics(),
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],
position),
);
},
),
),
))),
? ListView.builder(
padding: EdgeInsets.zero,
itemCount: 10,
scrollDirection: Axis.vertical,
shrinkWrap: true,
physics: BouncingScrollPhysics(),
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),
)
: 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),
);
},
))),
],
)))),
],
));
);
}
///

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

@ -163,7 +163,7 @@ class _VipRechargeFlow extends State<VipRechargeFlow> {
child: Column(
children: [
Padding(
padding: EdgeInsets.only(left: 20.w, top: 16.h),
padding: EdgeInsets.only(left: 20.w, top: 16.h,bottom: 16.h),
child: Row(
children: [
Container(
@ -208,31 +208,26 @@ class _VipRechargeFlow extends State<VipRechargeFlow> {
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),
);
: 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