|
@@ -183,30 +183,38 @@ class LackOfFundsPopUpView: UIView {
|
|
@objc func depositClick() {
|
|
@objc func depositClick() {
|
|
self.dismissAnimated()
|
|
self.dismissAnimated()
|
|
|
|
|
|
|
|
+
|
|
|
|
+ print(self.server)
|
|
if self.server == "US" {
|
|
if self.server == "US" {
|
|
let vc = JDAFiatDepositsViewController()
|
|
let vc = JDAFiatDepositsViewController()
|
|
|
|
|
|
- vc.selectAccountIndex = 4
|
|
|
|
|
|
+ vc.selectAccountIndex = 3
|
|
currentVc()?.navigationController?.pushViewController(vc, animated: true)
|
|
currentVc()?.navigationController?.pushViewController(vc, animated: true)
|
|
} else if self.server == "HK" {
|
|
} else if self.server == "HK" {
|
|
let vc = JDAFiatDepositsViewController()
|
|
let vc = JDAFiatDepositsViewController()
|
|
|
|
|
|
- vc.selectAccountIndex = 1
|
|
|
|
|
|
+ vc.selectAccountIndex = 2
|
|
currentVc()?.navigationController?.pushViewController(vc, animated: true)
|
|
currentVc()?.navigationController?.pushViewController(vc, animated: true)
|
|
} else if self.server == "SH" {
|
|
} else if self.server == "SH" {
|
|
let vc = JDAFiatDepositsViewController()
|
|
let vc = JDAFiatDepositsViewController()
|
|
|
|
|
|
- vc.selectAccountIndex = 2
|
|
|
|
|
|
+ vc.selectAccountIndex = 1
|
|
currentVc()?.navigationController?.pushViewController(vc, animated: true)
|
|
currentVc()?.navigationController?.pushViewController(vc, animated: true)
|
|
} else if self.server == "SZ" {
|
|
} else if self.server == "SZ" {
|
|
let vc = JDAFiatDepositsViewController()
|
|
let vc = JDAFiatDepositsViewController()
|
|
|
|
|
|
- vc.selectAccountIndex = 3
|
|
|
|
|
|
+ vc.selectAccountIndex = 1
|
|
currentVc()?.navigationController?.pushViewController(vc, animated: true)
|
|
currentVc()?.navigationController?.pushViewController(vc, animated: true)
|
|
- } else if self.server == "CFD" {
|
|
|
|
|
|
+ }else if self.server == "CN" {
|
|
let vc = JDAFiatDepositsViewController()
|
|
let vc = JDAFiatDepositsViewController()
|
|
|
|
|
|
- vc.selectAccountIndex = 5
|
|
|
|
|
|
+ vc.selectAccountIndex = 1
|
|
|
|
+ currentVc()?.navigationController?.pushViewController(vc, animated: true)
|
|
|
|
+ }
|
|
|
|
+ else if self.server == "CFD" {
|
|
|
|
+ let vc = JDAFiatDepositsViewController()
|
|
|
|
+
|
|
|
|
+ vc.selectAccountIndex = 4
|
|
currentVc()?.navigationController?.pushViewController(vc, animated: true)
|
|
currentVc()?.navigationController?.pushViewController(vc, animated: true)
|
|
} else {
|
|
} else {
|
|
// 存入
|
|
// 存入
|