Commit 00f869e7 authored by David黄金龙's avatar David黄金龙

新订单 showcase通过

parent 7d8dacdd
...@@ -80,6 +80,12 @@ class YHInformationPerfectListVC: YHBaseViewController { ...@@ -80,6 +80,12 @@ class YHInformationPerfectListVC: YHBaseViewController {
setupUI() setupUI()
loadData() loadData()
} }
override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
loadData()
}
} }
extension YHInformationPerfectListVC { extension YHInformationPerfectListVC {
......
...@@ -49,9 +49,9 @@ class YHInformationPerfectModel { ...@@ -49,9 +49,9 @@ class YHInformationPerfectModel {
status = isFinished ? "已完成" : "待完善" status = isFinished ? "已完成" : "待完善"
color = isFinished ? UIColor.mainTextColor : UIColor.labelTextColor2 color = isFinished ? UIColor.mainTextColor : UIColor.labelTextColor2
statusColor = isFinished ? UIColor.successColor : UIColor.labelTextColor2 statusColor = isFinished ? UIColor.successColor : UIColor.labelTextColor2
if type != 1 { // if type != 1 {
icon = isFinished ? icon : (icon + "_grey") // icon = isFinished ? icon : icon
} // }
} }
} }
......
...@@ -300,6 +300,26 @@ private extension YHBasicInfoFillView { ...@@ -300,6 +300,26 @@ private extension YHBasicInfoFillView {
additionHoldView.isHidden = true additionHoldView.isHidden = true
mutilChoiceHoldView.isHidden = false mutilChoiceHoldView.isHidden = false
// title = model.question
// if model.answer == "Y" {
// didClickResponseBtn(btn: answer2Btn)
// myTextView.text = model.info.count > 0 ? model.info : kTipsString
// } else {
// if model.answer == "N" {
// didClickResponseBtn(btn: answer1Btn)
// }
// }
//
// mutilChoiceHoldView.snp.removeConstraints()
// mutilChoiceHoldView.snp.remakeConstraints { make in
// make.top.equalTo(answer1Btn.snp.bottom).offset(12)
// make.left.right.equalToSuperview()
//// make.height.equalTo(78)
// make.bottom.equalToSuperview().offset(-18)
// }
let lable = UILabel() let lable = UILabel()
let str = "* 选择成员:" let str = "* 选择成员:"
let attributes: [NSAttributedString.Key: Any] = [ let attributes: [NSAttributedString.Key: Any] = [
......
...@@ -181,9 +181,9 @@ extension YHBasicInfoFillViewModel { ...@@ -181,9 +181,9 @@ extension YHBasicInfoFillViewModel {
//保存基本资料信息 //保存基本资料信息
func saveBasicInfo( params:[String : Any],callBackBlock:@escaping (_ success: Bool,_ error:YHErrorModel?)->()) { func saveBasicInfo( params:[String : Any],callBackBlock:@escaping (_ success: Bool,_ error:YHErrorModel?)->()) {
// let strUrl = YHBaseUrlManager.shared.curURL() + YHAllApiName.Basics.updateBasicInfoApi let strUrl = YHBaseUrlManager.shared.curURL() + YHAllApiName.Basics.updateBasicInfoApi
let strUrl = "http://192.168.25.21:10087/" + "infoflow/basics/update_basics" // let strUrl = "http://192.168.25.21:10087/" + "infoflow/basics/update_basics"
let _ = YHNetRequest.postRequest(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 }
......
...@@ -97,11 +97,12 @@ extension YHOtherInfoFillViewController { ...@@ -97,11 +97,12 @@ extension YHOtherInfoFillViewController {
let model = otherInfoVM.otherInfoFillData let model = otherInfoVM.otherInfoFillData
model?.is_update = false
let str = model?.toJSONString()
printLog(str)
//保存 //保存
if let param = model?.toDictionary() { if let param = model?.toDictionary() {
printLog("param ==>") printLog("param ==>")
printLog(param) printLog(param)
...@@ -113,12 +114,32 @@ extension YHOtherInfoFillViewController { ...@@ -113,12 +114,32 @@ extension YHOtherInfoFillViewController {
YHHUD.flash(message: msg) YHHUD.flash(message: msg)
} }
} }
} else {
printLog("error: 参数 转换 出错")
} }
} }
private func submitData() { private func submitData() {
//提交 //提交
let model = otherInfoVM.otherInfoFillData
model?.is_update = true
//保存
if let param = model?.toDictionary() {
printLog("param ==>")
printLog(param)
otherInfoVM.saveOtherInfo(params: param) { success, error in
if success == true {
YHHUD.flash(message: "保存成功")
} else {
let msg = error?.errorMsg ?? "保存失败"
YHHUD.flash(message: msg)
}
}
} else {
printLog("error: 参数 转换 出错")
}
} }
} }
......
...@@ -24,7 +24,7 @@ class YHOtherInfoFillModel: SmartCodable { ...@@ -24,7 +24,7 @@ class YHOtherInfoFillModel: SmartCodable {
// MARK: - Residence // MARK: - Residence
class Residence : SmartCodable { class Residence : SmartCodable {
var id: Int = -1 var id: String = ""
var country: String = "" var country: String = ""
var start_time: String = "" var start_time: String = ""
var end_time: String = "" var end_time: String = ""
......
...@@ -187,6 +187,8 @@ extension YHServiceCenterMainViewModel { ...@@ -187,6 +187,8 @@ extension YHServiceCenterMainViewModel {
return return
} }
arrInfoFillStep.removeAll()
if model.code == 200 { if model.code == 200 {
informationFillStepModel = resultModel informationFillStepModel = resultModel
......
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