|
|
@@ -254,13 +254,14 @@ class _ShopFlowPageState extends State<ShopFlowPage> {
|
|
|
return GestureDetector(
|
|
|
child: MyViews().getWalletItem(flow[index], context),
|
|
|
onTap: () {
|
|
|
- if(flow[index].traderUid!=0){
|
|
|
- MyShopBeanDataData data = MyShopBeanDataData();
|
|
|
- data.userName = flow[index].traderName;
|
|
|
- data.userUid = flow[index].traderUid;
|
|
|
- data.userPic = flow[index].traderPic;
|
|
|
- MyTools().toPage(context, MemberOrderFlowPage(data), (then){});
|
|
|
- }
|
|
|
+ if (flow[index].traderUid != 0) {
|
|
|
+ MyShopBeanDataData data = MyShopBeanDataData();
|
|
|
+ data.userName = flow[index].traderName;
|
|
|
+ data.userUid = flow[index].traderUid;
|
|
|
+ data.userPic = flow[index].traderPic;
|
|
|
+ MyTools().toPage(context,
|
|
|
+ MemberOrderFlowPage(data), (then) {});
|
|
|
+ }
|
|
|
},
|
|
|
behavior: HitTestBehavior.translucent,
|
|
|
);
|
|
|
@@ -278,8 +279,10 @@ class _ShopFlowPageState extends State<ShopFlowPage> {
|
|
|
StateSetter ss;
|
|
|
List<String> types = ['全部', '订单', '佣金'];
|
|
|
int typeIndex = 0;
|
|
|
- List<String> times = ['全部', '今天', '昨天', '本周', '上周', '本月'];
|
|
|
- int timeIndex = 0;
|
|
|
+
|
|
|
+ // List<String> times = ['全部', '今天', '昨天', '本周', '上周', '本月'];
|
|
|
+ List<String> times = ['昨天', '本周', '上周'];
|
|
|
+ int timeIndex = -1;
|
|
|
|
|
|
void showSelect() {
|
|
|
showModalBottomSheet(
|
|
|
@@ -490,8 +493,8 @@ class _ShopFlowPageState extends State<ShopFlowPage> {
|
|
|
timeIndex = i;
|
|
|
}
|
|
|
});
|
|
|
- if (timeIndex != 0) {
|
|
|
- getTime(timeIndex - 1);
|
|
|
+ if (timeIndex != -1) {
|
|
|
+ getTime(timeIndex +1);
|
|
|
}
|
|
|
},
|
|
|
behavior: HitTestBehavior.translucent,
|
|
|
@@ -532,8 +535,10 @@ class _ShopFlowPageState extends State<ShopFlowPage> {
|
|
|
flowTypeScancodeAilyPay
|
|
|
] : [flowTypeShopCommission]}");
|
|
|
}
|
|
|
- if (timeIndex != 0 && timeIndex != -1) {
|
|
|
- conditions.add("pay_time between ${getTime(timeIndex - 1)}");
|
|
|
+ if ( timeIndex != -1) {
|
|
|
+ conditions.add("pay_time between ${getTime(timeIndex +1)}");
|
|
|
+ }else{
|
|
|
+ conditions.add("pay_time between ${getTime(6)}");
|
|
|
}
|
|
|
if (typeIndex == 2) {
|
|
|
conditions.add('paid_amount>0');
|