🦄 refactor:订单列表对接100%
This commit is contained in:
@@ -44,5 +44,7 @@
|
||||
font-family: PingFangSC-Regular, PingFang SC;
|
||||
font-weight: 400;
|
||||
color: #4581FF;
|
||||
text-align: center;
|
||||
line-height: 72px;
|
||||
}
|
||||
}
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user