|
@@ -117,12 +117,51 @@ class INRecorderController: BFBaseViewController {
|
|
BFEventTrackAdaptor.baseReportUpload(businessType: .bt_pageView, objectType: nil, pageSource: .sp_homePage, commonParams: commonParams())
|
|
BFEventTrackAdaptor.baseReportUpload(businessType: .bt_pageView, objectType: nil, pageSource: .sp_homePage, commonParams: commonParams())
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ lazy var bottomView:UIView = {
|
|
|
|
+ let bottomView = UIView(frame:CGRect.init(x: 0, y: view.frame.height - cSafeAreaHeight - 48 - 30, width: view.frame.width, height: 30))
|
|
|
|
+ let userProBtn = UIButton.init(type: .custom)
|
|
|
|
+ userProBtn.setTitle("用户协议", for: .normal)
|
|
|
|
+ userProBtn.tag = 1
|
|
|
|
+ userProBtn.titleLabel?.font = UIFont.systemFont(ofSize: 13)
|
|
|
|
+ userProBtn.setTitleColor(UIColor.hexColor(hexadecimal: "6E7F9A"), for: .normal)
|
|
|
|
+ userProBtn.addTarget(self, action: #selector(protocolClick(sender:)), for: .touchUpInside)
|
|
|
|
+
|
|
|
|
+ let lineLab = UILabel()
|
|
|
|
+ lineLab.text = " | "
|
|
|
|
+ lineLab.font = UIFont.systemFont(ofSize: 13)
|
|
|
|
+ lineLab.textColor = UIColor.hexColor(hexadecimal: "6E7F9A")
|
|
|
|
+
|
|
|
|
+ let priProBtn = UIButton.init(type: .custom)
|
|
|
|
+ priProBtn.setTitle("隐私协议", for: .normal)
|
|
|
|
+ priProBtn.tag = 2
|
|
|
|
+ priProBtn.titleLabel?.font = UIFont.systemFont(ofSize: 13)
|
|
|
|
+ priProBtn.setTitleColor(UIColor.hexColor(hexadecimal: "6E7F9A"), for: .normal)
|
|
|
|
+ priProBtn.addTarget(self, action: #selector(protocolClick(sender:)), for: .touchUpInside)
|
|
|
|
+
|
|
|
|
+ bottomView.addSubview(userProBtn)
|
|
|
|
+ bottomView.addSubview(lineLab)
|
|
|
|
+ bottomView.addSubview(priProBtn)
|
|
|
|
+ lineLab.snp.makeConstraints { make in
|
|
|
|
+ make.center.equalToSuperview()
|
|
|
|
+ }
|
|
|
|
+ userProBtn.snp.makeConstraints { make in
|
|
|
|
+ make.right.equalTo(lineLab.snp.left)
|
|
|
|
+ make.centerY.equalToSuperview()
|
|
|
|
+ }
|
|
|
|
+ priProBtn.snp.makeConstraints { make in
|
|
|
|
+ make.left.equalTo(lineLab.snp.right)
|
|
|
|
+ make.centerY.equalToSuperview()
|
|
|
|
+ }
|
|
|
|
+ return bottomView
|
|
|
|
+ }()
|
|
|
|
+
|
|
override func viewDidLoad() {
|
|
override func viewDidLoad() {
|
|
super.viewDidLoad()
|
|
super.viewDidLoad()
|
|
view.backgroundColor = .black
|
|
view.backgroundColor = .black
|
|
view.addSubview(bgView)
|
|
view.addSubview(bgView)
|
|
|
|
|
|
view.addSubview(centerView)
|
|
view.addSubview(centerView)
|
|
|
|
+ view.addSubview(bottomView)
|
|
centerView.snp.makeConstraints { make in
|
|
centerView.snp.makeConstraints { make in
|
|
make.width.equalTo(140)
|
|
make.width.equalTo(140)
|
|
make.height.equalTo(209)
|
|
make.height.equalTo(209)
|
|
@@ -240,6 +279,20 @@ class INRecorderController: BFBaseViewController {
|
|
BFEventTrackAdaptor.baseReportUpload(businessType: .bt_buttonClick, objectType: .ot_addVideo, pageSource: .sp_homePage, commonParams: commonParams())
|
|
BFEventTrackAdaptor.baseReportUpload(businessType: .bt_buttonClick, objectType: .ot_addVideo, pageSource: .sp_homePage, commonParams: commonParams())
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ @objc func protocolClick(sender:UIButton) {
|
|
|
|
+ var link: String?
|
|
|
|
+ if sender.tag == 1 {
|
|
|
|
+ link = cUserProtocol
|
|
|
|
+ } else {
|
|
|
|
+ link = cPrivacy
|
|
|
|
+ }
|
|
|
|
+ if link != nil, (link?.count ?? 0) > 0 {
|
|
|
|
+ let detail = BFBaseWebViewController()
|
|
|
|
+ detail.baseUrl = link
|
|
|
|
+ self.navigationController?.pushViewController(detail, animated: true)
|
|
|
|
+ }
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|