|
|
@@ -532,7 +532,7 @@ class SwapsDelistingActivity : BaseActivity<SwapsDelistingViewModel>(){
|
|
|
}else{
|
|
|
val numberInput = onePriceInputNumberEdittext.text.toString().toDouble()
|
|
|
if (priceType.value == 1){//市价计算
|
|
|
- text = NumberUtils.roundNum(viewModel.quoteDayData.value?.getPrice()?.times(numberInput)?.times(goodsInfo.agreeunit) ?: 0.0,2) + " 需履约保证金 :" + infoc?.getMargainValue(amout = viewModel.quoteDayData.value?.getPrice()?.times(numberInput) ?: 0.0,number = numberInput ?: 0.0,goodsid = goodsId ?: "0")
|
|
|
+ text = NumberUtils.roundNum(viewModel.quoteDayData.value?.getPrice()?.times(numberInput)?.times(goodsInfo.agreeunit) ?: 0.0,2) + " 需履约保证金 :" + infoc?.getMargainValue(amout = viewModel.quoteDayData.value?.getPrice()?.times(numberInput)?.times(goodsInfo.agreeunit) ?: 0.0,number = numberInput ?: 0.0,goodsid = goodsId ?: "0")
|
|
|
}else{//限价计算
|
|
|
if (limit_price_edittext.text.toString().isNullOrEmpty()){
|
|
|
text = "--"
|