diff --git a/mobile-h5/pages/login/index.vue b/mobile-h5/pages/login/index.vue index 158a70e1..ec887886 100644 --- a/mobile-h5/pages/login/index.vue +++ b/mobile-h5/pages/login/index.vue @@ -75,8 +75,6 @@ - 关注服务号,接收审批通知 - 或 @@ -100,8 +97,7 @@ @click="onWechatGate" > - - 微信授权登录 + 手机号快捷登录 @@ -127,20 +123,6 @@ 。是否同意并继续登录? - - - - - @@ -153,7 +135,6 @@ takeReturnUrl } from '../../utils/auth.js' import { validateCredentials } from '../../utils/validate-credentials.js' - import { MP_GH_USERNAME, MP_QRCODE_URL } from '../../utils/config.js' import ConfirmDialog from '../../components/ConfirmDialog.vue' export default { @@ -172,8 +153,6 @@ loading: false, focusUser: false, focusPwd: false, - showMpQrcode: false, - mpQrcodeUrl: MP_QRCODE_URL, errors: { username: '', password: '' @@ -232,21 +211,6 @@ openProtocol(type) { uni.navigateTo({ url: `/pages/protocol/index?type=${type}` }) }, - onFollowMp() { - const username = (MP_GH_USERNAME || '').trim() - const openProfile = - typeof wx !== 'undefined' && typeof wx.openOfficialAccountProfile === 'function' - if (openProfile && username) { - wx.openOfficialAccountProfile({ - username, - fail: () => { - this.showMpQrcode = true - } - }) - return - } - this.showMpQrcode = true - }, goAfterLogin() { const back = takeReturnUrl() if (back) { diff --git a/mobile-h5/styles/components/login.scss b/mobile-h5/styles/components/login.scss index 3bdaef33..c90d4949 100644 --- a/mobile-h5/styles/components/login.scss +++ b/mobile-h5/styles/components/login.scss @@ -136,75 +136,6 @@ color: var(--brand-green); } -.login-follow-mp { - margin-top: 28rpx; - text-align: center; - font-size: 24rpx; - color: var(--text-muted); - line-height: 1.45; - text-decoration: underline; - text-underline-offset: 6rpx; -} - -.login-mp-qrcode { - position: fixed; - inset: 0; - z-index: 1100; - display: flex; - align-items: center; - justify-content: center; - padding: 48rpx; - box-sizing: border-box; -} - -.login-mp-qrcode__mask { - position: absolute; - inset: 0; - background: rgba(15, 30, 24, 0.32); -} - -.login-mp-qrcode__panel { - position: relative; - z-index: 1; - width: 100%; - max-width: 560rpx; - padding: 44rpx 36rpx 32rpx; - background: var(--surface, #fff); - border-radius: 28rpx; - box-shadow: 0 20rpx 56rpx rgba(0, 0, 0, 0.14); - text-align: center; - box-sizing: border-box; -} - -.login-mp-qrcode__img { - display: block; - width: 360rpx; - height: 360rpx; - margin: 0 auto; - background: #f8fbfa; - border: 1px solid var(--border); - border-radius: 16rpx; -} - -.login-mp-qrcode__tip { - display: block; - margin-top: 24rpx; - font-size: 26rpx; - color: var(--text-muted); - line-height: 1.45; -} - -.login-mp-qrcode__close { - margin-top: 28rpx; - height: 80rpx; - line-height: 80rpx; - border-radius: 20rpx; - border: 1px solid var(--border); - font-size: 28rpx; - font-weight: 500; - color: var(--brand-green); -} - .login-divider { display: flex; align-items: center; @@ -249,10 +180,4 @@ button.login-wechat::after { display: flex; align-items: center; justify-content: center; - gap: 16rpx; -} - -.login-wechat__icon { - width: 44rpx; - height: 44rpx; }