|
|
@@ -20,7 +20,7 @@
|
|
|
<script lang="ts" setup>
|
|
|
import { PropType } from 'vue'
|
|
|
import { Image } from 'vant'
|
|
|
-import { getFileUrl, handleNumberValue } from '@/filters'
|
|
|
+import { getFileUrl, handleNumberValue, formatDecimal } from '@/filters'
|
|
|
import { useNavigation } from '@mobile/router/navigation'
|
|
|
import { BuyOrSell, BuildType, getGoodsCurrencyName } from '@/constants/order'
|
|
|
import Waterfall from '@mobile/components/base/waterfall/index.vue'
|
|
|
@@ -38,8 +38,8 @@ const futureStore = useFuturesStore()
|
|
|
|
|
|
// 获取商品价格
|
|
|
const getPrice = (item: Model.TCEGoodsCollectionRsp) => {
|
|
|
- const { ask = 0, currencyid = 0 } = futureStore.getGoodsQuote(item.defaultgoodsid).value ?? {}
|
|
|
- return ask ? getGoodsCurrencyName(currencyid) + ask : handleNumberValue()
|
|
|
+ const { ask = 0, currencyid = 0, decimalplace } = futureStore.getGoodsQuote(item.defaultgoodsid).value ?? {}
|
|
|
+ return ask ? getGoodsCurrencyName(currencyid) + formatDecimal(ask, decimalplace) : handleNumberValue()
|
|
|
}
|
|
|
|
|
|
// 获取价格颜色
|