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

完成 提交逻辑

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