|
@@ -146,7 +146,7 @@ class KKOrderModificationAlert: UIView, KKAlertProtol {
|
|
|
|
|
|
var model:JDPositionModel?
|
|
|
var accountModel:JDTradeAccountModel?
|
|
|
- let spread:Decimal = 0.05
|
|
|
+ let spread:Decimal = 0.5
|
|
|
var type:PositionOrderModifierType = .modifyingHoldingOrders
|
|
|
|
|
|
convenience init(model: JDPositionModel, accountModel: JDTradeAccountModel, type:PositionOrderModifierType = .modifyingHoldingOrders) {
|
|
@@ -181,8 +181,8 @@ class KKOrderModificationAlert: UIView, KKAlertProtol {
|
|
|
|
|
|
let isAsk = model.cmd == "1" || model.cmd == "3" || model.cmd == "5"
|
|
|
|
|
|
- self.slEditItem.tipLabel.text = switchLanguage("止损价") + (isAsk ? "(高于当前价\(spread)或%5)" : "(低于当前价\(spread)或%5)")
|
|
|
- self.spEditItem.tipLabel.text = switchLanguage("止盈价") + (isAsk ? "(低于当前价\(spread)或%5)" : "(高于当前价\(spread)或%5)")
|
|
|
+ self.slEditItem.tipLabel.text = (isAsk ? switchLanguage("止损价至少高于现价") : switchLanguage("止损价至少低于现价")) + "\(spread)或%5"
|
|
|
+ self.spEditItem.tipLabel.text = (isAsk ? switchLanguage("止盈价至少低于现价") : switchLanguage("止盈价至少高于现价")) + "\(spread)或%5"
|
|
|
|
|
|
updateCurrentPrice()
|
|
|
}
|