Commit 95be55e0 by lei

1

parent daa7ebe1
......@@ -155,15 +155,20 @@ const headerBtns = computed(() => [
value: "echart",
},
]);
const props = defineProps<{
token: string;
scene: string;
tb: string;
currentPath: string;
r24h: number;
mt: string;
up?: number;
}>();
const props = withDefaults(
defineProps<{
token: string;
scene: string;
tb: string;
currentPath: string;
r24h: number;
mt: string;
up?: number;
}>(),
{
up: 0,
}
);
const emit = defineEmits(["update:setPool", "SettwitterRul"]);
const r24h = ref("");
const numR24h = ref<string>("");
......@@ -195,8 +200,8 @@ const getPriceRange = () => {
// -,跌
let newR24h = parseFloat((proR24h + "").replace("-", ""));
// 原价
let oldPrice = props.up / (1 - newR24h);
numR24h.value = oldPrice - props.up + "";
let oldPrice = up / (1 - newR24h);
numR24h.value = oldPrice - up + "";
numR24h.value = "-" + parseCoinAmount(numR24h.value);
} else if (proR24h == 0) {
numR24h.value = "+0";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment