Commit 99d8d71d authored by Steven杜宇's avatar Steven杜宇

// plan

parent 68987815
...@@ -432,7 +432,7 @@ extension YHPlanViewController: UITableViewDelegate, UITableViewDataSource { ...@@ -432,7 +432,7 @@ extension YHPlanViewController: UITableViewDelegate, UITableViewDataSource {
return UITableViewCell() return UITableViewCell()
} }
cell2.model = analyzeArr[indexPath.section-1] cell2.model = analyzeArr[indexPath.section-1]
cell2.clickBlock = { [weak self] model in cell2.clickBlock = { [weak self] _ in
guard let self = self else { return } guard let self = self else { return }
self.enterMakePlanPage() self.enterMakePlanPage()
} }
...@@ -445,8 +445,7 @@ extension YHPlanViewController: UITableViewDelegate, UITableViewDataSource { ...@@ -445,8 +445,7 @@ extension YHPlanViewController: UITableViewDelegate, UITableViewDataSource {
return UITableViewCell() return UITableViewCell()
} }
cell3.cases = self.caseArr cell3.cases = self.caseArr
cell3.clickBlock = { cell3.clickBlock = { [weak self] arr, index in
[weak self] arr, index in
guard let self = self else { return } guard let self = self else { return }
let vc = YHPlanPolicyDetailViewController() let vc = YHPlanPolicyDetailViewController()
vc.arr = arr vc.arr = arr
......
...@@ -88,9 +88,9 @@ class YHMakePlanViewController: YHBaseViewController { ...@@ -88,9 +88,9 @@ class YHMakePlanViewController: YHBaseViewController {
} }
func addShopCard() { func addShopCard() {
self.viewModel.addShopCard(model: self.viewModel.makePlanModel) { success, error in self.viewModel.addShopCard(model: self.viewModel.makePlanModel) { success, _ in
if success { if success {
//跳转购物车 // 跳转购物车
if let token = YHLoginManager.shared.userModel?.token, token.count > 5 { if let token = YHLoginManager.shared.userModel?.token, token.count > 5 {
var url = YHBaseUrlManager.shared.curH5URL() + "superAppBridge.html#/goods/cart" var url = YHBaseUrlManager.shared.curH5URL() + "superAppBridge.html#/goods/cart"
url = url + "?param=" + YHLoginManager.shared.h5Token url = url + "?param=" + YHLoginManager.shared.h5Token
......
...@@ -63,7 +63,7 @@ class YHPlanAnalyzeInfoCell: UITableViewCell { ...@@ -63,7 +63,7 @@ class YHPlanAnalyzeInfoCell: UITableViewCell {
static let cellReuseIdentifier = "YHPlanAnalyzeInfoCell" static let cellReuseIdentifier = "YHPlanAnalyzeInfoCell"
var clickBlock:((YHPlanProductModel)->())? var clickBlock: ((YHPlanProductModel) -> Void)?
var model = YHPlanAnalyzeModel() { var model = YHPlanAnalyzeModel() {
didSet { didSet {
......
...@@ -10,7 +10,7 @@ import UIKit ...@@ -10,7 +10,7 @@ import UIKit
class YHPlanProductItemView: UIView { class YHPlanProductItemView: UIView {
var clickBlock:((YHPlanProductModel)->())? var clickBlock: ((YHPlanProductModel) -> Void)?
var product: YHPlanProductModel = YHPlanProductModel() { var product: YHPlanProductModel = YHPlanProductModel() {
didSet { didSet {
...@@ -107,7 +107,7 @@ class YHPlanProductItemView: UIView { ...@@ -107,7 +107,7 @@ class YHPlanProductItemView: UIView {
class YHPlanProductListView: UIView { class YHPlanProductListView: UIView {
var clickBlock:((YHPlanProductModel)->())? var clickBlock: ((YHPlanProductModel) -> Void)?
var products: [YHPlanProductModel] = [] { var products: [YHPlanProductModel] = [] {
didSet { didSet {
......
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