Commit 4606cec8 by liimin

1.新增多商户选择后,loading状态

2.新增多商户选择界面返回按钮
1 parent 54fde7f1
......@@ -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']),
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!