|
|
@@ -179,11 +179,26 @@ onMounted(() => {
|
|
|
})
|
|
|
|
|
|
const riseRate = computed(() => {
|
|
|
- return useSystemStore().saleBatches.find(item => item.id == info.value.batchId)?.riseRate || 0
|
|
|
+ let _info = useSystemStore().saleBatches.find(item => item.saleBatch.id == info.value.batchId)
|
|
|
+ let _back = null
|
|
|
+ if (_info) {
|
|
|
+ _back = _info.extensions.find(item => {
|
|
|
+ return item.minPrice <= info.value.currentPrice && info.value.currentPrice <= item.maxPrice
|
|
|
+ })
|
|
|
+ }
|
|
|
+ // return useSystemStore().saleBatches.find(item => item.id == info.value.batchId)?.riseRate || 0
|
|
|
+ return _back?.riseRate || 0
|
|
|
})
|
|
|
|
|
|
const riseRatePercent = computed(() => {
|
|
|
- return useSystemStore().saleBatches.find(item => item.id == info.value.batchId)?.riseRate * 100 || 0
|
|
|
+ let _info = useSystemStore().saleBatches.find(item => item.saleBatch.id == info.value.batchId)
|
|
|
+ let _back = null
|
|
|
+ if (_info) {
|
|
|
+ _back = _info.extensions.find(item => {
|
|
|
+ return item.minPrice <= info.value.currentPrice && info.value.currentPrice <= item.maxPrice
|
|
|
+ })
|
|
|
+ }
|
|
|
+ return _back?.riseRate * 100 || 0
|
|
|
})
|
|
|
|
|
|
const nextPrice = computed(() => {
|