修复退款审核问题
This commit is contained in:
parent
0ae76f1e23
commit
447c94a70f
|
@ -15,6 +15,7 @@ import baseRequest from "../../../utils/baseRequest";
|
|||
import Toast from "react-native-toast-message";
|
||||
import { generateSignature } from "../../../utils/crypto";
|
||||
import { useFocusEffect } from "@react-navigation/native";
|
||||
import dayjs from "dayjs";
|
||||
export default function RefundDetail({ navigation, route }) {
|
||||
const tailwind = useTailwind();
|
||||
const insets = useSafeAreaInsets();
|
||||
|
@ -130,7 +131,9 @@ export default function RefundDetail({ navigation, route }) {
|
|||
<View
|
||||
style={tailwind("flex-row flex-1 justify-end items-center")}
|
||||
>
|
||||
<Text style={tailwind("text-white")}>¥ {data?.price}</Text>
|
||||
<Text style={tailwind("text-white")}>
|
||||
¥ {data ? data?.price / 100 : "0"}
|
||||
</Text>
|
||||
</View>
|
||||
</View>
|
||||
<Divider style={tailwind("my-2")} />
|
||||
|
@ -156,7 +159,9 @@ export default function RefundDetail({ navigation, route }) {
|
|||
<View
|
||||
style={tailwind("flex-row flex-1 justify-end items-center")}
|
||||
>
|
||||
<Text style={tailwind("text-white")}>{data?.ct}</Text>
|
||||
<Text style={tailwind("text-white")}>
|
||||
{dayjs(data?.ct * 1000).format("YYYY-MM-DD HH:mm:ss")}
|
||||
</Text>
|
||||
</View>
|
||||
</View>
|
||||
<Divider style={tailwind("my-2")} />
|
||||
|
@ -169,7 +174,9 @@ export default function RefundDetail({ navigation, route }) {
|
|||
<View
|
||||
style={tailwind("flex-row flex-1 justify-end items-center")}
|
||||
>
|
||||
<Text style={tailwind("text-white")}>{data?.refund_t}</Text>
|
||||
<Text style={tailwind("text-white")}>
|
||||
{dayjs(data?.refund_t * 1000).format("YYYY-MM-DD HH:mm:ss")}
|
||||
</Text>
|
||||
</View>
|
||||
</View>
|
||||
<Divider style={tailwind("my-2")} />
|
||||
|
@ -218,7 +225,12 @@ export default function RefundDetail({ navigation, route }) {
|
|||
<View style={tailwind("flex-row items-start mt-4 pr-6")}>
|
||||
<CheckBox
|
||||
disabled={!checkAble}
|
||||
checked={selectedIndex == 4 || selectedIndex == 2}
|
||||
checked={
|
||||
(data && [2, 3, 4].includes(data?.refunds_status)) ||
|
||||
selectedIndex == 2
|
||||
}
|
||||
// data && data?.refunds_status === 4 ? 2 : selectedIndex
|
||||
|
||||
onPress={() => setIndex(2)}
|
||||
checkedIcon="dot-circle-o"
|
||||
uncheckedIcon="circle-o"
|
||||
|
@ -249,6 +261,7 @@ export default function RefundDetail({ navigation, route }) {
|
|||
}}
|
||||
>
|
||||
同意退回用户的[空间成员]费用,同时自动禁止用户再次购买此商品。
|
||||
{data && data?.refunds_status}
|
||||
</Text>
|
||||
</View>
|
||||
}
|
||||
|
@ -257,7 +270,10 @@ export default function RefundDetail({ navigation, route }) {
|
|||
<View style={tailwind("flex-row items-start mt-4 pr-6")}>
|
||||
<CheckBox
|
||||
disabled={!checkAble}
|
||||
checked={selectedIndex === -1}
|
||||
// checked={selectedIndex === -1}
|
||||
checked={
|
||||
(data && data?.refunds_status == -1) || selectedIndex == -1
|
||||
}
|
||||
onPress={() => setIndex(-1)}
|
||||
checkedIcon="dot-circle-o"
|
||||
uncheckedIcon="circle-o"
|
||||
|
|
Loading…
Reference in New Issue