|
@@ -95,6 +95,21 @@ class RegisterLoginViewController: BaseViewController {
|
|
|
override func setupData() {
|
|
|
player.play()
|
|
|
|
|
|
+ if (UMSocialManager.default()?.isInstall(.wechatSession) ?? true) { //验证
|
|
|
+ weixinLoginButton.isHidden = false
|
|
|
+ weixinLoginButton.snp.updateConstraints { (make) in
|
|
|
+ make.centerX.equalToSuperview().offset(-30)
|
|
|
+ }
|
|
|
+ QQLoginButton.snp.updateConstraints { (make) in
|
|
|
+ make.centerX.equalToSuperview().offset(30)
|
|
|
+ }
|
|
|
+ }else {
|
|
|
+ weixinLoginButton.isHidden = true
|
|
|
+ QQLoginButton.snp.updateConstraints { (make) in
|
|
|
+ make.centerX.equalToSuperview()
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
agreementLabel.addClickText("由你用户协议", attributeds: [NSAttributedString.Key.font:kRegularFont13 as Any,NSAttributedString.Key.foregroundColor:kffffffColor,NSAttributedString.Key.underlineStyle:NSUnderlineStyle.single.rawValue,NSAttributedString.Key.underlineColor:kffffffColor], transmitBody: nil) {
|
|
|
(data) in
|
|
|
Mediator.push(H5RouterModuleType.pushContentId6)
|