|
|
@ -19,7 +19,7 @@ class MineGoodsPage extends StatefulWidget {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
class _MineGoodsPageState extends State<MineGoodsPage> {
|
|
|
|
class _MineGoodsPageState extends State<MineGoodsPage> {
|
|
|
|
EasyRefreshController? _controller;
|
|
|
|
late EasyRefreshController _controller;
|
|
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
@override
|
|
|
|
void initState() {
|
|
|
|
void initState() {
|
|
|
@ -30,13 +30,14 @@ class _MineGoodsPageState extends State<MineGoodsPage> {
|
|
|
|
@override
|
|
|
|
@override
|
|
|
|
void dispose() {
|
|
|
|
void dispose() {
|
|
|
|
super.dispose();
|
|
|
|
super.dispose();
|
|
|
|
_controller!.dispose();
|
|
|
|
_controller.dispose();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
InkWell _frmLoss(int? id) {
|
|
|
|
InkWell _frmLoss(int? id) {
|
|
|
|
return InkWell(
|
|
|
|
return InkWell(
|
|
|
|
onTap: () async {
|
|
|
|
onTap: () async {
|
|
|
|
await ManagerFunc.fromLoss(id);
|
|
|
|
await ManagerFunc.fromLoss(id);
|
|
|
|
|
|
|
|
_controller.callRefresh();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
child: Container(
|
|
|
|
child: Container(
|
|
|
|
width: 120.w,
|
|
|
|
width: 120.w,
|
|
|
@ -95,16 +96,16 @@ class _MineGoodsPageState extends State<MineGoodsPage> {
|
|
|
|
color: Color(0xff4a4b51),
|
|
|
|
color: Color(0xff4a4b51),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Container(
|
|
|
|
// Container(
|
|
|
|
margin: EdgeInsets.only(top: 16.w),
|
|
|
|
// margin: EdgeInsets.only(top: 16.w),
|
|
|
|
child: Text(
|
|
|
|
// child: Text(
|
|
|
|
'借还数量:10个',
|
|
|
|
// '借还数量:10个',
|
|
|
|
style: TextStyle(
|
|
|
|
// style: TextStyle(
|
|
|
|
fontSize: 24.sp,
|
|
|
|
// fontSize: 24.sp,
|
|
|
|
color: Color(0xff333333),
|
|
|
|
// color: Color(0xff333333),
|
|
|
|
),
|
|
|
|
// ),
|
|
|
|
),
|
|
|
|
// ),
|
|
|
|
),
|
|
|
|
// ),
|
|
|
|
Container(
|
|
|
|
Container(
|
|
|
|
margin: EdgeInsets.only(top: 16.w),
|
|
|
|
margin: EdgeInsets.only(top: 16.w),
|
|
|
|
child: Text(
|
|
|
|
child: Text(
|
|
|
@ -131,7 +132,7 @@ class _MineGoodsPageState extends State<MineGoodsPage> {
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
Text(
|
|
|
|
Text(
|
|
|
|
'借用状态: ${BeeMap.borrowStatus}',
|
|
|
|
'借用状态: ${BeeMap.borrowStatus[model.borrowStatus]}',
|
|
|
|
style: TextStyle(
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: 24.sp,
|
|
|
|
fontSize: 24.sp,
|
|
|
|
color: Color(0xff999999),
|
|
|
|
color: Color(0xff999999),
|
|
|
@ -167,26 +168,6 @@ class _MineGoodsPageState extends State<MineGoodsPage> {
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
return BeeScaffold(
|
|
|
|
return BeeScaffold(
|
|
|
|
title: '我的借还物品',
|
|
|
|
title: '我的借还物品',
|
|
|
|
// body: RefreshConfiguration(
|
|
|
|
|
|
|
|
// child: SmartRefresher(
|
|
|
|
|
|
|
|
// controller: _refreshController,
|
|
|
|
|
|
|
|
// header: WaterDropHeader(),
|
|
|
|
|
|
|
|
// footer: ClassicFooter(),
|
|
|
|
|
|
|
|
// onRefresh: _onRefresh,
|
|
|
|
|
|
|
|
// onLoading: _onLoading,
|
|
|
|
|
|
|
|
// enablePullUp: true,
|
|
|
|
|
|
|
|
// child: ListView.builder(
|
|
|
|
|
|
|
|
// itemBuilder: (BuildContext context, int index) => _goodsCard(
|
|
|
|
|
|
|
|
// _listGoods[index]['title'],
|
|
|
|
|
|
|
|
// _listGoods[index]['borrowTime'],
|
|
|
|
|
|
|
|
// _listGoods[index]['timeLength'],
|
|
|
|
|
|
|
|
// _listGoods[index]['status'],
|
|
|
|
|
|
|
|
// _listGoods[index]['goodsNum'],
|
|
|
|
|
|
|
|
// ),
|
|
|
|
|
|
|
|
// itemCount: _listGoods.length,
|
|
|
|
|
|
|
|
// ),
|
|
|
|
|
|
|
|
// ),
|
|
|
|
|
|
|
|
// ),
|
|
|
|
|
|
|
|
body: BeeListView<MineGoodsModel>(
|
|
|
|
body: BeeListView<MineGoodsModel>(
|
|
|
|
path: API.manager.articleBorrowMylist,
|
|
|
|
path: API.manager.articleBorrowMylist,
|
|
|
|
controller: _controller,
|
|
|
|
controller: _controller,
|
|
|
|