|
|
@@ -137,96 +137,97 @@ class _ShopFlowPageState extends State<ShopFlowPage> {
|
|
|
? SingleChildScrollView(child: noData())
|
|
|
: ListView.builder(
|
|
|
itemBuilder: (c, index) {
|
|
|
- return Container(
|
|
|
- padding: EdgeInsets.symmetric(horizontal: 15),
|
|
|
- child: Column(
|
|
|
- children: [
|
|
|
- Row(
|
|
|
- children: [
|
|
|
- Container(
|
|
|
- child: ClipRRect(
|
|
|
- child: flow[index].userUid == 0
|
|
|
- ? Image.asset(
|
|
|
- 'images/app_logo.png',
|
|
|
- width: 50,
|
|
|
- height: 50,
|
|
|
- )
|
|
|
- : MyViews().netImg(imgURL(flow[index].userPic), 50, 50),
|
|
|
- borderRadius: BorderRadius.all(Radius.circular(25)),
|
|
|
- ),
|
|
|
- margin: EdgeInsets.only(right: 12),
|
|
|
- ),
|
|
|
- Expanded(
|
|
|
- child: Column(
|
|
|
- children: [
|
|
|
- Row(
|
|
|
- children: [
|
|
|
- Expanded(
|
|
|
- child: Text(
|
|
|
- flow[index].userUid == 0 ? '平台' : flow[index].userName,
|
|
|
- style: TextStyle(
|
|
|
- color: MyColors.c333333, fontSize: 14),
|
|
|
- maxLines: 1,
|
|
|
- overflow: TextOverflow.ellipsis,
|
|
|
- softWrap: true,
|
|
|
- ),
|
|
|
- ),
|
|
|
- Text(
|
|
|
- '${flow[index].paidAmount}',
|
|
|
- style: TextStyle(
|
|
|
- color: flow[index].paidAmount > 0
|
|
|
- ? MyColors.cff3646
|
|
|
- : MyColors.c237C02,
|
|
|
- fontSize: 15,
|
|
|
- fontWeight: FontWeight.bold),
|
|
|
- ),
|
|
|
- ],
|
|
|
- mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
- ),
|
|
|
- Row(
|
|
|
- children: [
|
|
|
- Text(
|
|
|
- flow[index].userUid == 0 ? "" : 'ID:${hideUID(flow[index].userUid.toString())}',
|
|
|
- style:
|
|
|
- TextStyle(color: MyColors.c666666, fontSize: 12),
|
|
|
- ),
|
|
|
- Text(
|
|
|
- flow[index].payTime,
|
|
|
- style:
|
|
|
- TextStyle(color: MyColors.c666666, fontSize: 11),
|
|
|
- ),
|
|
|
- ],
|
|
|
- mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
- ),
|
|
|
- Row(
|
|
|
- children: [
|
|
|
- Text(
|
|
|
- '${flowType(flow[index].type)}',
|
|
|
- style:
|
|
|
- TextStyle(color: MyColors.c666666, fontSize: 12),
|
|
|
- ),
|
|
|
- if(flow[index].userUid!=0)
|
|
|
- Text(
|
|
|
- '${flow[index].userBalance}',
|
|
|
- style:
|
|
|
- TextStyle(color: MyColors.c666666, fontSize: 11),
|
|
|
- ),
|
|
|
- ],
|
|
|
- mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
- )
|
|
|
- ],
|
|
|
- ),
|
|
|
- )
|
|
|
- ],
|
|
|
- ),
|
|
|
- Container(
|
|
|
- color: MyColors.cE7E7E7,
|
|
|
- height: 0.5,
|
|
|
- margin: EdgeInsets.only(top: 14, bottom: 12),
|
|
|
- )
|
|
|
- ],
|
|
|
- ),
|
|
|
- );
|
|
|
+// return Container(
|
|
|
+// padding: EdgeInsets.symmetric(horizontal: 15),
|
|
|
+// child: Column(
|
|
|
+// children: [
|
|
|
+// Row(
|
|
|
+// children: [
|
|
|
+// Container(
|
|
|
+// child: ClipRRect(
|
|
|
+// child: flow[index].userUid == 0
|
|
|
+// ? Image.asset(
|
|
|
+// 'images/app_logo.png',
|
|
|
+// width: 50,
|
|
|
+// height: 50,
|
|
|
+// )
|
|
|
+// : MyViews().netImg(imgURL(flow[index].userPic), 50, 50),
|
|
|
+// borderRadius: BorderRadius.all(Radius.circular(25)),
|
|
|
+// ),
|
|
|
+// margin: EdgeInsets.only(right: 12),
|
|
|
+// ),
|
|
|
+// Expanded(
|
|
|
+// child: Column(
|
|
|
+// children: [
|
|
|
+// Row(
|
|
|
+// children: [
|
|
|
+// Expanded(
|
|
|
+// child: Text(
|
|
|
+// flow[index].userUid == 0 ? '平台' : flow[index].userName,
|
|
|
+// style: TextStyle(
|
|
|
+// color: MyColors.c333333, fontSize: 14),
|
|
|
+// maxLines: 1,
|
|
|
+// overflow: TextOverflow.ellipsis,
|
|
|
+// softWrap: true,
|
|
|
+// ),
|
|
|
+// ),
|
|
|
+// Text(
|
|
|
+// '${flow[index].paidAmount}',
|
|
|
+// style: TextStyle(
|
|
|
+// color: flow[index].paidAmount > 0
|
|
|
+// ? MyColors.cff3646
|
|
|
+// : MyColors.c237C02,
|
|
|
+// fontSize: 15,
|
|
|
+// fontWeight: FontWeight.bold),
|
|
|
+// ),
|
|
|
+// ],
|
|
|
+// mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
+// ),
|
|
|
+// Row(
|
|
|
+// children: [
|
|
|
+// Text(
|
|
|
+// flow[index].userUid == 0 ? "" : 'ID:${hideUID(flow[index].userUid.toString())}',
|
|
|
+// style:
|
|
|
+// TextStyle(color: MyColors.c666666, fontSize: 12),
|
|
|
+// ),
|
|
|
+// Text(
|
|
|
+// flow[index].payTime,
|
|
|
+// style:
|
|
|
+// TextStyle(color: MyColors.c666666, fontSize: 11),
|
|
|
+// ),
|
|
|
+// ],
|
|
|
+// mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
+// ),
|
|
|
+// Row(
|
|
|
+// children: [
|
|
|
+// Text(
|
|
|
+// '${flowType(flow[index].type)}',
|
|
|
+// style:
|
|
|
+// TextStyle(color: MyColors.c666666, fontSize: 12),
|
|
|
+// ),
|
|
|
+// if(flow[index].userUid!=0)
|
|
|
+// Text(
|
|
|
+// '${flow[index].userBalance}',
|
|
|
+// style:
|
|
|
+// TextStyle(color: MyColors.c666666, fontSize: 11),
|
|
|
+// ),
|
|
|
+// ],
|
|
|
+// mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
+// )
|
|
|
+// ],
|
|
|
+// ),
|
|
|
+// )
|
|
|
+// ],
|
|
|
+// ),
|
|
|
+// Container(
|
|
|
+// color: MyColors.cE7E7E7,
|
|
|
+// height: 0.5,
|
|
|
+// margin: EdgeInsets.only(top: 14, bottom: 12),
|
|
|
+// )
|
|
|
+// ],
|
|
|
+// ),
|
|
|
+// );
|
|
|
+ return MyViews().getWalletItem(flow[index], context);
|
|
|
},
|
|
|
padding: EdgeInsets.only(top: 13),
|
|
|
itemCount: flow.length,
|
|
|
@@ -482,7 +483,8 @@ class _ShopFlowPageState extends State<ShopFlowPage> {
|
|
|
|
|
|
void myFlow() {
|
|
|
var conditions = [
|
|
|
- 'shop_uid == ${widget.data.shopUid}'
|
|
|
+ 'shop_uid == ${widget.data.shopUid}',
|
|
|
+ 'user_uid == ${widget.data.ownerUid}'
|
|
|
];
|
|
|
if (typeIndex != 0 && typeIndex != -1) {
|
|
|
conditions.add("type IN ${typeIndex == 1 ? [
|