Преглед изворни кода

提交内容
1、代码提交;

Handy_Cao пре 4 година
родитељ
комит
a842af5afe

+ 1 - 0
MTP_iOS/MTP2_iOS/BusinessCore/Global/MTP2BusinessCore.swift

@@ -329,6 +329,7 @@ class MTP2BusinessCore {
             myGoods.forEach { (obj) in
                 if let goodsInfo = self.goodsManager?.goodsInfos.first(where: {$0.goodsid == obj.goodsid}),
                    goodsInfo.getLast() != 0.0 {
+                    /// 最新价*持仓数量*合约单位
                     totalNum += (goodsInfo.getLast()*Double(obj.buycurpositionqty)*goodsInfo.agreeUnit)
                 } else {
                     totalNum += obj.buycurholderamount

+ 1 - 1
MTP_iOS/MTP2_iOS/UserInterface/Mine/MineViewController.swift

@@ -286,7 +286,7 @@ class MineViewController: BaseViewController {
                 let taAccountInfo = accountManager.getCurrentTAAccountInfo()
                 /// 余额
                 self.blance.attributedText = (!isOpen ? "******" : taAccountInfo?.currentBalance.toDownString(reserve: 2))!.withFont(.font_22).withTextColor(UIColorFromHex(rgbValue: 0x333333))
-                /// 冻结余额
+                /// 冻结余额 冻结保证金+其他冻结保证金+冻结手续费
                 let freezeAmount = (taAccountInfo?.freezeMargin ?? 0.0)+(taAccountInfo?.otherFreezeMargin ?? 0.0)+(taAccountInfo?.freezeCharge ?? 0.0)
                 self.freeze.text = "\(!isOpen ? "******" : freezeAmount.toDownString(reserve: 2))"
                 /// 市值