|
|
@@ -415,14 +415,45 @@ class MoneyInfoUI(
|
|
|
* 余额=可用+冻结;
|
|
|
*/
|
|
|
viewModel.usedAccountData.bindOptional(context) {
|
|
|
+// if (it?.valueOfposition_keep_watch_profit_and_loss ?: 0.0 > 0) {
|
|
|
+// val parmasvalue =
|
|
|
+// GlobalDataCollection.instance?.getSystemParamsValue("143")
|
|
|
+// if (parmasvalue == "1") {
|
|
|
+// text = NumberUtils.roundNum(
|
|
|
+// NumberUtils.doubleDistortion(
|
|
|
+// it?.canUserAmount?.plus(it.valueOfposition_keep_watch_profit_and_loss)
|
|
|
+// ?.toString()
|
|
|
+// ), 2
|
|
|
+// )
|
|
|
+// } else if (parmasvalue == "0") {
|
|
|
+// text = NumberUtils.roundNum(
|
|
|
+// NumberUtils.doubleDistortion(it?.canUserAmount?.toString()),
|
|
|
+// 2
|
|
|
+// )
|
|
|
+// }
|
|
|
+// } else {
|
|
|
+// text = NumberUtils.roundNum(
|
|
|
+// NumberUtils.doubleDistortion(
|
|
|
+// it?.canUserAmount?.plus(it.valueOfposition_keep_watch_profit_and_loss)
|
|
|
+// ?.toString()
|
|
|
+// ), 2
|
|
|
+// )
|
|
|
+// }
|
|
|
+// val freezeAmount = it?.freezemargin?.plus(it.otherfreezemargin)?.plus(it.freezecharge)?.plus(it.outamountfreeze)//冻结金额
|
|
|
+// val balance = it?.currentbalance?.minus(freezeAmount ?: 0.0)//
|
|
|
+// text = NumberUtils.roundNum(NumberUtils.doubleDistortion(balance?.toString()),2)
|
|
|
+
|
|
|
if (it?.valueOfposition_keep_watch_profit_and_loss ?: 0.0 > 0) {
|
|
|
val parmasvalue =
|
|
|
- GlobalDataCollection.instance?.getSystemParamsValue("143")
|
|
|
+ GlobalDataCollection.instance?.getSystemParamsValue(
|
|
|
+ "113"
|
|
|
+ )
|
|
|
if (parmasvalue == "1") {
|
|
|
text = NumberUtils.roundNum(
|
|
|
NumberUtils.doubleDistortion(
|
|
|
- it?.canUserAmount?.plus(it.valueOfposition_keep_watch_profit_and_loss)
|
|
|
- ?.toString()
|
|
|
+ it?.canUserAmount?.plus(
|
|
|
+ it.valueOfposition_keep_watch_profit_and_loss
|
|
|
+ )?.toString()
|
|
|
), 2
|
|
|
)
|
|
|
} else if (parmasvalue == "0") {
|
|
|
@@ -434,14 +465,12 @@ class MoneyInfoUI(
|
|
|
} else {
|
|
|
text = NumberUtils.roundNum(
|
|
|
NumberUtils.doubleDistortion(
|
|
|
- it?.canUserAmount?.plus(it.valueOfposition_keep_watch_profit_and_loss)
|
|
|
- ?.toString()
|
|
|
+ it?.canUserAmount?.plus(
|
|
|
+ it.valueOfposition_keep_watch_profit_and_loss
|
|
|
+ )?.toString()
|
|
|
), 2
|
|
|
)
|
|
|
}
|
|
|
-// val freezeAmount = it?.freezemargin?.plus(it.otherfreezemargin)?.plus(it.freezecharge)?.plus(it.outamountfreeze)//冻结金额
|
|
|
-// val balance = it?.currentbalance?.minus(freezeAmount ?: 0.0)//
|
|
|
-// text = NumberUtils.roundNum(NumberUtils.doubleDistortion(balance?.toString()),2)
|
|
|
}
|
|
|
textSizeAuto = 36
|
|
|
textColorInt = R.color.rma_black_33
|