Commit 76537e22 authored by Steven杜宇's avatar Steven杜宇

// 身份

parent 9b21e39b
......@@ -48,7 +48,6 @@ class YHHomeIdentityListVC: YHBaseViewController {
tableView.register(YHHomeIdentityCell.self, forCellReuseIdentifier: YHHomeIdentityCell.cellReuseIdentifier)
tableView.delegate = self
tableView.dataSource = self
// tableView.bounces = false
tableView.tableHeaderView = self.headerView
tableView.separatorStyle = .none
return tableView
......@@ -202,35 +201,38 @@ extension YHHomeIdentityListVC: UIScrollViewDelegate {
self.segmentedView.reloadDataWithoutListContainer()
}
}
let gap = 10.0
if scrollView.contentOffset.y > self.scrollContentY+gap {
self.scrollContentY = scrollView.contentOffset.y
printLog("ABCD:\(self.scrollContentY), \(scrollView.contentOffset.y)")
if !self.isShowBottomView {
self.isShowBottomView = true
printLog("ABC show: \(self.scrollContentY)")
var model = TabBarShareModel()
model.showFlag = true
if let product = self.viewModel.detailModel.products.first {
let path = "/pages/commodityInfo/commodityInfo?categoryId=2&levelId=\(self.detailId)&productId=\(product.id)&from=wxApp"
model.shareUrl = path
}
model.shareTitle = "好友力荐新品,速来围观,不容错过!"
model.codeUrl = self.viewModel.detailModel.imageURLDefault
model.downloadUrl = self.viewModel.detailModel.imageURLDefaultDownload
NotificationCenter.default.post(name: YhConstant.YhNotification.changeShareViewStatusOnTabBarNotifiction, object: model)
if scrollView.contentOffset.y >= 0 {
let gap = 10.0
if scrollView.contentOffset.y > self.scrollContentY+gap {
self.scrollContentY = scrollView.contentOffset.y
printLog("ABCD:\(self.scrollContentY), \(scrollView.contentOffset.y)")
if !self.isShowBottomView {
self.isShowBottomView = true
printLog("ABC show: \(self.scrollContentY)")
var model = TabBarShareModel()
model.showFlag = true
if let product = self.viewModel.detailModel.products.first {
let path = "/pages/commodityInfo/commodityInfo?categoryId=2&levelId=\(self.detailId)&productId=\(product.id)&from=wxApp"
model.shareUrl = path
}
model.shareTitle = "好友力荐新品,速来围观,不容错过!"
model.codeUrl = self.viewModel.detailModel.imageURLDefault
model.downloadUrl = self.viewModel.detailModel.imageURLDefaultDownload
NotificationCenter.default.post(name: YhConstant.YhNotification.changeShareViewStatusOnTabBarNotifiction, object: model)
}
} else if scrollView.contentOffset.y < self.scrollContentY-gap {
printLog("ABCD:\(self.scrollContentY), \(scrollView.contentOffset.y)")
self.scrollContentY = scrollView.contentOffset.y
if self.isShowBottomView {
self.isShowBottomView = false
printLog("ABC hide: \(self.scrollContentY)")
var model = TabBarShareModel()
model.showFlag = false
NotificationCenter.default.post(name: YhConstant.YhNotification.changeShareViewStatusOnTabBarNotifiction, object: model)
}
} else if scrollView.contentOffset.y < self.scrollContentY-gap {
printLog("ABCD:\(self.scrollContentY), \(scrollView.contentOffset.y)")
self.scrollContentY = scrollView.contentOffset.y
if self.isShowBottomView {
self.isShowBottomView = false
printLog("ABC hide: \(self.scrollContentY)")
var model = TabBarShareModel()
model.showFlag = false
NotificationCenter.default.post(name: YhConstant.YhNotification.changeShareViewStatusOnTabBarNotifiction, object: model)
}
}
}
}
......
......@@ -336,11 +336,6 @@ extension YHMyViewController : UITableViewDelegate, UITableViewDataSource {
return
}
if true {
let vc = YHMyTestViewController()
self.navigationController?.pushViewController(vc)
}
// if true {
// let vc = YHCertificateAppointViewController()
// vc.orderId = 151090
......
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