Commit e768c063 authored by Steven杜宇's avatar Steven杜宇

// plan

parent f301fa55
......@@ -67,10 +67,15 @@ class YHPlanPolicyDetailViewController: YHBaseViewController {
btn.setTitleColor(.mainTextColor, for: .normal)
btn.titleLabel?.font = .PFSC_M(ofSize: 16)
btn.layer.cornerRadius = 3.0
btn.addTarget(self, action: #selector(dismiss), for: .touchUpInside)
btn.addTarget(self, action: #selector(didShareBtnClicked), for: .touchUpInside)
return btn
}()
@objc func didShareBtnClicked() {
let view = YHPlanLinkShareView.alertView()
view.show()
}
override func viewDidLoad() {
super.viewDidLoad()
......
......@@ -269,8 +269,7 @@ class YHPlanViewController: YHBaseViewController {
lazy var policyVieiw: YHPlanPolicyCarouselView = {
let v = YHPlanPolicyCarouselView(frame: CGRect(x: 0, y: 0, width: KScreenWidth, height: 268))
v.clickBlock = {
[weak self] arr, index in
v.clickBlock = { [weak self] arr, index in
guard let self = self else { return }
let vc = YHPlanPolicyDetailViewController()
vc.arr = arr
......@@ -282,7 +281,6 @@ class YHPlanViewController: YHBaseViewController {
@objc func didRevalueBtnClicked() {
YHPlanLinkShareView.alertView().show()
}
override func viewDidLoad() {
......
......@@ -18,7 +18,7 @@ class YHMakePlanViewModel: YHBaseViewModel {
// 1. json字符串 转 对象
guard self != nil else { return }
if json.code == 200 {
guard let dic = json.data?.peel as? [String: Any], let data = dic["Data"] as? [String : Any], let result = YHMakePlanModel.deserialize(from: data) else {
guard let dic = json.data?.peel as? [String: Any], let data = dic["Data"] as? [String: Any], let result = YHMakePlanModel.deserialize(from: data) else {
callBackBlock(false, nil)
return
}
......
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