Commit 0f31cffe by chenwq

优化登录页面,调整请求逻辑,更新对话框组件样式,移除不必要的代码

1 parent 6444ef20
import { preReleaseAppId } from '~/config'
const target = ['ip', 'dev', 'uat', 'prod', 'preRelease']
let index = 2
let index = 1
/**
*
......@@ -49,45 +49,44 @@ if (systemInfo.platform != 'devtools') {
}
}
const secretKey = {
ip: {},
dev: {
sso: {
appKey: '8b31ae1009ccb0f96130ca4bd90e3d89',
secret: '02d60f17ae714872845d2aa9d3b087e109ccb0f96130ca4b'
}
},
uat: {
sso: {
appKey: '8b31ae1009ccb0f96130ca4bd90e3d89',
secret: '02d60f17ae714872845d2aa9d3b087e109ccb0f96130ca4b'
}
},
prod: {
sso: {
appKey: '8b31ae1009ccb0f96130ca4bd90e3d89',
secret: '02d60f17ae714872845d2aa9d3b087e109ccb0f96130ca4b'
}
},
preRelease: {
sso: {
appKey: '8b31ae1009ccb0f96130ca4bd90e3d89',
secret: '02d60f17ae714872845d2aa9d3b087e109ccb0f96130ca4b'
}
}
}[target[index]]
// const secretKey = {
// ip: {},
// dev: {
// sso: {
// appKey: '8b31ae1009ccb0f96130ca4bd90e3d89',
// secret: '02d60f17ae714872845d2aa9d3b087e109ccb0f96130ca4b'
// }
// },
// uat: {
// sso: {
// appKey: '8b31ae1009ccb0f96130ca4bd90e3d89',
// secret: '02d60f17ae714872845d2aa9d3b087e109ccb0f96130ca4b'
// }
// },
// prod: {
// sso: {
// appKey: '8b31ae1009ccb0f96130ca4bd90e3d89',
// secret: '02d60f17ae714872845d2aa9d3b087e109ccb0f96130ca4b'
// }
// },
// preRelease: {
// sso: {
// appKey: '8b31ae1009ccb0f96130ca4bd90e3d89',
// secret: '02d60f17ae714872845d2aa9d3b087e109ccb0f96130ca4b'
// }
// }
// }[target[index]]
const domain = {
ip: 'http://192.168.1.117:8315',
dev: 'https://scrm.dev.glsx.com.cn',
ip: 'http://192.168.1.125:6906',
dev: 'http://192.168.1.125:6906',
uat: 'https://scrm.test.glsx.com.cn',
preRelease: 'https://scrm.beta.glsx.com.cn',
prod: 'https://scrm.glsx.com.cn'
}[target[index]]
const pathEnum = {
sso: '/rop-scrm-sso/',
shopmall: '/rop-scrm-shopmall/'
vr: '/vr-api'
}
const CONFIG_ENV_MAP={
......@@ -100,6 +99,6 @@ module.exports = {
index,
domain,
pathEnum,
secretKey,
// secretKey,
env:CONFIG_ENV_MAP[index]
}
......@@ -35,6 +35,12 @@ module.exports = {
getImgVersion() {
return http.getMock();
},
/**手机号密码登录 */
passwordLogin(data) {
return http.post('/rest/login', {
...data
})
},
/**手机号验证码登录 */
phoneSmsLogin(data) {
return http.fetch('scrm.api.sso.sms.login', {
......
......@@ -6,39 +6,39 @@ let loginCount = null,
class UsersApi {
/**调用后台接口获取用户信息 */
async login() {
const appEnter = wx.getEnterOptionsSync()
try {
if (appEnter.scene === 1154 && appEnter.mode === 'singlePage') throw 'login:fail rejected due to no permission currently'
if (!loginCount) {
loginCache = null
loginCount = Date.now()
const {
code
} = await this.getWxCode(),
data = await http.fetch('scrm.api.sso.weapp.jscode.getOpenIdAndLogin', {
appId,
code,
delSessionId: true
})
loginCache = data
loginCount = null
return Promise.resolve(data)
} else {
return new Promise((resolve) => {
loginTimer = setInterval(() => {
if (loginCache) {
clearInterval(loginTimer)
loginCount = null
resolve(loginCache)
}
}, 1e3)
})
}
} catch (error) {
if (loginTimer) clearInterval(loginTimer)
loginCount = null
return Promise.reject(error)
}
// const appEnter = wx.getEnterOptionsSync()
// try {
// if (appEnter.scene === 1154 && appEnter.mode === 'singlePage') throw 'login:fail rejected due to no permission currently'
// if (!loginCount) {
// loginCache = null
// loginCount = Date.now()
// const {
// code
// } = await this.getWxCode(),
// data = await http.fetch('scrm.api.sso.weapp.jscode.getOpenIdAndLogin', {
// appId,
// code,
// delSessionId: true
// })
// loginCache = data
// loginCount = null
// return Promise.resolve(data)
// } else {
// return new Promise((resolve) => {
// loginTimer = setInterval(() => {
// if (loginCache) {
// clearInterval(loginTimer)
// loginCount = null
// resolve(loginCache)
// }
// }, 1e3)
// })
// }
// } catch (error) {
// if (loginTimer) clearInterval(loginTimer)
// loginCount = null
// return Promise.reject(error)
// }
}
/**调用接口获取登录凭证(code)。通过凭证进而换取用户登录态信息,包括用户在当前小程序的唯一标识(openid)、微信开放平台帐号下的唯一标识(unionid,若当前小程序已绑定到微信开放平台帐号)及本次登录的会话密钥(session_key)等。用户数据的加解密通讯需要依赖会话密钥完成。 */
getWxCode() {
......
import sign from './sign.js'
import {
secretKey,
// secretKey,
pathEnum,
domain,
} from '../env/index'
......@@ -57,13 +57,13 @@ class Request {
merchantId
} = wx.p.storage.get('merchant_info')
let projectName = params.projectName
if (!projectName) projectName = this.getRopProject(params.method)
if (!projectName) projectName = this.getRopProject()
const path = pathEnum[projectName]
params = this.getData(params)
wx.request({
url: `${domain}${path}router?method=${params.method}`,
url: `${domain}${path}${params.method}`,
data: params,
method: RequestMethods,
// method: RequestMethods,
header,
dataType: 'json',
responseType: 'text',
......@@ -127,36 +127,36 @@ class Request {
}
getData(params) {
let projectName = params.projectName
if (!projectName) projectName = this.getRopProject(params.method)
if (!projectName) projectName = this.getRopProject()
else delete params.projectName
let appKey = '48e5e13229b82c1b4e6e8c96151f0637'
let secret = 'c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b'
if (secretKey[projectName]) {
appKey = secretKey[projectName].appKey
secret = secretKey[projectName].secret
}
// let appKey = '48e5e13229b82c1b4e6e8c96151f0637'
// let secret = 'c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b'
// if (secretKey[projectName]) {
// appKey = secretKey[projectName].appKey
// secret = secretKey[projectName].secret
// }
let {
sessionId
} = wx.p.storage.get()
let noSignAttr = []
if (!params.sessionId && sessionId) params.sessionId = sessionId
if (params.delSessionId) {
delete params.sessionId
delete params.delSessionId
}
if (params.noSignAttr) {
noSignAttr = params.noSignAttr
delete params.noSignAttr
}
// if (params.delSessionId) {
// delete params.sessionId
// delete params.delSessionId
// }
// if (params.noSignAttr) {
// noSignAttr = params.noSignAttr
// delete params.noSignAttr
// }
params.v = '1.0.0'
params.format = 'json'
params.locale = 'zh_CN'
params.source = 'dj-wechat'
params.appKey = appKey
return sign(params, secret, noSignAttr)
params.source = 'uplus-wechat'
// params.appKey = appKey
return params
}
getRopProject(method) {
const projectName = method.split('.')[2]
getRopProject() {
const projectName = 'vr'
return projectName
}
}
......
......@@ -136,18 +136,6 @@ page {
font-size: 28rpx;
color: #1B233D;
}
.btn_primary {
color: #FC5B32;
font-weight: 500;
font-size: 28rpx;
}
.btn_cancel {
font-weight: 400;
font-size: 28rpx;
color: #1B233D;
}
.express-wrap{
height:1200rpx;
......
// components/Dialog/dialog.js
Component({
options: {
styleIsolation: 'shared'
},
/**
* 组件的属性列表
*/
......@@ -22,10 +25,12 @@ Component({
type: Array,
default: () => [{
text: '取消',
extClass: 'btn_cancel'
extClass: 'btn_cancel',
eventFn: 'dialogCancel'
}, {
text: '确定',
extClass: 'btn_primary'
text: '确认',
extClass: 'btn_primary',
eventFn: 'dialogConfirm'
}]
},
......@@ -50,11 +55,12 @@ Component({
handleClick(e) {
let {
index
} = e.detail
this.triggerEvent('buttontap', {
value: index
})
} = e.currentTarget.dataset
const eventFn = this.data.buttons[index].eventFn || (index === 0 ? 'dialogCancel' : 'dialogConfirm')
this.triggerEvent(eventFn)
},
onClose() {}
handleClose() {
this.triggerEvent('dialogCancel')
}
}
})
\ No newline at end of file
{
"component": true,
"usingComponents": {}
"usingComponents": {
"van-dialog": "@vant/weapp/dialog/index"
}
}
\ No newline at end of file
/* components/Dialog/dialog.wxss */
.auth-dialog-class {
text-align: center;
font-size: var(--fontSize28);
font-weight: 400;
.my-dialog {
border-radius: 24rpx !important;
}
.auth-dialog-class .van-dialog__header {
font-size: var(--fontSize36);
font-weight: 500;
.my-dialog .van-dialog__header {
padding: 0 !important;
line-height: 0 !important;
}
.dialog-container {
padding: 48rpx;
background-color: #FFFFFF;
position: relative;
}
.close-icon {
position: absolute;
top: 16rpx;
right: 16rpx;
width: 44rpx;
height: 44rpx;
z-index: 10;
}
.close-icon .icon {
width: 100%;
height: 100%;
}
.dialog-title {
text-align: center;
font-size: 36rpx;
color: #333333;
font-weight: 600;
margin-bottom: 16rpx;
}
.title_text {
font-family: PingFangSC-Medium;
font-weight: 500;
font-size: 40rpx;
color: #000000;
.dialog-content {
font-size: 28rpx;
color: #666666;
text-align: center;
line-height: 1.5;
margin-bottom: 40rpx;
}
.status {
width: 88rpx;
height: 88rpx;
position: relative;
left:50%;
left: 50%;
transform: translateX(-50%);
margin-bottom:28rpx;
.icon{
width:100%;
height:100%;
}
}
\ No newline at end of file
margin-bottom: 28rpx;
}
.status .icon {
width: 100%;
height: 100%;
}
.dialog-footer {
display: flex;
justify-content: space-between;
align-items: center;
}
.footer-btn {
flex: 1;
height: 80rpx;
line-height: 80rpx;
border-radius: 40rpx;
text-align: center;
font-size: 30rpx;
font-weight: 500;
}
.footer-btn.btn_cancel {
background-color: #EEF3FF;
color: #2F6DFA;
margin-right: 20rpx;
}
.footer-btn.btn_primary {
background-color: #2F6DFA;
color: #FFFFFF;
}
.dialog-footer.single-btn .footer-btn {
margin-right: 0;
}
<!--components/Dialog/dialog.wxml-->
<mp-dialog show="{{ show }}" class="auth-dialog-class" width="var(--fontSize552)" bindclose="onClose" mask="{{mask}}" bindbuttontap="handleClick" buttons="{{buttons}}" bindclose="onClose">
<view slot="title" wx:if="{{title}}">
<view class="title_text">{{title}}</view>
<van-dialog
use-slot
use-title-slot
show="{{ show }}"
show-confirm-button="{{ false }}"
show-cancel-button="{{ false }}"
custom-class="my-dialog"
z-index="{{99999}}"
>
<view class="dialog-container">
<view class="close-icon" bindtap="handleClose">
<glsx-image src="/common/close.png" mode="widthFix" class="icon"></glsx-image>
</view>
<view class="dialog-title" wx:if="{{title}}">{{title}}</view>
<view class="dialog-content">
<view class="status" wx:if="{{statusIcon}}">
<glsx-image webp src="/status/{{statusIcon}}.png" class="icon"></glsx-image>
</view>
<slot></slot>
</view>
<view class="dialog-footer {{buttons.length === 1 ? 'single-btn' : ''}}">
<block wx:for="{{buttons}}" wx:key="index">
<view class="footer-btn {{item.extClass || 'cancel'}}" bindtap="handleClick" data-index="{{index}}">
{{item.text}}
</view>
</block>
</view>
</view>
<view class="status" wx:if="{{statusIcon}}">
<glsx-image webp src="/status/{{statusIcon}}.png" class="icon"></glsx-image>
</view>
<slot></slot>
</mp-dialog>
</van-dialog>
......@@ -10,4 +10,4 @@ export const preReleaseAppId = 'wxb01113b06bddf6ec'
export const dsnUrl = 'https://70845376de464a7d9588639fd7c4b5f9@sentry.glsx.com.cn/46'
// cdn图片地址
export const IMG_URL = 'https://img02.glsx.com.cn/weapp/resource/miniprogram/uplus-fapai-mp/'
export const IMG_URL = 'https://img02.glsx.com.cn/weapp/resource/miniprogram/uplus-fapai-mp'
<view class="layout">
<view class="bg-top" wx:if="{{loginType==0}}">
<glsx-image src="/login/login-bg.png"></glsx-image>
<view class="bg-top">
<glsx-image src="/login/login-bg.png" mode="widthFix"></glsx-image>
</view>
<navigation-bar navStyle="background:transparent;" showBack page-title="登录"><text class="page-title">登录</text></navigation-bar>
<!-- <navigation-bar navStyle="background:transparent;" showBack page-title="登录"><text class="page-title"></text></navigation-bar> -->
<view class="content" style="margin-top: {{navHeight}}px;">
<block wx:if="{{loginType==0}}">
<view class="h1">您好</view>
<view class="h2">
欢迎使用优加发拍小程序
</view>
<view class="login-img">
<glsx-image src="/login/login-img.png"></glsx-image>
</view>
<view class="wx-box">
<block wx:if="{{!isAgree}}">
<button class="wx-auth-button text-center {{isAgree}}" bindtap="showModal">登录</button>
</block>
<block wx:else>
<button open-type="getPhoneNumber" catchgetphonenumber="getPhoneNumber" class="wx-auth-button text-center">登录</button>
</block>
</view>
</block>
<block wx:else>
<view class="h3">
手机号登录
</view>
<view class="white-card">
<view class="h1 text-center">欢迎回来,请登录您的账号</view>
<view class="box">
<view class="login-item flex">
<input maxlength="11" type="number" adjust-position="{{false}}" placeholder-class="placeholderClass" placeholder="填写手机号" bindinput="input" data-name="mobile" class="input" value="{{mobile}}" />
<view class="icon-box" wx:if="{{mobile}}" bindtap="clear" data-name="mobile">
<view class="form-label">手机号</view>
<view class="login-item flex {{phoneError ? 'has-error' : ''}}">
<input maxlength="11" type="number" adjust-position="{{false}}" placeholder-class="placeholderClass" placeholder="请输入" bindinput="input" bindblur="blur" data-name="phone" class="input" value="{{phone}}" />
<view class="icon-box" wx:if="{{phone}}" bindtap="clear" data-name="phone">
<glsx-image src="/login/login-clear.png"></glsx-image>
</view>
</view>
<view class="login-item flex">
<input maxlength="4" type="number" adjust-position="{{false}}" placeholder-class="placeholderClass" placeholder="填写验证码" bindinput="input" data-name="captcha" class="input" value="{{captcha}}" />
<button disabled="{{!mobile}}" class="code-btn" bindtap="getSmsCode">{{count? count + 's':'获取验证码'}}</button>
<view class="error-tips" wx:if="{{phoneError}}">{{phoneError}}</view>
<view class="form-label">密码</view>
<view class="login-item flex mb-btn {{passwordError ? 'has-error' : ''}}">
<input maxlength="16" type="text" password="{{!showPwd}}" adjust-position="{{false}}" placeholder-class="placeholderClass" placeholder="请输入" bindinput="input" bindblur="blur" data-name="password" class="input" value="{{password}}" />
<view class="icon-box" bindtap="togglePwd">
<glsx-image src="{{showPwd ? '/login/login-pwd-show.png' : '/login/login-pwd-hide.png'}}"></glsx-image>
</view>
</view>
<view class="error-tips" wx:if="{{passwordError}}">{{passwordError}}</view>
</view>
<button class="wx-auth-button text-center" bindtap="phoneLogin">登录</button>
</block>
<view class="type-box flex">
<view class="title">
其他方式
</view>
<view class="type" bindtap="changeLoginType">
<view class="icon">
<glsx-image src="/login/{{loginType == 0?'phone':'wx'}}.png"></glsx-image>
<button class="wx-auth-button {{canSubmit ? 'active' : ''}} text-center" disabled="{{!canSubmit}}" bindtap="passwordLogin">登录</button>
<view class="tips text-center" bindtap="handleChangeAgree">
<view class="check {{isAgree}}">
<glsx-image src="/login/check.png" class="icon"></glsx-image>
</view>
{{loginType == 0?'手机号':'登录'}}
</view>
</view>
<view class="tips text-center" bindtap="handleChangeAgree">
<view class="check {{isAgree}}">
<glsx-image src="/login/check.png" class="icon"></glsx-image>
我已阅读并同意
<text class="txt-orange" catchtap="handleAgree" data-name="agreement">《用户协议》</text>
和
<text class="txt-orange" catchtap="handleAgree" data-name="privacy">《隐私政策》</text>
</view>
我已阅读并同意
<text class="txt-orange" catchtap="handleAgree" data-name="privacy">《隐私协议》</text>
<text class="txt-orange" catchtap="handleAgree" data-name="agreement">《服务使用协议》</text>
</view>
</view>
</view>
<glsx-privacy appletName="优加发拍"></glsx-privacy>
<Dialog show="{{ showAgreeModal }}" mask="true" bindbuttontap="dialogConfirm" buttons="{{buttons}}" title="隐私协议与用户协议">
<Dialog show="{{ showAgreeModal }}" mask="true" binddialogConfirm="dialogConfirm" binddialogCancel="showModal" buttons="{{buttons}}" title="是否同意">
<view class="suggest-box">
<view>为保障你的合法权益,请阅读并同意</view>
<text class="txt-orange" catchtap="handleAgree" data-name="privacy">《隐私协议》</text>
<text class="txt-orange" catchtap="handleAgree" data-name="agreement">《服务使用协议》</text>
<text>登录需同意</text>
<text class="txt-orange" catchtap="handleAgree" data-name="agreement">《用户协议》</text>和
<text class="txt-orange" catchtap="handleAgree" data-name="privacy">《隐私政策》</text>
</view>
</Dialog>
<!-- 积分来源选择 -->
<points-source show="{{showChooseSource}}" pointsSource="{{pointsSource}}" bindconfirm="pointSourceEvent"></points-source>
\ No newline at end of file
<!-- <points-source show="{{showChooseSource}}" pointsSource="{{pointsSource}}" bindconfirm="pointSourceEvent"></points-source> -->
\ No newline at end of file
/* pages/login/login.wxss */
page{
background-color: #FFFFFF !important;
page {
background-color: #FFFFFF !important;
}
.layout {
position: relative;
display: flex;
justify-content: center;
height: 100vh;
position: relative;
display: flex;
flex-direction: column;
height: 100vh;
}
.bg-top {
position: fixed;
z-index: -1;
width: 100%;
height: 974rpx;
top: 0;
left: 0;
animation: opacity .25s forwards;
position: absolute;
z-index: -1;
width: 100%;
height: 100%;
top: 0;
left: 0;
background-color: #2F6DFA;
}
.page-title {
color: #2D2D2E;
font-weight: 600;
font-size: 34rpx;
}
@keyframes opacity {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
.btn_primary {
color: #FB8A32;
font-size: 34rpx;
font-weight: 700;
.bg-top glsx-image {
width: 100%;
height: auto;
}
.h1 {
padding-top: 90rpx;
font-size: 60rpx;
color: #323436;
font-weight: 600;
padding-top: 4vh;
.content {
flex: 1;
display: flex;
flex-direction: column;
justify-content: flex-end;
}
.h2 {
font-size: 44rpx;
color: #323436;
.white-card {
width: 100%;
background: #FFFFFF;
border-radius: 48rpx 48rpx 0 0;
padding: 48rpx 70rpx;
box-sizing: border-box;
animation: opacity .25s forwards;
height: 60vh;
}
.login-img {
width: 468rpx;
height: 468rpx;
margin: 3vh auto;
.page-title {
color: #FFFFFF;
font-weight: 600;
font-size: 34rpx;
}
.h3 {
font-weight: 500;
font-size: 44rpx;
color: #323436;
padding: 176rpx 0 0 40rpx;
}
@keyframes opacity {
0% {
opacity: 0;
}
.wx-auth-button {
width: 590rpx !important;
height: 96rpx;
background: #FB8A32;
border-radius: 20rpx;
font-weight: 500;
font-size: 32rpx;
color: #FFFFFF;
padding: 0;
100% {
opacity: 1;
}
}
.wx-auth-button[disabled]:not([type]) {
background: #CCCED1 !important;
border-color: #CCCED1 !important;
color: #fff !important;
box-shadow: none;
.h1 {
font-weight: 400;
font-size: 28rpx;
color: rgba(0, 0, 0, 0.9);
margin-bottom: 32rpx;
text-align: center;
}
.wx-auth-button[disabled]:not([type])::after {
border-color: #CCCED1 !important;
.box {
margin-bottom: 60rpx;
}
.type-box {
flex-direction: column;
align-items: center;
margin-top: 33rpx;
font-size: 24rpx;
color: #8A8C90;
.form-label {
font-size: 24rpx;
color: rgba(0, 0, 0, 0.9);
margin: 0 0 16rpx 8rpx;
font-weight: 400;
}
.type {
text-align: center;
.login-item {
box-sizing: border-box;
height: 96rpx;
border-radius: 24rpx;
border: 2rpx solid #EAEAEA;
padding: 0 32rpx;
margin-bottom: 16rpx;
align-items: center;
}
.type .icon {
width: 68rpx;
height: 68rpx;
margin: 2vh auto 12rpx;
.mb-btn {
margin-bottom: 0;
}
.tips {
font-size: 24rpx;
color: #858A94;
position: fixed;
bottom: 68rpx;
left: 0;
width: 100%;
padding: 20rpx 0;
.login-item.has-error {
border-color: #FF4D4F;
margin-bottom: 10rpx;
}
.tips-text {
bottom: 26rpx;
.error-tips {
color: #FF4D4F;
font-size: 24rpx;
padding-left: 10rpx;
margin-bottom: 20rpx;
}
.tips .check {
width: 24rpx;
height: 24rpx;
box-sizing: border-box;
border-radius: 100%;
border: 2rpx solid #FB8A32;
margin-right: 8rpx;
position: relative;
.login-item .input {
flex: 1;
font-size: 32rpx;
font-weight: 400;
}
.tips .check.true {
border-color: #FB8A32;
.icon-box {
width: 48rpx;
height: 48rpx;
padding-left: 20rpx;
display: flex;
justify-content: center;
align-items: center;
}
.tips .check .icon {
display: none;
width: 100%;
height: 100%;
.icon-box glsx-image {
width: 48rpx;
height: 48rpx;
}
.tips .check.true .icon {
display: block;
.placeholderClass {
color: #CCCCCC;
font-weight: 400;
}
.wx-auth-button {
width: 100% !important;
height: 96rpx;
background: #abc9ff;
border-radius: 48rpx;
font-weight: 500;
font-size: 32rpx;
color: #FFFFFF;
padding: 0;
line-height: 96rpx;
margin-top: 20rpx;
}
.txt-orange {
color: #5092FF;
.wx-auth-button.active {
background: #2F6DFA;
}
.wx-auth-button[disabled]:not([type]) {
background: #B4CCFF !important;
color: #fff !important;
box-shadow: none;
}
/* 手机号 */
.box {
margin: 0 40rpx 18.5vh;
animation: opacity .25s forwards;
.tips {
font-size: 24rpx;
color: #666666;
padding: 40rpx 0;
display: flex;
align-items: center;
justify-content: flex-start;
}
.login-item {
height: 88rpx;
border-bottom: 2rpx solid #E3E3E6;
margin-top: 34rpx;
.tips .check {
width: 32rpx;
height: 32rpx;
box-sizing: border-box;
border-radius: 50%;
border: 2rpx solid #DCDCDC;
margin-right: 12rpx;
display: flex;
justify-content: center;
align-items: center;
}
.login-item .input {
flex: 1;
font-size: 32rpx;
font-weight: 600;
.tips .check.true {
border: none;
}
.icon-box{
width: 32rpx;
height: 32rpx;
padding-left: 20rpx;
.tips .check .icon {
display: none;
width: 100%;
height: 100%;
}
.placeholderClass {
color: #CCCED1;
font-weight: 400;
.tips .check.true .icon {
display: block;
}
.code-btn {
font-size: 24rpx;
color: #5092FF;
flex-shrink: 0;
margin-left: auto;
padding: 0 !important;
width: fit-content !important;
font-weight: 400;
background: transparent;
.txt-orange {
color: #2F6DFA;
}
.code-btn[disabled]:not([type]){
background-color: transparent;
.flex {
display: flex;
}
.code-btn::after {
display: none;
.text-center {
text-align: center;
}
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!