| | |
| | | |
| | | private var footCollectionView:UICollectionView! |
| | | |
| | | private var enterpriseViewModel = EnterpriseViewModel() |
| | | |
| | | var isHiddenMerchant = false |
| | | |
| | | var data = [HomeLeftMenuModel.init(image: "icon_me_order", name: "我的订单"), |
| | | HomeLeftMenuModel.init(image: "icon_me_coupons", name: "优惠券"), |
| | | HomeLeftMenuModel.init(image: "icon_me_card", name: "企业认证"), |
| | | HomeLeftMenuModel.init(image: "icon_me_card", name: "企业认证(\(app.userInfo.companyCount))"), |
| | | // HomeLeftMenuModel.init(image: "icon_me_card", name: "我的卡包"), |
| | | HomeLeftMenuModel.init(image: "icon_me_wallet", name: "钱包"), |
| | | HomeLeftMenuModel.init(image: "icon_me_wallet", name: "订单审核"), |
| | | // HomeLeftMenuModel.init(image: "icon_me_wallet", name: "订单审核(\(app.userInfo.orderCount))"), |
| | | // HomeLeftMenuModel.init(image: "icon_me_close", name: "亲密账户"), |
| | | HomeLeftMenuModel.init(image: "icon_me_invoice", name: "开发票"), |
| | | // HomeLeftMenuModel.init(image: "icon_me_service-1", name: "入驻成为商家"), |
| | |
| | | func show() { |
| | | //73699 【我的评论】有人回复我的评论:我的评论未显示数量 |
| | | viewModel.queryUserInfo() |
| | | enterpriseViewModel.queryEnterpriseInfo { status in |
| | | switch status { |
| | | case .success(let m): |
| | | if m?.authStatus == .Pass && !self.data.contains(where: {$0.name.contains("订单审核")}){ |
| | | let m = HomeLeftMenuModel.init(image: "icon_me_wallet", name: "订单审核(\(app.userInfo.orderCount))") |
| | | self.data.insert(m, at: 4) |
| | | self.tableView.reloadData() |
| | | } |
| | | break |
| | | case .error(let _):break |
| | | } |
| | | } |
| | | viewModel.queryMessNum { [weak self]m in |
| | | self?.data[7].num = m.commentNum |
| | | self?.data[8].num = m.carRental + m.sellingCarNum |