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
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
57 additions
and
111 deletions
login/index/components/Box/Box.wxml
login/index/index.scss
login/index/index.wxml
login/index/components/Box/Box.wxml
View file @
1168b36
<block wx:if="{{ loginType == 0 }}">
<view class="wx opacity-view">
<view class="title">您好</view>
<view class="subtitle">欢迎登录销售助手</view>
<image webp class="img" src="{{ IMGURL }}login/login-2.webp" />
</view>
<view class="wx opacity-view">
<view class="title">您好</view>
<view class="subtitle">欢迎登录销售助手</view>
<image webp class="img" src="{{ IMGURL }}login/login-2.webp" />
</view>
</block>
<block wx:else>
<view class="box">
<view class="input-box opacity-view">
<view class="title">{{loginType == 1?'手机号':'账号'}}登录</view>
<block wx:if="{{ loginType == 1 }}">
<view class="input">
<view class="label">手机号</view>
<input
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" />
</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 }}"
>{{
<view class="box">
<view class="input-box opacity-view">
<view class="title">{{loginType == 1?'手机号':'账号'}}登录</view>
<block wx:if="{{ loginType == 1 }}">
<view class="input">
<view class="label">手机号</view>
<input 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" />
</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后重新获取':'获取验证码'
}}</button>
<block wx:if="{{ smsError }}">
<view class="error">验证码错误</view>
</block>
</view>
</block>
<block wx:else>
<view class="input">
<input
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" />
</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 wx:if="{{ smsError }}">
<view class="error">验证码错误</view>
</block>
</view>
</block>
<block wx:else>
<view class="input">
<input 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" />
</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 wx:if="{{ loginType == 0 &&agree }}">
<button
class="button"
disabled="{{ disabled }}"
hover-class="btn-hover"
open-type="getPhoneNumber"
bindgetphonenumber="wxLogin"
loading="{{ loading }}"
>登录</button>
<button class="button" disabled="{{ disabled }}" hover-class="btn-hover" open-type="getPhoneNumber" bindgetphonenumber="wxLogin" loading="{{ loading }}">登录</button>
</block>
<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>
<view class="auth_box">
<!-- <auth-setting bind:choose="authChoose" /> -->
<auth-setting bind:choose="authChoose" agree="{{ agree }}" />
<!-- <auth-setting bind:choose="authChoose" /> -->
<auth-setting bind:choose="authChoose" agree="{{ agree }}" />
</view>
<!-- 协议 -->
<!-- <auth-setting bind:choose="authChoose" agree="{{ agree }}" /> -->
<glsx-privacy appletName="生意助手" bind:agreeClick="agreeClick" bind:disagreeClick="disagreeClick"></glsx-privacy>
<!-- 未同意协议弹窗提示 -->
<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"
>
<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 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 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>
\ No newline at end of file
login/index/index.scss
View file @
1168b36
...
...
@@ -42,6 +42,7 @@
}
.button
{
box-sizing
:
border-box
;
width
:
100%
!
important
;
height
:
88rpx
;
background
:
var
(
--
btnColor
);
...
...
@@ -52,6 +53,7 @@
line-height
:
88rpx
;
padding
:
0
;
transition
:
all
.1s
;
border
:
none
;
&
[
disabled
]
:not
([
type
])
{
background
:
#CCCED1
!
important
;
...
...
@@ -59,6 +61,10 @@
}
}
.
button
:
:
after
{
border
:
none
;
}
.btn-hover
{
opacity
:
.75
;
}
\ No newline at end of file
login/index/index.wxml
View file @
1168b36
...
...
@@ -4,5 +4,4 @@
<box loginType="{{loginType}}" disabled="{{disabled}}" id="box" />
<agree show="{{loginType == 2}}" text="7天内免登陆" value="{{autoLogin}}" bindchange="changeAgree" />
<type-list loginType="{{loginType}}" />
</view>
\ 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