Commit 969d4aeb authored by pete谢兆麟's avatar pete谢兆麟

部分逻辑添加

parent 56baa4d7
...@@ -252,14 +252,12 @@ extension YHServiceOrderListView : UITableViewDelegate,UITableViewDataSource { ...@@ -252,14 +252,12 @@ extension YHServiceOrderListView : UITableViewDelegate,UITableViewDataSource {
vc.orderId = orderID vc.orderId = orderID
self.navigationController?.pushViewController(vc) self.navigationController?.pushViewController(vc)
} else if model.type == 23 { } else if model.type == 23 {
//赴港时间预约
} else if model.type == 24 {
//电子签字缴费 //电子签字缴费
let vc = YHVisaPaymentVC() let vc = YHVisaPaymentVC()
vc.orderID = orderID vc.orderID = orderID
navigationController?.pushViewController(vc) navigationController?.pushViewController(vc)
} else if model.type == 24 {
//赴港时间预约
} else if model.type == 25 { } else if model.type == 25 {
//赴港行程指引 //赴港行程指引
} else if model.type == 26 { } else if model.type == 26 {
......
...@@ -156,7 +156,10 @@ extension YHAddAdoptersViewController: UITableViewDelegate, UITableViewDataSourc ...@@ -156,7 +156,10 @@ extension YHAddAdoptersViewController: UITableViewDelegate, UITableViewDataSourc
} }
cell.deleteBlock = { [weak self] model in cell.deleteBlock = { [weak self] model in
guard let self = self else { return } guard let self = self else { return }
self.viewModel.postDependentsDel(id: model.id) { [weak self] success, error in
guard let self = self else { return }
self.getData()
}
} }
cell.clickBlock = { [weak self] model in cell.clickBlock = { [weak self] model in
guard let self = self else { return } guard let self = self else { return }
......
...@@ -90,4 +90,25 @@ class YHAddpterViewModel: YHBaseViewModel { ...@@ -90,4 +90,25 @@ class YHAddpterViewModel: YHBaseViewModel {
callBackBlock(false,err) callBackBlock(false,err)
} }
} }
func postDependentsDel(id: Int, callBackBlock:@escaping (_ success: Bool,_ error:YHErrorModel?)->()) {
let params: [String: Any] = ["id": id]
let strUrl = YHBaseUrlManager.shared.curURL() + YHAllApiName.Adopter.del
let _ = YHNetRequest.postRequest(url: strUrl, params: params) { [weak self] json, code in
//1. json字符串 转 对象
guard let self = self else { return }
if json.code == 200 {
let dic = json.data
callBackBlock(true,nil)
} else {
let err = YHErrorModel(errorCode: Int32(json.code), errorMsg: json.msg.isEmpty ? "" : json.msg)
callBackBlock(false,err)
}
} failBlock: { err in
callBackBlock(false,err)
}
}
} }
...@@ -269,14 +269,14 @@ extension YHServiceOrderProgressTableViewCell { ...@@ -269,14 +269,14 @@ extension YHServiceOrderProgressTableViewCell {
} }
} }
if model.type == 23 { if model.type == 24 {
titleLabel.text = "赴港办证预约" titleLabel.text = "赴港办证预约"
messageLabel.text = "抢号中~" messageLabel.text = "抢号中~"
buttonLabel.text = "去查看" buttonLabel.text = "去查看"
messageLabel.textColor = UIColor.yhGreyColor50 messageLabel.textColor = UIColor.yhGreyColor50
} }
if model.type == 24 { if model.type == 23 {
titleLabel.text = "电子签证缴费" titleLabel.text = "电子签证缴费"
messageLabel.text = "请根据指引缴费领取电子签证~" messageLabel.text = "请根据指引缴费领取电子签证~"
buttonLabel.text = "待缴费" buttonLabel.text = "待缴费"
...@@ -343,13 +343,13 @@ extension YHServiceOrderProgressTableViewCell { ...@@ -343,13 +343,13 @@ extension YHServiceOrderProgressTableViewCell {
buttonLabel.text = "已完成" buttonLabel.text = "已完成"
} }
if model.type == 23 { if model.type == 24 {
titleLabel.text = "赴港办证预约" titleLabel.text = "赴港办证预约"
messageLabel.text = "请填写意向办证时间,银河代预约~" messageLabel.text = "请填写意向办证时间,银河代预约~"
buttonLabel.text = "已完成" buttonLabel.text = "已完成"
} }
if model.type == 24 { if model.type == 23 {
titleLabel.text = "电子签证缴费" titleLabel.text = "电子签证缴费"
messageLabel.text = "请根据指引缴费领取电子签证~" messageLabel.text = "请根据指引缴费领取电子签证~"
buttonLabel.text = "已完成" buttonLabel.text = "已完成"
......
...@@ -456,6 +456,8 @@ class YHAllApiName { ...@@ -456,6 +456,8 @@ class YHAllApiName {
static let add = "super-app/order/information/dependent/add" static let add = "super-app/order/information/dependent/add"
// 新增配偶子女 // 新增配偶子女
static let managementAdd = "super-app/order/information/management/add" static let managementAdd = "super-app/order/information/management/add"
static let del = "super-app/order/information/dependents/del"
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment