Commit 0f31cffe by chenwq

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

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