Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-base
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 4606cec8
authored
Nov 09, 2023
by
liimin
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
1.新增多商户选择后,loading状态
2.新增多商户选择界面返回按钮
1 parent
54fde7f1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
src/views/Login.vue
src/views/Login.vue
View file @
4606cec
...
...
@@ -5,8 +5,9 @@
<h2>
专注汽车行业数字化+智能营销解决方案——帮您的流量变销量
</h2>
</div>
<div
class=
"login-wrap animate__animated"
:class=
"
{ animate__fadeInUp: isDoAnimate }">
<i
class=
"icon el-icon-arrow-left"
></i>
<div
class=
"merchants"
v-if=
"isHasMutilMerchants"
@
click=
"forback"
>
<div
class=
"wrap"
>
<div
class=
"wrap"
v-loading=
"isLoading"
>
<span
class=
"title"
>
请选择登录商户号
</span>
<GLScroll
class=
"login-merchants-scroll"
>
<div
class=
"item-wrap"
>
...
...
@@ -127,7 +128,8 @@ export default {
mobile
:
'13800138000'
},
isPrivacyChecked
:
true
,
chooseMerchant
:
null
chooseMerchant
:
null
,
isLoading
:
false
}
},
watch
:
{
...
...
@@ -226,6 +228,8 @@ export default {
}
} catch (error) {
this.error(error.message, ERROR_TYPE.MESSAGE)
} finally {
this.isLoading = false
}
},
/**
...
...
@@ -234,7 +238,9 @@ export default {
* 2.获取菜单信息并登录
*/
loginChoose: utils.debounce(function (merchant) {
if (this.isLoading) return
this.verifyPhone(merchant)
this.isLoading = true
}, 2000),
/**
* 登录成功,验证本账号是否需要短信验证登录
...
...
@@ -308,6 +314,7 @@ export default {
*/
error(message, type = this.isHasMutilMerchants) {
this.isLogin = false
this.isLoading = false
~[() => (this.errMsg = message), () => Message.error(message)][+type].call()
this.getCode()
},
...
...
@@ -327,6 +334,7 @@ export default {
this.getCode()
this.isHasMutilMerchants = false
this.chooseMerchant = null
this.isLoading = false
},
...mapActions('app', ['login']),
...mapActions('auth', ['permission', 'setSession']),
...
...
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