title = '微信登录'; $cssString = "html{ background: url('" . Yii::$app->config->get('site_login_bg') . "'); background-size: cover !important; background-attachment: fixed !important; } .login-page, .register-page{background: transparent;} "; $this->registerCss($cssString); ?>
{ $.post(location.href, { access_token:"{$access_token}", qrcode_hash:"{$media['name']}", }, (res) => { if (res.status == 1) { location.href = res.returnUrl; } else { $('.js-tips').text(res.message); if (res.errors.qrcode_hash) { $('.js-footer').css('color', '#19be6b'); } else { $('.js-footer').css('color', '#ed3f14'); } } }); }, 1000); }); JS; $this->registerJs($js); ?>