🦄 refactor:订单列表对接100%

This commit is contained in:
Haiyi
2022-09-14 11:57:35 +08:00
parent afaad76fe3
commit a208802231
16 changed files with 878 additions and 69 deletions
@@ -44,5 +44,7 @@
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #4581FF;
text-align: center;
line-height: 72px;
}
}
+6 -6
View File
@@ -8,9 +8,9 @@ interface prosObj {
status?: Number,
payment_method?: Number
}
cancle?: () => void,
nextBuy?: () => void,
toPay?: () => void,
cancle?: (any) => void,
nextBuy?: (any) => void,
toPay?: (any) => void,
}
export default memo((props: prosObj) => {
@@ -67,13 +67,13 @@ export default memo((props: prosObj) => {
return (
<View className={style.flexBox}>
{
showCancel && <View className={style.cancle} onClick={() => cancle?.()}>取消订单</View>
showCancel && <View className={style.cancle} onClick={(e) => cancle?.(e)}>取消订单</View>
}
{
showBuy && <View className={style.nextBuy} onClick={() => nextBuy?.()}>再次购买</View>
showBuy && <View className={style.nextBuy} onClick={(e) => nextBuy?.(e)}>再次购买</View>
}
{
canBuy && <View className={style.toBuy} onClick={() => toPay?.()}>去付款</View>
canBuy && <View className={style.toBuy} onClick={(e) => toPay?.(e)}>去付款</View>
}
</View>