Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
sales-assistant
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 1168b36c
authored
Nov 18, 2025
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'SAAS+V5.3.0-1117' into 'master'
上线合并 See merge request
!2
2 parents
b2ee2f9a
e36be1ab
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
67 deletions
login/index/components/Box/Box.wxml
login/index/index.scss
login/index/index.wxml
login/index/components/Box/Box.wxml
View file @
1168b36
...
@@ -12,36 +12,14 @@
...
@@ -12,36 +12,14 @@
<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"
placeholder="请输入手机号"
placeholder-class="placeholder"
bindinput="input"
data-name="phone"
value="{{ formData.phone }}"
maxlength="11"
/>
<input-icon show="{{ formData.phone }}" bindtap="clear" data-name="phone" />
<input-icon show="{{ formData.phone }}" bindtap="clear" data-name="phone" />
</view>
</view>
<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="code" value="{{ formData.code }}" maxlength="4" />
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" />
<input-icon show="{{ formData.code }}" bindtap="clear" data-name="code" />
<button
<button plain="true" class="sms text-center" bindtap="getSmsCode" disabled="{{ count || !phoneReady }}" loading="{{ smsLoading }}">{{
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 }}">
...
@@ -51,28 +29,11 @@
...
@@ -51,28 +29,11 @@
</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"
placeholder="填写账号"
placeholder-class="placeholder"
bindinput="input"
data-name="account"
value="{{ formData.account }}"
maxlength="15"
/>
<input-icon show="{{ formData.account }}" bindtap="clear" data-name="account" />
<input-icon show="{{ formData.account }}" bindtap="clear" data-name="account" />
</view>
</view>
<view class="input">
<view class="input">
<input
<input type="text" placeholder="填写密码" placeholder-class="placeholder" bindinput="input" data-name="password" value="{{ formData.password }}" maxlength="20" password="{{ !showPwd }}" />
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 bindtap="pwdSwitch" type="{{ showPwd?'showPwd':'hidePwd' }}" />
<input-icon show="{{ formData.password }}" bindtap="clear" data-name="password" />
<input-icon show="{{ formData.password }}" bindtap="clear" data-name="password" />
</view>
</view>
...
@@ -81,14 +42,7 @@
...
@@ -81,14 +42,7 @@
</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>
...
@@ -101,20 +55,7 @@
...
@@ -101,20 +55,7 @@
<!-- <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
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"
>
<view slot="title">
<view slot="title">
<view class="title_text">隐私协议与用户协议</view>
<view class="title_text">隐私协议与用户协议</view>
</view>
</view>
...
...
login/index/index.scss
View file @
1168b36
...
@@ -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
login/index/index.wxml
View file @
1168b36
...
@@ -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
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment