fix(mobile-h5): remove follow-MP entry from login page
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
ac197ad90e
commit
88d863288f
2 files changed
+2
-113
No files matched your search
@@ -75,8 +75,6 @@
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="login-follow-mp" @click="onFollowMp">关注服务号,接收审批通知</view>
|
||||
|
||||
<view class="login-divider">或</view>
|
||||
|
||||
<button
|
||||
@@ -88,8 +86,7 @@
|
||||
@getphonenumber="onGetPhoneNumber"
|
||||
>
|
||||
<view class="oa-btn-loading__label login-wechat__inner">
|
||||
<image class="login-wechat__icon" src="/static/wechat-logo.png" mode="aspectFit" />
|
||||
<text>微信授权登录</text>
|
||||
<text>手机号快捷登录</text>
|
||||
</view>
|
||||
<view v-if="loading" class="oa-btn-loading__spin" aria-hidden="true" />
|
||||
</button>
|
||||
@@ -100,8 +97,7 @@
|
||||
@click="onWechatGate"
|
||||
>
|
||||
<view class="oa-btn-loading__label login-wechat__inner">
|
||||
<image class="login-wechat__icon" src="/static/wechat-logo.png" mode="aspectFit" />
|
||||
<text>微信授权登录</text>
|
||||
<text>手机号快捷登录</text>
|
||||
</view>
|
||||
<view v-if="loading" class="oa-btn-loading__spin" aria-hidden="true" />
|
||||
</view>
|
||||
@@ -127,20 +123,6 @@
|
||||
</text>
|
||||
<text>。是否同意并继续登录?</text>
|
||||
</ConfirmDialog>
|
||||
|
||||
<view v-if="showMpQrcode" class="login-mp-qrcode">
|
||||
<view class="login-mp-qrcode__mask" @click="showMpQrcode = false" />
|
||||
<view class="login-mp-qrcode__panel">
|
||||
<image
|
||||
class="login-mp-qrcode__img"
|
||||
:src="mpQrcodeUrl"
|
||||
mode="aspectFit"
|
||||
show-menu-by-longpress
|
||||
/>
|
||||
<text class="login-mp-qrcode__tip">长按识别关注</text>
|
||||
<view class="login-mp-qrcode__close" @click="showMpQrcode = false">关闭</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
Reference in new issue
Block a user