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

// plan

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