Commit 6bdb61ab6ac4dfbb2a5587ff2544073f204f3106
Merge branch 'master' of http://bj.gitlab.cnlive.com/ios-team/CNLiveMateCode
Showing
8 changed files
with
138 additions
and
105 deletions
metaCode/Classes/Main/HomePage/View/CNHomePageBackgroupView.swift
| @@ -113,7 +113,7 @@ class CNHomePageBackgroupView: UIView{ | @@ -113,7 +113,7 @@ class CNHomePageBackgroupView: UIView{ | ||
| 113 | let idModel:StandListModel = idArray[i] | 113 | let idModel:StandListModel = idArray[i] |
| 114 | let navTitle:String = idModel.name! | 114 | let navTitle:String = idModel.name! |
| 115 | subView.setTitle(title: navTitle) | 115 | subView.setTitle(title: navTitle) |
| 116 | - | 116 | + subView.imageView.kf.indicatorType = .activity |
| 117 | subView.imageView.kf.setImage(with: URL(string: idModel.backgroundImg),placeholder: UIImage(named: "homePage_backgroup_blue")) | 117 | subView.imageView.kf.setImage(with: URL(string: idModel.backgroundImg),placeholder: UIImage(named: "homePage_backgroup_blue")) |
| 118 | 118 | ||
| 119 | //更新双向链表 | 119 | //更新双向链表 |
metaCode/Classes/Main/MinePage/Controller/CNLiveMineEarnViewController.swift
| @@ -11,7 +11,7 @@ import JXPagingView | @@ -11,7 +11,7 @@ import JXPagingView | ||
| 11 | import MJRefresh | 11 | import MJRefresh |
| 12 | 12 | ||
| 13 | let kCNLiveSectionTitleHeight = 70//标题显示 | 13 | let kCNLiveSectionTitleHeight = 70//标题显示 |
| 14 | -let kCNLiveSectionHeaderHeight = 200//头视图高度 | 14 | +let kCNLiveSectionHeaderHeight = 140//头视图高度 加上说明200 |
| 15 | 15 | ||
| 16 | extension JXPagingListContainerView: JXSegmentedViewListContainer {} | 16 | extension JXPagingListContainerView: JXSegmentedViewListContainer {} |
| 17 | 17 |
metaCode/Classes/Main/MinePage/Controller/CNLiveMineInputViewController.swift
| @@ -27,6 +27,16 @@ class CNLiveMineInputViewController : CNLiveBaseViewController, UITableViewDeleg | @@ -27,6 +27,16 @@ class CNLiveMineInputViewController : CNLiveBaseViewController, UITableViewDeleg | ||
| 27 | return tableView | 27 | return tableView |
| 28 | }() | 28 | }() |
| 29 | 29 | ||
| 30 | + lazy var tipLabel: UILabel = { | ||
| 31 | + let tipLabel = UILabel.init() | ||
| 32 | + tipLabel.textColor = HexColor("#999999") | ||
| 33 | + tipLabel.text = "请填写真实信息,提交完成后,不可更改!" | ||
| 34 | + tipLabel.font = Font_11_Fit | ||
| 35 | + tipLabel.isHidden = true | ||
| 36 | + tipLabel.textAlignment = .center | ||
| 37 | + return tipLabel | ||
| 38 | + }() | ||
| 39 | + | ||
| 30 | lazy var sendButton: UIButton = { | 40 | lazy var sendButton: UIButton = { |
| 31 | let sendButton = UIButton(type: .custom) | 41 | let sendButton = UIButton(type: .custom) |
| 32 | sendButton.setTitle("添加身份", for: .normal) | 42 | sendButton.setTitle("添加身份", for: .normal) |
| @@ -64,6 +74,8 @@ class CNLiveMineInputViewController : CNLiveBaseViewController, UITableViewDeleg | @@ -64,6 +74,8 @@ class CNLiveMineInputViewController : CNLiveBaseViewController, UITableViewDeleg | ||
| 64 | 74 | ||
| 65 | loadStandInfoData() | 75 | loadStandInfoData() |
| 66 | 76 | ||
| 77 | + | ||
| 78 | + | ||
| 67 | view.addSubview(sendButton) | 79 | view.addSubview(sendButton) |
| 68 | sendButton.snp.makeConstraints { make in | 80 | sendButton.snp.makeConstraints { make in |
| 69 | make.bottom.equalToSuperview().offset(-get_system_tabbar_ui_offsetHeight() - 20) | 81 | make.bottom.equalToSuperview().offset(-get_system_tabbar_ui_offsetHeight() - 20) |
| @@ -71,13 +83,21 @@ class CNLiveMineInputViewController : CNLiveBaseViewController, UITableViewDeleg | @@ -71,13 +83,21 @@ class CNLiveMineInputViewController : CNLiveBaseViewController, UITableViewDeleg | ||
| 71 | make.right.equalToSuperview().offset(-10) | 83 | make.right.equalToSuperview().offset(-10) |
| 72 | make.height.equalTo(40) | 84 | make.height.equalTo(40) |
| 73 | } | 85 | } |
| 86 | + | ||
| 87 | + view.addSubview(tipLabel) | ||
| 88 | + tipLabel.snp.makeConstraints { make in | ||
| 89 | + make.bottom.equalTo(sendButton.snp.top).offset(-10) | ||
| 90 | + make.centerX.equalToSuperview() | ||
| 91 | + make.left.right.equalToSuperview() | ||
| 92 | + } | ||
| 93 | + | ||
| 74 | setupWithSendBtnStatue(statue: false) | 94 | setupWithSendBtnStatue(statue: false) |
| 75 | 95 | ||
| 76 | view.addSubview(tableView) | 96 | view.addSubview(tableView) |
| 77 | tableView.snp.makeConstraints { make in | 97 | tableView.snp.makeConstraints { make in |
| 78 | make.top.equalTo(get_system_nav_height()) | 98 | make.top.equalTo(get_system_nav_height()) |
| 79 | make.left.right.equalToSuperview() | 99 | make.left.right.equalToSuperview() |
| 80 | - make.bottom.equalTo(sendButton.snp.top).offset(-10) | 100 | + make.bottom.equalTo(tipLabel.snp.top).offset(-10) |
| 81 | } | 101 | } |
| 82 | } | 102 | } |
| 83 | 103 | ||
| @@ -89,6 +109,7 @@ class CNLiveMineInputViewController : CNLiveBaseViewController, UITableViewDeleg | @@ -89,6 +109,7 @@ class CNLiveMineInputViewController : CNLiveBaseViewController, UITableViewDeleg | ||
| 89 | self?.tableView.reloadData() | 109 | self?.tableView.reloadData() |
| 90 | if (self?.dataArray.count)! > 0 { | 110 | if (self?.dataArray.count)! > 0 { |
| 91 | self?.sendButton.isHidden = false | 111 | self?.sendButton.isHidden = false |
| 112 | + self?.tipLabel.isHidden = false | ||
| 92 | self?.tableView.tableHeaderView = self?.setupHeaderAndFooter(is_last: false) | 113 | self?.tableView.tableHeaderView = self?.setupHeaderAndFooter(is_last: false) |
| 93 | self?.tableView.tableFooterView = self?.setupHeaderAndFooter(is_last: true) | 114 | self?.tableView.tableFooterView = self?.setupHeaderAndFooter(is_last: true) |
| 94 | } | 115 | } |
| @@ -107,7 +128,7 @@ class CNLiveMineInputViewController : CNLiveBaseViewController, UITableViewDeleg | @@ -107,7 +128,7 @@ class CNLiveMineInputViewController : CNLiveBaseViewController, UITableViewDeleg | ||
| 107 | 128 | ||
| 108 | @objc func sendInfoActionMothod() { | 129 | @objc func sendInfoActionMothod() { |
| 109 | setupWithContentUploadImage { [self] url in | 130 | setupWithContentUploadImage { [self] url in |
| 110 | - self.tempCell._infoModel?.value = url | 131 | + if (self?.tempCell) self.tempCell._infoModel?.value = url |
| 111 | CNLiveMineViewModel.requestsPOSTAuthInfo(identityId: "\(_listModel.id)", infos: self.dataArray) { [self] result, respStatue in | 132 | CNLiveMineViewModel.requestsPOSTAuthInfo(identityId: "\(_listModel.id)", infos: self.dataArray) { [self] result, respStatue in |
| 112 | if respStatue == .success { | 133 | if respStatue == .success { |
| 113 | showMessage(message: "上传成功") | 134 | showMessage(message: "上传成功") |
metaCode/Classes/Main/MinePage/Controller/CNLiveMineMessageViewController.swift
| @@ -63,9 +63,9 @@ extension CNLiveMineMessageViewController { | @@ -63,9 +63,9 @@ extension CNLiveMineMessageViewController { | ||
| 63 | return cell | 63 | return cell |
| 64 | } | 64 | } |
| 65 | func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat { | 65 | func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat { |
| 66 | - return 100 + _listModel.textHeight | 66 | + return 60 + _listModel.textHeight //100 |
| 67 | } | 67 | } |
| 68 | func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { | 68 | func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { |
| 69 | - showMessage(message: "跳转H5详情界面") | 69 | +// showMessage(message: "跳转H5详情界面") |
| 70 | } | 70 | } |
| 71 | } | 71 | } |
metaCode/Classes/Main/MinePage/View/CNLiveMineBodyListView.swift
| @@ -87,6 +87,7 @@ class MineBodyOneListViewCell : UITableViewCell { | @@ -87,6 +87,7 @@ class MineBodyOneListViewCell : UITableViewCell { | ||
| 87 | iconView.clipsToBounds = true | 87 | iconView.clipsToBounds = true |
| 88 | iconView.contentMode = .scaleToFill | 88 | iconView.contentMode = .scaleToFill |
| 89 | iconView.backgroundColor = .white | 89 | iconView.backgroundColor = .white |
| 90 | + iconView.kf.indicatorType = .activity | ||
| 90 | iconView.kf.setImage(with: URL(string: authModel.icon ?? ""), placeholder: UIImage.imageWithColor(color: HexColor("#f9f9f9")!, size: CGSize(width: 40, height: 40))) | 91 | iconView.kf.setImage(with: URL(string: authModel.icon ?? ""), placeholder: UIImage.imageWithColor(color: HexColor("#f9f9f9")!, size: CGSize(width: 40, height: 40))) |
| 91 | mainView.addSubview(iconView) | 92 | mainView.addSubview(iconView) |
| 92 | iconView.snp.makeConstraints { make in | 93 | iconView.snp.makeConstraints { make in |
| @@ -279,6 +280,7 @@ class MineBodyTwoListViewCell : UITableViewCell { | @@ -279,6 +280,7 @@ class MineBodyTwoListViewCell : UITableViewCell { | ||
| 279 | } | 280 | } |
| 280 | if (dict.keys.contains("avatar") && (dict["avatar"] as! String).count > 0) { | 281 | if (dict.keys.contains("avatar") && (dict["avatar"] as! String).count > 0) { |
| 281 | avatarView.isHidden = false | 282 | avatarView.isHidden = false |
| 283 | + avatarView.kf.indicatorType = .activity | ||
| 282 | avatarView.kf.setImage(with: URL(string: "\(dict["avatar"] ?? "")"), placeholder: UIImage(named: "mine_header_icon_defult_ava")) | 284 | avatarView.kf.setImage(with: URL(string: "\(dict["avatar"] ?? "")"), placeholder: UIImage(named: "mine_header_icon_defult_ava")) |
| 283 | } | 285 | } |
| 284 | nameLabel.text = "\(dict["name"] ?? "")" | 286 | nameLabel.text = "\(dict["name"] ?? "")" |
| @@ -558,7 +560,7 @@ class MineBodyFourViewCell: UITableViewCell { | @@ -558,7 +560,7 @@ class MineBodyFourViewCell: UITableViewCell { | ||
| 558 | } | 560 | } |
| 559 | 561 | ||
| 560 | func setupWithData(listModel: MineTaskCheckListModel) { | 562 | func setupWithData(listModel: MineTaskCheckListModel) { |
| 561 | - | 563 | + iconView.kf.indicatorType = .activity |
| 562 | iconView.kf.setImage(with: URL(string: listModel.icon ?? "") , placeholder: UIImage.imageWithColor(color: HexColor("#f9f9f9")!, size: CGSizeMake(50, 50))) | 564 | iconView.kf.setImage(with: URL(string: listModel.icon ?? "") , placeholder: UIImage.imageWithColor(color: HexColor("#f9f9f9")!, size: CGSizeMake(50, 50))) |
| 563 | nameLabel.text = listModel.title ?? "" | 565 | nameLabel.text = listModel.title ?? "" |
| 564 | descLabel.text = "积分值+\(listModel.score ?? "")" | 566 | descLabel.text = "积分值+\(listModel.score ?? "")" |
metaCode/Classes/Main/MinePage/View/CNLiveMineHeaderView.swift
| @@ -317,7 +317,7 @@ class MineQuestHeaderView: UIView { | @@ -317,7 +317,7 @@ class MineQuestHeaderView: UIView { | ||
| 317 | }() | 317 | }() |
| 318 | 318 | ||
| 319 | // lazy var pointView: UIImageView = { | 319 | // lazy var pointView: UIImageView = { |
| 320 | -// | 320 | +// |
| 321 | // return <#value#> | 321 | // return <#value#> |
| 322 | // }() | 322 | // }() |
| 323 | 323 | ||
| @@ -496,37 +496,37 @@ class MineEarnHeaderView: UIView { | @@ -496,37 +496,37 @@ class MineEarnHeaderView: UIView { | ||
| 496 | return right_Label | 496 | return right_Label |
| 497 | }() | 497 | }() |
| 498 | 498 | ||
| 499 | - lazy var exChangeBtn : UIButton = { | ||
| 500 | - let exChangeBtn = UIButton.init(type: .custom) | ||
| 501 | - exChangeBtn.size = CGSize(width: 50, height: 20) | ||
| 502 | - exChangeBtn.backgroundColor = .clear | ||
| 503 | - exChangeBtn.titleLabel?.font = Font_12 | ||
| 504 | - exChangeBtn.setTitleColor(.white, for: .normal) | ||
| 505 | - exChangeBtn.setTitle("去兑换", for: .normal) | ||
| 506 | - exChangeBtn.setImage(UIImage(named: "mine_list_icon_right_white_more"), for: .normal) | ||
| 507 | - exChangeBtn.setupButtonImageAndTitlePossitionWith(padding: 0, style: .right) | ||
| 508 | - exChangeBtn.sizeToFit() | ||
| 509 | - exChangeBtn.addTarget(self, action: #selector(pushExChangeMethod), for: .touchUpInside) | ||
| 510 | - return exChangeBtn | ||
| 511 | - }() | ||
| 512 | - | ||
| 513 | - lazy var tipView: UIView = { | ||
| 514 | - let tipView = UIView.init() | ||
| 515 | - tipView.backgroundColor = HexColor("#F7F8FA") | ||
| 516 | - tipView.layer.cornerRadius = 5 | ||
| 517 | - tipView.layer.masksToBounds = true | ||
| 518 | - return tipView | ||
| 519 | - }() | ||
| 520 | - | ||
| 521 | - lazy var tipLabel: UILabel = { | ||
| 522 | - let tipLabel = UILabel.init() | ||
| 523 | - tipLabel.text = "兑换比例:10000积分=1元码余额 \n 积分到账可能会有延迟" | ||
| 524 | - tipLabel.textColor = HexColor("#999999") | ||
| 525 | - tipLabel.font = Font_13_Fit | ||
| 526 | - tipLabel.numberOfLines = 2 | ||
| 527 | - tipLabel.lineBreakMode = .byCharWrapping | ||
| 528 | - return tipLabel | ||
| 529 | - }() | 499 | +// lazy var exChangeBtn : UIButton = { |
| 500 | +// let exChangeBtn = UIButton.init(type: .custom) | ||
| 501 | +// exChangeBtn.size = CGSize(width: 50, height: 20) | ||
| 502 | +// exChangeBtn.backgroundColor = .clear | ||
| 503 | +// exChangeBtn.titleLabel?.font = Font_12 | ||
| 504 | +// exChangeBtn.setTitleColor(.white, for: .normal) | ||
| 505 | +// exChangeBtn.setTitle("去兑换", for: .normal) | ||
| 506 | +// exChangeBtn.setImage(UIImage(named: "mine_list_icon_right_white_more"), for: .normal) | ||
| 507 | +// exChangeBtn.setupButtonImageAndTitlePossitionWith(padding: 0, style: .right) | ||
| 508 | +// exChangeBtn.sizeToFit() | ||
| 509 | +// exChangeBtn.addTarget(self, action: #selector(pushExChangeMethod), for: .touchUpInside) | ||
| 510 | +// return exChangeBtn | ||
| 511 | +// }() | ||
| 512 | +// | ||
| 513 | +// lazy var tipView: UIView = { | ||
| 514 | +// let tipView = UIView.init() | ||
| 515 | +// tipView.backgroundColor = HexColor("#F7F8FA") | ||
| 516 | +// tipView.layer.cornerRadius = 5 | ||
| 517 | +// tipView.layer.masksToBounds = true | ||
| 518 | +// return tipView | ||
| 519 | +// }() | ||
| 520 | +// | ||
| 521 | +// lazy var tipLabel: UILabel = { | ||
| 522 | +// let tipLabel = UILabel.init() | ||
| 523 | +// tipLabel.text = "兑换比例:10000积分=1元码余额 \n 积分到账可能会有延迟" | ||
| 524 | +// tipLabel.textColor = HexColor("#999999") | ||
| 525 | +// tipLabel.font = Font_13_Fit | ||
| 526 | +// tipLabel.numberOfLines = 2 | ||
| 527 | +// tipLabel.lineBreakMode = .byCharWrapping | ||
| 528 | +// return tipLabel | ||
| 529 | +// }() | ||
| 530 | 530 | ||
| 531 | var _checkModel: MinePointCheckInModel! | 531 | var _checkModel: MinePointCheckInModel! |
| 532 | init(frame: CGRect, checkModel: MinePointCheckInModel) { | 532 | init(frame: CGRect, checkModel: MinePointCheckInModel) { |
| @@ -537,13 +537,13 @@ class MineEarnHeaderView: UIView { | @@ -537,13 +537,13 @@ class MineEarnHeaderView: UIView { | ||
| 537 | mainView.addSubview(exrChangeView) | 537 | mainView.addSubview(exrChangeView) |
| 538 | exlChangeView.addSubview(left_Label) | 538 | exlChangeView.addSubview(left_Label) |
| 539 | exlChangeView.addSubview(left_tipLabel) | 539 | exlChangeView.addSubview(left_tipLabel) |
| 540 | - exlChangeView.addSubview(exChangeBtn) | 540 | +// exlChangeView.addSubview(exChangeBtn) |
| 541 | 541 | ||
| 542 | exrChangeView.addSubview(right_Label) | 542 | exrChangeView.addSubview(right_Label) |
| 543 | exrChangeView.addSubview(right_tipLabel) | 543 | exrChangeView.addSubview(right_tipLabel) |
| 544 | 544 | ||
| 545 | - mainView.addSubview(tipView) | ||
| 546 | - tipView.addSubview(tipLabel) | 545 | +// mainView.addSubview(tipView) |
| 546 | +// tipView.addSubview(tipLabel) | ||
| 547 | 547 | ||
| 548 | left_Label.text = checkModel.integral | 548 | left_Label.text = checkModel.integral |
| 549 | right_Label.text = checkModel.money | 549 | right_Label.text = checkModel.money |
| @@ -559,31 +559,33 @@ class MineEarnHeaderView: UIView { | @@ -559,31 +559,33 @@ class MineEarnHeaderView: UIView { | ||
| 559 | make.right.equalToSuperview().offset(-20) | 559 | make.right.equalToSuperview().offset(-20) |
| 560 | } | 560 | } |
| 561 | 561 | ||
| 562 | - tipView.snp.makeConstraints { make in | ||
| 563 | - make.centerX.equalToSuperview() | ||
| 564 | - make.left.equalToSuperview().offset(10) | ||
| 565 | - make.right.bottom.equalToSuperview().offset(-10) | ||
| 566 | - make.height.equalTo(50) | ||
| 567 | - } | ||
| 568 | - | ||
| 569 | - tipLabel.snp.makeConstraints { make in | ||
| 570 | - make.top.equalToSuperview().offset(2.5) | ||
| 571 | - make.left.equalToSuperview().offset(10) | ||
| 572 | - make.right.equalToSuperview().offset(-10) | ||
| 573 | - make.bottom.equalToSuperview().offset(-2.5) | ||
| 574 | - } | 562 | +// tipView.snp.makeConstraints { make in |
| 563 | +// make.centerX.equalToSuperview() | ||
| 564 | +// make.left.equalToSuperview().offset(10) | ||
| 565 | +// make.right.bottom.equalToSuperview().offset(-10) | ||
| 566 | +// make.height.equalTo(50) | ||
| 567 | +// } | ||
| 568 | +// | ||
| 569 | +// tipLabel.snp.makeConstraints { make in | ||
| 570 | +// make.top.equalToSuperview().offset(2.5) | ||
| 571 | +// make.left.equalToSuperview().offset(10) | ||
| 572 | +// make.right.equalToSuperview().offset(-10) | ||
| 573 | +// make.bottom.equalToSuperview().offset(-2.5) | ||
| 574 | +// } | ||
| 575 | 575 | ||
| 576 | exlChangeView.snp.makeConstraints { make in | 576 | exlChangeView.snp.makeConstraints { make in |
| 577 | make.left.top.equalToSuperview().offset(10) | 577 | make.left.top.equalToSuperview().offset(10) |
| 578 | make.width.equalTo((KSreenWidth - 70)*0.56) | 578 | make.width.equalTo((KSreenWidth - 70)*0.56) |
| 579 | - make.bottom.equalTo(tipView.snp.top).offset(-10) | 579 | + make.bottom.equalToSuperview().offset(-10) |
| 580 | +// make.bottom.equalTo(tipView.snp.top).offset(-10) | ||
| 580 | } | 581 | } |
| 581 | 582 | ||
| 582 | exrChangeView.snp.makeConstraints { make in | 583 | exrChangeView.snp.makeConstraints { make in |
| 583 | make.top.equalToSuperview().offset(10) | 584 | make.top.equalToSuperview().offset(10) |
| 584 | make.right.equalToSuperview().offset(-10) | 585 | make.right.equalToSuperview().offset(-10) |
| 585 | make.width.equalTo((KSreenWidth - 70)*0.44) | 586 | make.width.equalTo((KSreenWidth - 70)*0.44) |
| 586 | - make.bottom.equalTo(tipView.snp.top).offset(-10) | 587 | + make.bottom.equalToSuperview().offset(-10) |
| 588 | +// make.bottom.equalTo(tipView.snp.top).offset(-10) | ||
| 587 | } | 589 | } |
| 588 | 590 | ||
| 589 | left_tipLabel.snp.makeConstraints { make in | 591 | left_tipLabel.snp.makeConstraints { make in |
| @@ -595,12 +597,12 @@ class MineEarnHeaderView: UIView { | @@ -595,12 +597,12 @@ class MineEarnHeaderView: UIView { | ||
| 595 | make.bottom.equalToSuperview().offset(-20) | 597 | make.bottom.equalToSuperview().offset(-20) |
| 596 | } | 598 | } |
| 597 | 599 | ||
| 598 | - exChangeBtn.snp.makeConstraints { make in | ||
| 599 | - make.centerY.equalTo(left_tipLabel) | ||
| 600 | - make.right.equalToSuperview().offset(-10) | ||
| 601 | - make.left.equalTo(left_tipLabel.snp.right).offset(5) | ||
| 602 | - make.width.equalTo(50) | ||
| 603 | - } | 600 | +// exChangeBtn.snp.makeConstraints { make in |
| 601 | +// make.centerY.equalTo(left_tipLabel) | ||
| 602 | +// make.right.equalToSuperview().offset(-10) | ||
| 603 | +// make.left.equalTo(left_tipLabel.snp.right).offset(5) | ||
| 604 | +// make.width.equalTo(50) | ||
| 605 | +// } | ||
| 604 | 606 | ||
| 605 | right_tipLabel.snp.makeConstraints { make in | 607 | right_tipLabel.snp.makeConstraints { make in |
| 606 | make.left.top.equalToSuperview().offset(10) | 608 | make.left.top.equalToSuperview().offset(10) |
metaCode/Classes/Main/MinePage/View/CNLiveMineSubBodyListView.swift
| @@ -155,6 +155,7 @@ class MineStandInfoTableViewCell: UITableViewCell { | @@ -155,6 +155,7 @@ class MineStandInfoTableViewCell: UITableViewCell { | ||
| 155 | }() | 155 | }() |
| 156 | 156 | ||
| 157 | public func setupWithAuthDataSource(icon: String, name: String,number: String) { | 157 | public func setupWithAuthDataSource(icon: String, name: String,number: String) { |
| 158 | + iconView.kf.indicatorType = .activity | ||
| 158 | iconView.kf.setImage(with: URL(string: icon), placeholder: UIImage.imageWithColor(color: HexColor("#f9f9f9")!, size: CGSize(width: 50, height: 50))) | 159 | iconView.kf.setImage(with: URL(string: icon), placeholder: UIImage.imageWithColor(color: HexColor("#f9f9f9")!, size: CGSize(width: 50, height: 50))) |
| 159 | titleLabel.text = name | 160 | titleLabel.text = name |
| 160 | numberLabel.text = "编号:\(number)" | 161 | numberLabel.text = "编号:\(number)" |
| @@ -162,6 +163,7 @@ class MineStandInfoTableViewCell: UITableViewCell { | @@ -162,6 +163,7 @@ class MineStandInfoTableViewCell: UITableViewCell { | ||
| 162 | 163 | ||
| 163 | public func setupWithMessageDataSource(icon: String, name: String,number: String, time: String) { | 164 | public func setupWithMessageDataSource(icon: String, name: String,number: String, time: String) { |
| 164 | if !icon.isEmpty { | 165 | if !icon.isEmpty { |
| 166 | + iconView.kf.indicatorType = .activity | ||
| 165 | iconView.kf.setImage(with: URL(string: icon), placeholder: UIImage.imageWithColor(color: HexColor("#f9f9f9")!, size: CGSize(width: 40, height: 40))) | 167 | iconView.kf.setImage(with: URL(string: icon), placeholder: UIImage.imageWithColor(color: HexColor("#f9f9f9")!, size: CGSize(width: 40, height: 40))) |
| 166 | } else { | 168 | } else { |
| 167 | iconView.image = UIImage.imageWithColor(color: HexColor("#f9f9f9")!, size: CGSize(width: 40, height: 40)) | 169 | iconView.image = UIImage.imageWithColor(color: HexColor("#f9f9f9")!, size: CGSize(width: 40, height: 40)) |
| @@ -320,27 +322,27 @@ class MessageDescTableViewCell: UITableViewCell { | @@ -320,27 +322,27 @@ class MessageDescTableViewCell: UITableViewCell { | ||
| 320 | return contentLabel | 322 | return contentLabel |
| 321 | }() | 323 | }() |
| 322 | 324 | ||
| 323 | - lazy var lineLabel: UILabel = { | ||
| 324 | - let lineLabel = UILabel.init() | ||
| 325 | - lineLabel.backgroundColor = HexColor("#EAEAEA") | ||
| 326 | - return lineLabel | ||
| 327 | - }() | ||
| 328 | - | ||
| 329 | - lazy var textButton: UIButton = { | ||
| 330 | - let textButton = UIButton.init(type: .custom) | ||
| 331 | - textButton.setTitle("查看详情", for: .normal) | ||
| 332 | - textButton.setTitleColor(HexColor("#609BFF"), for: .normal) | ||
| 333 | - textButton.titleLabel?.font = Font_13 | ||
| 334 | - return textButton | ||
| 335 | - }() | ||
| 336 | - | ||
| 337 | - lazy var textView: UIImageView = { | ||
| 338 | - let textView = UIImageView.init() | ||
| 339 | - textView.image = UIImage(named: "mine_header_message_blue_more") | ||
| 340 | - textView.contentMode = .scaleToFill | ||
| 341 | - textView.backgroundColor = .white | ||
| 342 | - return textView | ||
| 343 | - }() | 325 | +// lazy var lineLabel: UILabel = { |
| 326 | +// let lineLabel = UILabel.init() | ||
| 327 | +// lineLabel.backgroundColor = HexColor("#EAEAEA") | ||
| 328 | +// return lineLabel | ||
| 329 | +// }() | ||
| 330 | + | ||
| 331 | +// lazy var textButton: UIButton = { | ||
| 332 | +// let textButton = UIButton.init(type: .custom) | ||
| 333 | +// textButton.setTitle("查看详情", for: .normal) | ||
| 334 | +// textButton.setTitleColor(HexColor("#609BFF"), for: .normal) | ||
| 335 | +// textButton.titleLabel?.font = Font_13 | ||
| 336 | +// return textButton | ||
| 337 | +// }() | ||
| 338 | + | ||
| 339 | +// lazy var textView: UIImageView = { | ||
| 340 | +// let textView = UIImageView.init() | ||
| 341 | +// textView.image = UIImage(named: "mine_header_message_blue_more") | ||
| 342 | +// textView.contentMode = .scaleToFill | ||
| 343 | +// textView.backgroundColor = .white | ||
| 344 | +// return textView | ||
| 345 | +// }() | ||
| 344 | 346 | ||
| 345 | 347 | ||
| 346 | override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) { | 348 | override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) { |
| @@ -352,9 +354,9 @@ class MessageDescTableViewCell: UITableViewCell { | @@ -352,9 +354,9 @@ class MessageDescTableViewCell: UITableViewCell { | ||
| 352 | addSubview(iconView) | 354 | addSubview(iconView) |
| 353 | addSubview(cView) | 355 | addSubview(cView) |
| 354 | cView.addSubview(contentLabel) | 356 | cView.addSubview(contentLabel) |
| 355 | - cView.addSubview(lineLabel) | ||
| 356 | - cView.addSubview(textButton) | ||
| 357 | - cView.addSubview(textView) | 357 | +// cView.addSubview(lineLabel) |
| 358 | +// cView.addSubview(textButton) | ||
| 359 | +// cView.addSubview(textView) | ||
| 358 | 360 | ||
| 359 | setConstraints() | 361 | setConstraints() |
| 360 | } | 362 | } |
| @@ -375,23 +377,23 @@ class MessageDescTableViewCell: UITableViewCell { | @@ -375,23 +377,23 @@ class MessageDescTableViewCell: UITableViewCell { | ||
| 375 | make.right.equalToSuperview().offset(-30) | 377 | make.right.equalToSuperview().offset(-30) |
| 376 | make.height.equalTo(0) | 378 | make.height.equalTo(0) |
| 377 | } | 379 | } |
| 378 | - textButton.snp.makeConstraints { make in | ||
| 379 | - make.bottom.equalToSuperview().offset(-10) | ||
| 380 | - make.right.equalToSuperview().offset(-20) | ||
| 381 | - make.height.equalTo(20) | ||
| 382 | - } | ||
| 383 | - textView.snp.makeConstraints { make in | ||
| 384 | - make.centerY.equalTo(textButton) | ||
| 385 | - make.height.equalTo(10) | ||
| 386 | - make.right.equalToSuperview().offset(-10) | ||
| 387 | - make.width.equalTo(5) | ||
| 388 | - } | ||
| 389 | - lineLabel.snp.makeConstraints { make in | ||
| 390 | - make.bottom.equalTo(textButton.snp.top).offset(-10) | ||
| 391 | - make.left.equalToSuperview().offset(10) | ||
| 392 | - make.right.equalToSuperview().offset(-10) | ||
| 393 | - make.height.equalTo(1) | ||
| 394 | - } | 380 | +// textButton.snp.makeConstraints { make in |
| 381 | +// make.bottom.equalToSuperview().offset(-10) | ||
| 382 | +// make.right.equalToSuperview().offset(-20) | ||
| 383 | +// make.height.equalTo(20) | ||
| 384 | +// } | ||
| 385 | +// textView.snp.makeConstraints { make in | ||
| 386 | +// make.centerY.equalTo(textButton) | ||
| 387 | +// make.height.equalTo(10) | ||
| 388 | +// make.right.equalToSuperview().offset(-10) | ||
| 389 | +// make.width.equalTo(5) | ||
| 390 | +// } | ||
| 391 | +// lineLabel.snp.makeConstraints { make in | ||
| 392 | +// make.bottom.equalTo(textButton.snp.top).offset(-10) | ||
| 393 | +// make.left.equalToSuperview().offset(10) | ||
| 394 | +// make.right.equalToSuperview().offset(-10) | ||
| 395 | +// make.height.equalTo(1) | ||
| 396 | +// } | ||
| 395 | contentLabel.snp.makeConstraints { make in | 397 | contentLabel.snp.makeConstraints { make in |
| 396 | make.left.top.equalToSuperview().offset(10) | 398 | make.left.top.equalToSuperview().offset(10) |
| 397 | make.right.equalToSuperview().offset(-10) | 399 | make.right.equalToSuperview().offset(-10) |
| @@ -410,12 +412,16 @@ class MessageDescTableViewCell: UITableViewCell { | @@ -410,12 +412,16 @@ class MessageDescTableViewCell: UITableViewCell { | ||
| 410 | if listModel.poster.isEmpty { | 412 | if listModel.poster.isEmpty { |
| 411 | iconView.image = UIImage.imageWithColor(color: .red, size: CGSizeMake(40, 40)) | 413 | iconView.image = UIImage.imageWithColor(color: .red, size: CGSizeMake(40, 40)) |
| 412 | } else { | 414 | } else { |
| 415 | + iconView.kf.indicatorType = .activity | ||
| 413 | iconView.kf.setImage(with: URL(string: listModel.poster), placeholder: UIImage.imageWithColor(color: .red, size: CGSizeMake(40, 40))) | 416 | iconView.kf.setImage(with: URL(string: listModel.poster), placeholder: UIImage.imageWithColor(color: .red, size: CGSizeMake(40, 40))) |
| 414 | } | 417 | } |
| 415 | cView.snp.updateConstraints { make in | 418 | cView.snp.updateConstraints { make in |
| 416 | make.height.equalTo(listModel.textHeight + 60) | 419 | make.height.equalTo(listModel.textHeight + 60) |
| 417 | } | 420 | } |
| 418 | contentLabel.snp.updateConstraints { make in | 421 | contentLabel.snp.updateConstraints { make in |
| 422 | + make.left.top.equalToSuperview().offset(10) | ||
| 423 | + make.right.equalToSuperview().offset(-10) | ||
| 424 | + make.width.equalTo(KSreenWidth - 110) | ||
| 419 | make.height.equalTo(listModel.textHeight) | 425 | make.height.equalTo(listModel.textHeight) |
| 420 | } | 426 | } |
| 421 | } | 427 | } |
metaCode/Classes/Main/MinePage/ViewModel/CNLiveMineViewModel.swift
| @@ -673,6 +673,8 @@ class CNLiveMineViewModel: NSObject { | @@ -673,6 +673,8 @@ class CNLiveMineViewModel: NSObject { | ||
| 673 | let param = NSMutableDictionary() | 673 | let param = NSMutableDictionary() |
| 674 | param.setValue(UserInfoManager.shared.userInfo.uid, forKey: "targetId") | 674 | param.setValue(UserInfoManager.shared.userInfo.uid, forKey: "targetId") |
| 675 | param.setValue("0", forKey: "type")//0全部(默认) 1收入 2支出 | 675 | param.setValue("0", forKey: "type")//0全部(默认) 1收入 2支出 |
| 676 | + param.setValue("1692610120000", forKey: "startTime") | ||
| 677 | + param.setValue("1695202120000", forKey: "endTime") | ||
| 676 | param.setValue("10", forKey: "pageSize") | 678 | param.setValue("10", forKey: "pageSize") |
| 677 | param.setValue("\(page)", forKey: "pageNo") | 679 | param.setValue("\(page)", forKey: "pageNo") |
| 678 | let custom_param = NSMutableDictionary() | 680 | let custom_param = NSMutableDictionary() |
| @@ -721,7 +723,7 @@ class CNLiveMineViewModel: NSObject { | @@ -721,7 +723,7 @@ class CNLiveMineViewModel: NSObject { | ||
| 721 | param.setValue(UserInfoManager.shared.userInfo.uid, forKey: "sid") | 723 | param.setValue(UserInfoManager.shared.userInfo.uid, forKey: "sid") |
| 722 | param.setValue("2022-08-21", forKey: "startTime")//开始时间 | 724 | param.setValue("2022-08-21", forKey: "startTime")//开始时间 |
| 723 | param.setValue("2022-09-20", forKey: "endTime")//开始时间 | 725 | param.setValue("2022-09-20", forKey: "endTime")//开始时间 |
| 724 | - param.setValue("1", forKey: "type") | 726 | + param.setValue("0", forKey: "type")//0全部(默认) 1收入 2支出 |
| 725 | param.setValue("10", forKey: "pageSize") | 727 | param.setValue("10", forKey: "pageSize") |
| 726 | param.setValue("\(page)", forKey: "pageNo") | 728 | param.setValue("\(page)", forKey: "pageNo") |
| 727 | let custom_param = NSMutableDictionary() | 729 | let custom_param = NSMutableDictionary() |