|
@@ -210,17 +210,33 @@ class PQStuckPointPublicController: PQBaseViewController {
|
|
remindLab.textAlignment = .center
|
|
remindLab.textAlignment = .center
|
|
return remindLab
|
|
return remindLab
|
|
}()
|
|
}()
|
|
|
|
+
|
|
|
|
+ lazy var tips1Lab: UILabel = {
|
|
|
|
+ let tips1Lab = UILabel()
|
|
|
|
+ tips1Lab.text = "制作完成啦"
|
|
|
|
+ tips1Lab.font = UIFont.systemFont(ofSize: 19)
|
|
|
|
+ tips1Lab.textColor = UIColor.hexColor(hexadecimal: "#CCCCCC")
|
|
|
|
+ tips1Lab.textAlignment = .center
|
|
|
|
+ return tips1Lab
|
|
|
|
+ }()
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ lazy var tips2Lab: UILabel = {
|
|
|
|
+ let tips1Lab = UILabel()
|
|
|
|
+ tips1Lab.text = "快分享秀一下"
|
|
|
|
+ tips1Lab.font = UIFont.boldSystemFont(ofSize: 34)
|
|
|
|
+ tips1Lab.textColor = UIColor.hexColor(hexadecimal: "#CCCCCC")
|
|
|
|
+ tips1Lab.textAlignment = .center
|
|
|
|
+ return tips1Lab
|
|
|
|
+ }()
|
|
|
|
|
|
lazy var shareWechatBtn: UIButton = {
|
|
lazy var shareWechatBtn: UIButton = {
|
|
let shareWechatBtn = UIButton(type: .custom)
|
|
let shareWechatBtn = UIButton(type: .custom)
|
|
- shareWechatBtn.frame = CGRect(x: 0, y: 0, width: 165, height: 100)
|
|
|
|
|
|
+ shareWechatBtn.frame = CGRect(x: 0, y: 0, width: 70, height: 70)
|
|
shareWechatBtn.setImage(UIImage.init().BF_Image(named: "reCreate_opration_wechat"), for: .normal)
|
|
shareWechatBtn.setImage(UIImage.init().BF_Image(named: "reCreate_opration_wechat"), for: .normal)
|
|
- shareWechatBtn.setTitle("分享好友和群", for: .normal)
|
|
|
|
|
|
+
|
|
shareWechatBtn.titleLabel?.font = UIFont.systemFont(ofSize: 16)
|
|
shareWechatBtn.titleLabel?.font = UIFont.systemFont(ofSize: 16)
|
|
shareWechatBtn.setTitleColor(UIColor.white, for: .normal)
|
|
shareWechatBtn.setTitleColor(UIColor.white, for: .normal)
|
|
- shareWechatBtn.backgroundColor = UIColor.hexColor(hexadecimal: "#0F0F14")
|
|
|
|
- shareWechatBtn.addCorner(corner: 6)
|
|
|
|
- shareWechatBtn.imagePosition(at: .top, space: 5)
|
|
|
|
shareWechatBtn.tag = 1
|
|
shareWechatBtn.tag = 1
|
|
shareWechatBtn.addTarget(self, action: #selector(btnClick(sender:)), for: .touchUpInside)
|
|
shareWechatBtn.addTarget(self, action: #selector(btnClick(sender:)), for: .touchUpInside)
|
|
return shareWechatBtn
|
|
return shareWechatBtn
|
|
@@ -228,14 +244,10 @@ class PQStuckPointPublicController: PQBaseViewController {
|
|
|
|
|
|
lazy var shareFriendBtn: UIButton = {
|
|
lazy var shareFriendBtn: UIButton = {
|
|
let shareFriendBtn = UIButton(type: .custom)
|
|
let shareFriendBtn = UIButton(type: .custom)
|
|
- shareFriendBtn.frame = CGRect(x: 0, y: 0, width: 165, height: 100)
|
|
|
|
|
|
+ shareFriendBtn.frame = CGRect(x: 0, y: 0, width: 70, height: 70)
|
|
shareFriendBtn.setImage(UIImage.init().BF_Image(named: "reCreate_opration_friend"), for: .normal)
|
|
shareFriendBtn.setImage(UIImage.init().BF_Image(named: "reCreate_opration_friend"), for: .normal)
|
|
- shareFriendBtn.setTitle("分享朋友圈", for: .normal)
|
|
|
|
shareFriendBtn.titleLabel?.font = UIFont.systemFont(ofSize: 16)
|
|
shareFriendBtn.titleLabel?.font = UIFont.systemFont(ofSize: 16)
|
|
shareFriendBtn.setTitleColor(UIColor.white, for: .normal)
|
|
shareFriendBtn.setTitleColor(UIColor.white, for: .normal)
|
|
- shareFriendBtn.backgroundColor = UIColor.hexColor(hexadecimal: "#0F0F14")
|
|
|
|
- shareFriendBtn.addCorner(corner: 6)
|
|
|
|
- shareFriendBtn.imagePosition(at: .top, space: 5)
|
|
|
|
shareFriendBtn.tag = 2
|
|
shareFriendBtn.tag = 2
|
|
shareFriendBtn.addTarget(self, action: #selector(btnClick(sender:)), for: .touchUpInside)
|
|
shareFriendBtn.addTarget(self, action: #selector(btnClick(sender:)), for: .touchUpInside)
|
|
return shareFriendBtn
|
|
return shareFriendBtn
|
|
@@ -284,6 +296,8 @@ class PQStuckPointPublicController: PQBaseViewController {
|
|
view.addSubview(remindLab)
|
|
view.addSubview(remindLab)
|
|
view.addSubview(shareWechatBtn)
|
|
view.addSubview(shareWechatBtn)
|
|
view.addSubview(shareFriendBtn)
|
|
view.addSubview(shareFriendBtn)
|
|
|
|
+ view.addSubview(tips2Lab)
|
|
|
|
+ view.addSubview(tips1Lab)
|
|
navHeadImageView?.addSubview(finishedBtn)
|
|
navHeadImageView?.addSubview(finishedBtn)
|
|
view.addSubview(oprationBgView)
|
|
view.addSubview(oprationBgView)
|
|
oprationBgView.addSubview(progressTipsLab)
|
|
oprationBgView.addSubview(progressTipsLab)
|
|
@@ -304,15 +318,30 @@ class PQStuckPointPublicController: PQBaseViewController {
|
|
make.right.equalToSuperview().offset(-12)
|
|
make.right.equalToSuperview().offset(-12)
|
|
}
|
|
}
|
|
shareWechatBtn.snp.makeConstraints { make in
|
|
shareWechatBtn.snp.makeConstraints { make in
|
|
- make.right.equalTo(view.snp_centerX).offset(-6)
|
|
|
|
- make.width.equalTo(165)
|
|
|
|
- make.height.equalTo(cDefaultMargin * 10)
|
|
|
|
|
|
+ make.right.equalTo(view.snp_centerX).offset(-12)
|
|
|
|
+ make.width.equalTo(70)
|
|
|
|
+ make.height.equalTo(70)
|
|
make.bottom.equalToSuperview().offset(-(cSafeAreaHeight + 32))
|
|
make.bottom.equalToSuperview().offset(-(cSafeAreaHeight + 32))
|
|
}
|
|
}
|
|
shareFriendBtn.snp.makeConstraints { make in
|
|
shareFriendBtn.snp.makeConstraints { make in
|
|
- make.left.equalTo(view.snp_centerX).offset(6)
|
|
|
|
|
|
+ make.left.equalTo(view.snp_centerX).offset(12)
|
|
make.width.bottom.height.equalTo(shareWechatBtn)
|
|
make.width.bottom.height.equalTo(shareWechatBtn)
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ tips2Lab.snp.makeConstraints { make in
|
|
|
|
+ make.centerX.equalToSuperview()
|
|
|
|
+ make.width.equalTo(34*7)
|
|
|
|
+ make.height.equalTo(34)
|
|
|
|
+ make.bottom.equalTo(shareFriendBtn.snp_top).offset(-21)
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ tips1Lab.snp.makeConstraints { make in
|
|
|
|
+ make.centerX.equalToSuperview()
|
|
|
|
+ make.width.equalTo(19*7)
|
|
|
|
+ make.height.equalTo(19)
|
|
|
|
+ make.bottom.equalTo(tips2Lab.snp_top).offset(-3)
|
|
|
|
+ }
|
|
|
|
+
|
|
remindLab.snp.makeConstraints { make in
|
|
remindLab.snp.makeConstraints { make in
|
|
make.centerX.equalToSuperview()
|
|
make.centerX.equalToSuperview()
|
|
make.height.equalTo(cDefaultMargin * 4)
|
|
make.height.equalTo(cDefaultMargin * 4)
|