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

部分逻辑添加

parent 56baa4d7
......@@ -252,14 +252,12 @@ extension YHServiceOrderListView : UITableViewDelegate,UITableViewDataSource {
vc.orderId = orderID
self.navigationController?.pushViewController(vc)
} else if model.type == 23 {
//赴港时间预约
} else if model.type == 24 {
//电子签字缴费
let vc = YHVisaPaymentVC()
vc.orderID = orderID
navigationController?.pushViewController(vc)
} else if model.type == 24 {
//赴港时间预约
} else if model.type == 25 {
//赴港行程指引
} else if model.type == 26 {
......
......@@ -156,7 +156,10 @@ extension YHAddAdoptersViewController: UITableViewDelegate, UITableViewDataSourc
}
cell.deleteBlock = { [weak self] model in
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
guard let self = self else { return }
......
......@@ -90,4 +90,25 @@ class YHAddpterViewModel: YHBaseViewModel {
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 {
}
}
if model.type == 23 {
if model.type == 24 {
titleLabel.text = "赴港办证预约"
messageLabel.text = "抢号中~"
buttonLabel.text = "去查看"
messageLabel.textColor = UIColor.yhGreyColor50
}
if model.type == 24 {
if model.type == 23 {
titleLabel.text = "电子签证缴费"
messageLabel.text = "请根据指引缴费领取电子签证~"
buttonLabel.text = "待缴费"
......@@ -343,13 +343,13 @@ extension YHServiceOrderProgressTableViewCell {
buttonLabel.text = "已完成"
}
if model.type == 23 {
if model.type == 24 {
titleLabel.text = "赴港办证预约"
messageLabel.text = "请填写意向办证时间,银河代预约~"
buttonLabel.text = "已完成"
}
if model.type == 24 {
if model.type == 23 {
titleLabel.text = "电子签证缴费"
messageLabel.text = "请根据指引缴费领取电子签证~"
buttonLabel.text = "已完成"
......
......@@ -456,6 +456,8 @@ class YHAllApiName {
static let add = "super-app/order/information/dependent/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