|
|
@@ -39,7 +39,7 @@
|
|
|
<div class="price-right-content">
|
|
|
<div class="val">
|
|
|
<small>{{ $t('balance.symbol') }}</small>
|
|
|
- <span>{{ info.premium || 0 }}</span>
|
|
|
+ <span>{{ nextPrice || 0 }}</span>
|
|
|
</div>
|
|
|
<div class="name">明日可卖</div>
|
|
|
</div>
|
|
|
@@ -143,6 +143,7 @@ import { IonButton, alertController } from '@ionic/vue'
|
|
|
import { useUserStore } from '@/stores/user'
|
|
|
import { mapState } from 'pinia'
|
|
|
import { useSystemStore } from '../stores/system'
|
|
|
+import { accAdd, accMul } from '../plugins/calc'
|
|
|
|
|
|
const route = useRoute()
|
|
|
const router = useRouter()
|
|
|
@@ -170,6 +171,13 @@ const riseRatePercent = computed(() => {
|
|
|
return useSystemStore().riseRatePercent
|
|
|
})
|
|
|
|
|
|
+const riseRate = computed(() => {
|
|
|
+ return useSystemStore().riseRate
|
|
|
+})
|
|
|
+const nextPrice = computed(() => {
|
|
|
+ return (accMul(info.value.currentPrice || 0, accAdd(1, riseRate.value)) || 0).toFixed(2)
|
|
|
+})
|
|
|
+
|
|
|
const showPayModal = ref(false)
|
|
|
const { height: windowHeight } = useWindowSize()
|
|
|
const breakpoint = computed(() => {
|