|
@@ -442,7 +442,7 @@ extension DealSimplenessCell {
|
|
|
|
|
|
let pop = KMenuPopupMenuView()
|
|
|
var list = [(UIImage, String, Bool)]()
|
|
|
- if self.VM?.isSell == true {
|
|
|
+ if self.VM?.isSell.value == true {
|
|
|
list = [
|
|
|
(UIImage(), switchLanguage("高价挂单卖出"), true),
|
|
|
(UIImage(), switchLanguage("低价挂单卖出"), true),
|
|
@@ -457,7 +457,7 @@ extension DealSimplenessCell {
|
|
|
pop.showRelyPopupView(view: self.limitView, source: list, sStr: self.limitTypeLab.text ?? "") { [weak self] index in
|
|
|
if index >= 0 {
|
|
|
self?.limitTypeLab.text = list[index].1
|
|
|
- if self!.VM?.isSell == true {
|
|
|
+ if self!.VM?.isSell.value == true {
|
|
|
if index == 0 {
|
|
|
self?.VM?.selectOrderType = 3
|
|
|
} else {
|
|
@@ -504,14 +504,14 @@ extension DealSimplenessCell {
|
|
|
|
|
|
@objc func clickSellBtnAction() {
|
|
|
self.endEditing(true)
|
|
|
- self.VM?.isSell = true
|
|
|
+ self.VM?.isSell.value = true
|
|
|
self.updateLayer()
|
|
|
self.clickRefreshBlock?()
|
|
|
}
|
|
|
|
|
|
@objc func clickBuyBtnAction() {
|
|
|
self.endEditing(true)
|
|
|
- self.VM?.isSell = false
|
|
|
+ self.VM?.isSell.value = false
|
|
|
self.updateLayer()
|
|
|
self.clickRefreshBlock?()
|
|
|
}
|
|
@@ -528,7 +528,7 @@ extension DealSimplenessCell {
|
|
|
}
|
|
|
|
|
|
if self.VM?.isMarket == true {
|
|
|
- if self.VM?.isSell == true {
|
|
|
+ if self.VM?.isSell.value == true {
|
|
|
self.VM?.selectOrderType = 1
|
|
|
} else {
|
|
|
self.VM?.selectOrderType = 0
|
|
@@ -579,7 +579,7 @@ extension DealSimplenessCell {
|
|
|
self.cashBgView.isHidden = true
|
|
|
}
|
|
|
|
|
|
- if VM.isSell {
|
|
|
+ if VM.isSell.value {
|
|
|
self.sellBtn.backgroundColor = exchangeColorAndImage(increase: -1).0
|
|
|
self.sellTitleLab.textColor = WhiteTextColor
|
|
|
self.sellLab.textColor = WhiteTextColor
|