Commit 36d3a15d authored by David黄金龙's avatar David黄金龙

完成 提交逻辑

parent bd7f937e
...@@ -214,13 +214,15 @@ extension YHInformationPerfectListVC { ...@@ -214,13 +214,15 @@ extension YHInformationPerfectListVC {
} }
} }
//我的评分 -> 我的方案
@objc func goScoreVC() { @objc func goScoreVC() {
//我的评分 // //我的评分
let vc = YHScoreDetailViewController() // let vc = YHScoreDetailViewController()
vc.orderId = orderId // vc.orderId = orderId
vc.model = serviceCenterMainReqVM.allInfoScoreModel // vc.model = serviceCenterMainReqVM.allInfoScoreModel
navigationController?.pushViewController(vc) // navigationController?.pushViewController(vc)
YHHUD.flash(message: "这里跳转 杜宇 新的我的方案")
} }
@objc func goInfoListVC( ) { @objc func goInfoListVC( ) {
...@@ -261,17 +263,19 @@ extension YHInformationPerfectListVC { ...@@ -261,17 +263,19 @@ extension YHInformationPerfectListVC {
serviceCenterMainReqVM.submitAllInfoOp(params: ["orderId" : orderId]) { [weak self] success, error in serviceCenterMainReqVM.submitAllInfoOp(params: ["orderId" : orderId]) { [weak self] success, error in
YHHUD.hide() YHHUD.hide()
if success == true { if success == true {
let model = self?.serviceCenterMainReqVM.allInfoScoreModel // let model = self?.serviceCenterMainReqVM.allInfoScoreModel
YHSubmitAllInfoSuccessAlertView.showCheckView(model: model) { agree in // YHSubmitAllInfoSuccessAlertView.showCheckView(model: model) { agree in
//
//1、刷新当前界面 // //1、刷新当前界面
self?.loadData() // self?.loadData()
//
//2、跳转其他界面 // //2、跳转其他界面
if agree == true { // if agree == true {
self?.goScoreVC() // self?.goScoreVC()
} // }
} // }
//1、刷新当前界面
self?.loadData()
} else { } else {
let msg = error?.errorMsg ?? "操作失败" let msg = error?.errorMsg ?? "操作失败"
YHHUD.flash(message: msg) YHHUD.flash(message: msg)
...@@ -331,13 +335,13 @@ extension YHInformationPerfectListVC { ...@@ -331,13 +335,13 @@ extension YHInformationPerfectListVC {
make.height.equalTo(48) make.height.equalTo(48)
} }
//我的积分 -> 我的方案
let scoreButton = { let scoreButton = {
let button = UIButton(type: .custom) let button = UIButton(type: .custom)
button.backgroundColor = UIColor(hex:0xffffff) button.backgroundColor = UIColor(hex:0xffffff)
button.titleLabel?.font = UIFont.PFSC_M(ofSize: 16) button.titleLabel?.font = UIFont.PFSC_M(ofSize: 16)
button.contentHorizontalAlignment = .center button.contentHorizontalAlignment = .center
button.setTitle("我的评分", for: .normal) button.setTitle("我的方案", for: .normal)
button.setTitleColor(UIColor.brandMainColor, for: .normal) button.setTitleColor(UIColor.brandMainColor, for: .normal)
button.layer.cornerRadius = kCornerRadius3 button.layer.cornerRadius = kCornerRadius3
button.layer.borderWidth = 1 button.layer.borderWidth = 1
......
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