Commit 9bdb91d8 by 张立顺

fix 样式修复

1 parent 4e6204c0
<block wx:if="{{ loginType == 0 }}"> <block wx:if="{{ loginType == 0 }}">
<view class="wx opacity-view"> <view class="wx opacity-view">
<view class="title">您好</view> <view class="title">您好</view>
<view class="subtitle">欢迎登录销售助手</view> <view class="subtitle">欢迎登录销售助手</view>
<image webp class="img" src="{{ IMGURL }}login/login-2.webp" /> <image webp class="img" src="{{ IMGURL }}login/login-2.webp" />
</view> </view>
</block> </block>
<block wx:else> <block wx:else>
<view class="box"> <view class="box">
<view class="input-box opacity-view"> <view class="input-box opacity-view">
<view class="title">{{loginType == 1?'手机号':'账号'}}登录</view> <view class="title">{{loginType == 1?'手机号':'账号'}}登录</view>
<block wx:if="{{ loginType == 1 }}"> <block wx:if="{{ loginType == 1 }}">
<view class="input"> <view class="input">
<view class="label">手机号</view> <view class="label">手机号</view>
<input <input type="number" placeholder="请输入手机号" placeholder-class="placeholder" bindinput="input" data-name="phone" value="{{ formData.phone }}" maxlength="11" />
type="number" <input-icon show="{{ formData.phone }}" bindtap="clear" data-name="phone" />
placeholder="请输入手机号" </view>
placeholder-class="placeholder" <view class="input">
bindinput="input" <view class="label">验证码</view>
data-name="phone" <input type="number" placeholder="请输入验证码" placeholder-class="placeholder" bindinput="input" data-name="code" value="{{ formData.code }}" maxlength="4" />
value="{{ formData.phone }}" <input-icon show="{{ formData.code }}" bindtap="clear" data-name="code" />
maxlength="11" <button plain="true" class="sms text-center" bindtap="getSmsCode" disabled="{{ count || !phoneReady }}" loading="{{ smsLoading }}">{{
/>
<input-icon show="{{ formData.phone }}" bindtap="clear" data-name="phone" />
</view>
<view class="input">
<view class="label">验证码</view>
<input
type="number"
placeholder="请输入验证码"
placeholder-class="placeholder"
bindinput="input"
data-name="code"
value="{{ formData.code }}"
maxlength="4"
/>
<input-icon show="{{ formData.code }}" bindtap="clear" data-name="code" />
<button
plain="true"
class="sms text-center"
bindtap="getSmsCode"
disabled="{{ count || !phoneReady }}"
loading="{{ smsLoading }}"
>{{
count? count + 's后重新获取':'获取验证码' count? count + 's后重新获取':'获取验证码'
}}</button> }}</button>
<block wx:if="{{ smsError }}"> <block wx:if="{{ smsError }}">
<view class="error">验证码错误</view> <view class="error">验证码错误</view>
</block> </block>
</view> </view>
</block> </block>
<block wx:else> <block wx:else>
<view class="input"> <view class="input">
<input <input type="text" placeholder="填写账号" placeholder-class="placeholder" bindinput="input" data-name="account" value="{{ formData.account }}" maxlength="15" />
type="text" <input-icon show="{{ formData.account }}" bindtap="clear" data-name="account" />
placeholder="填写账号" </view>
placeholder-class="placeholder" <view class="input">
bindinput="input" <input type="text" placeholder="填写密码" placeholder-class="placeholder" bindinput="input" data-name="password" value="{{ formData.password }}" maxlength="20" password="{{ !showPwd }}" />
data-name="account" <input-icon show bindtap="pwdSwitch" type="{{ showPwd?'showPwd':'hidePwd' }}" />
value="{{ formData.account }}" <input-icon show="{{ formData.password }}" bindtap="clear" data-name="password" />
maxlength="15" </view>
/> </block>
<input-icon show="{{ formData.account }}" bindtap="clear" data-name="account" /> </view>
</view> </view>
<view class="input">
<input
type="text"
placeholder="填写密码"
placeholder-class="placeholder"
bindinput="input"
data-name="password"
value="{{ formData.password }}"
maxlength="20"
password="{{ !showPwd }}"
/>
<input-icon show bindtap="pwdSwitch" type="{{ showPwd?'showPwd':'hidePwd' }}" />
<input-icon show="{{ formData.password }}" bindtap="clear" data-name="password" />
</view>
</block>
</view>
</view>
</block> </block>
<block wx:if="{{ loginType == 0 &&agree }}"> <block wx:if="{{ loginType == 0 &&agree }}">
<button <button class="button" disabled="{{ disabled }}" hover-class="btn-hover" open-type="getPhoneNumber" bindgetphonenumber="wxLogin" loading="{{ loading }}">登录</button>
class="button"
disabled="{{ disabled }}"
hover-class="btn-hover"
open-type="getPhoneNumber"
bindgetphonenumber="wxLogin"
loading="{{ loading }}"
>登录</button>
</block> </block>
<block wx:else> <block wx:else>
<button class="button" disabled="{{ disabled }}" hover-class="btn-hover" bindtap="login" loading="{{ loading }}">登录</button> <button class="button" disabled="{{ disabled }}" hover-class="btn-hover" bindtap="login" loading="{{ loading }}">登录</button>
</block> </block>
<view class="auth_box"> <view class="auth_box">
<!-- <auth-setting bind:choose="authChoose" /> --> <!-- <auth-setting bind:choose="authChoose" /> -->
<auth-setting bind:choose="authChoose" agree="{{ agree }}" /> <auth-setting bind:choose="authChoose" agree="{{ agree }}" />
</view> </view>
<!-- 协议 --> <!-- 协议 -->
<!-- <auth-setting bind:choose="authChoose" agree="{{ agree }}" /> --> <!-- <auth-setting bind:choose="authChoose" agree="{{ agree }}" /> -->
<glsx-privacy appletName="生意助手" bind:agreeClick="agreeClick" bind:disagreeClick="disagreeClick"></glsx-privacy> <glsx-privacy appletName="生意助手" bind:agreeClick="agreeClick" bind:disagreeClick="disagreeClick"></glsx-privacy>
<!-- 未同意协议弹窗提示 --> <!-- 未同意协议弹窗提示 -->
<van-dialog <van-dialog use-slot title="隐私协议与用户协议" show="{{ showAuthDialog }}" class="auth-dialog-class" custom-class="auth-dialog-class" width="var(--fontSize552)" show-cancel-button confirmButtonText="同意" use-title-slot="{{ true }}" confirm-button-color="#5092FF" bind:confirm="agreeEvent" bind:close="onClose">
use-slot <view slot="title">
title="隐私协议与用户协议" <view class="title_text">隐私协议与用户协议</view>
show="{{ showAuthDialog }}" </view>
class="auth-dialog-class" <view class="message-box">
custom-class="auth-dialog-class" <view class="message">为保障你的合法权益,请阅读并同意</view>
width="var(--fontSize552)" <text catchtap="jump" data-url="privacy">《隐私协议》</text>
show-cancel-button 和
confirmButtonText="同意" <text catchtap="jump" data-url="agreement">《用户协议》</text>
use-title-slot="{{ true }}" </view>
confirm-button-color="#5092FF"
bind:confirm="agreeEvent"
bind:close="onClose"
>
<view slot="title">
<view class="title_text">隐私协议与用户协议</view>
</view>
<view class="message-box">
<view class="message">为保障你的合法权益,请阅读并同意</view>
<text catchtap="jump" data-url="privacy">《隐私协议》</text>
和
<text catchtap="jump" data-url="agreement">《用户协议》</text>
</view>
</van-dialog> </van-dialog>
\ No newline at end of file \ No newline at end of file
...@@ -42,6 +42,7 @@ ...@@ -42,6 +42,7 @@
} }
.button { .button {
box-sizing: border-box;
width: 100% !important; width: 100% !important;
height: 88rpx; height: 88rpx;
background: var(--btnColor); background: var(--btnColor);
...@@ -52,6 +53,7 @@ ...@@ -52,6 +53,7 @@
line-height: 88rpx; line-height: 88rpx;
padding: 0; padding: 0;
transition: all .1s; transition: all .1s;
border: none;
&[disabled]:not([type]) { &[disabled]:not([type]) {
background: #CCCED1 !important; background: #CCCED1 !important;
...@@ -59,6 +61,10 @@ ...@@ -59,6 +61,10 @@
} }
} }
.button::after {
border: none;
}
.btn-hover { .btn-hover {
opacity: .75; opacity: .75;
} }
\ No newline at end of file \ No newline at end of file
...@@ -4,5 +4,4 @@ ...@@ -4,5 +4,4 @@
<box loginType="{{loginType}}" disabled="{{disabled}}" id="box" /> <box loginType="{{loginType}}" disabled="{{disabled}}" id="box" />
<agree show="{{loginType == 2}}" text="7天内免登陆" value="{{autoLogin}}" bindchange="changeAgree" /> <agree show="{{loginType == 2}}" text="7天内免登陆" value="{{autoLogin}}" bindchange="changeAgree" />
<type-list loginType="{{loginType}}" /> <type-list loginType="{{loginType}}" />
</view> </view>
\ 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!