Commit fca98842 authored by David黄金龙's avatar David黄金龙

基本资料 填写 优化

parent e7949beb
...@@ -118,8 +118,6 @@ extension YHBasicInfoFillViewController { ...@@ -118,8 +118,6 @@ extension YHBasicInfoFillViewController {
let value = ["has":item0.answer,"info":item0.answer == "Y" ? item0.info : ""] let value = ["has":item0.answer,"info":item0.answer == "Y" ? item0.info : ""]
applicant.updateValue(value, forKey: "has_deny") applicant.updateValue(value, forKey: "has_deny")
} }
else if index0 == 3 { else if index0 == 3 {
let value = ["has":item0.answer,"info":item0.answer == "Y" ? item0.info : ""] let value = ["has":item0.answer,"info":item0.answer == "Y" ? item0.info : ""]
applicant.updateValue(value, forKey: "has_breaking_law") applicant.updateValue(value, forKey: "has_breaking_law")
......
...@@ -323,7 +323,6 @@ extension YHOtherPickerView: UIPickerViewDelegate, UIPickerViewDataSource { ...@@ -323,7 +323,6 @@ extension YHOtherPickerView: UIPickerViewDelegate, UIPickerViewDataSource {
} }
} }
// 选中背景色 // 选中背景色
if #available(iOS 14.0, *), pickerView.subviews.count > 1 { if #available(iOS 14.0, *), pickerView.subviews.count > 1 {
pickerView.subviews[1].backgroundColor = UIColor(hex: 0x4487F9, alpha: 0.06) pickerView.subviews[1].backgroundColor = UIColor(hex: 0x4487F9, alpha: 0.06)
......
...@@ -283,11 +283,10 @@ extension YHOtherInfoFillViewModel { ...@@ -283,11 +283,10 @@ extension YHOtherInfoFillViewModel {
} }
} }
//保存其他资料信息 //保存其他资料信息
func saveOtherInfo( params:[String : Any],callBackBlock:@escaping (_ success: Bool,_ error:YHErrorModel?)->()) { func saveOtherInfo( params:[String : Any],callBackBlock:@escaping (_ success: Bool,_ error:YHErrorModel?)->()) {
let strUrl = YHBaseUrlManager.shared.curURL() + YHAllApiName.Order.updateOtherInfoApi let strUrl = YHBaseUrlManager.shared.curURL() + YHAllApiName.Order.updateOtherInfoApi
let _ = YHNetRequest.getRequest(url: strUrl,params: params) { [weak self] json, code in let _ = YHNetRequest.postRequest(url: strUrl,params: params) { [weak self] json, code in
//1. json字符串 转 对象 //1. json字符串 转 对象
guard self != nil else { return } guard self != nil else { return }
guard let model = NetBaseModel.deserialize(dict: json) else { guard let model = NetBaseModel.deserialize(dict: json) else {
......
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