|
|
@@ -54,8 +54,8 @@
|
|
|
</el-form>
|
|
|
</el-tab-pane>
|
|
|
</el-tabs>
|
|
|
- <el-divider><span style="color:#999;font-weight:300">其他登录方式</span></el-divider>
|
|
|
- <span>敬请期待</span>
|
|
|
+ <!-- <el-divider><span style="color:#999;font-weight:300">其他登录方式</span></el-divider>
|
|
|
+ <span>敬请期待</span> -->
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
@@ -141,8 +141,11 @@ export default {
|
|
|
let that = this
|
|
|
if (res.code === 1) {
|
|
|
this.checked?localStorage.setItem('phonenumber',this.loginForm.phonenumber):localStorage.clear('phonenumber')
|
|
|
- this.$router.push('/accounts')
|
|
|
+
|
|
|
sessionStorage.setItem('account_list',JSON.stringify(res.account_list))
|
|
|
+
|
|
|
+ sessionStorage.setItem('active_account',JSON.stringify(res.account_list[0]))
|
|
|
+ this.$router.push('/main')
|
|
|
} else {
|
|
|
this.$notify({
|
|
|
title: '失败',
|
|
|
@@ -161,8 +164,11 @@ export default {
|
|
|
})
|
|
|
if (res.code === 1) {
|
|
|
this.checked?localStorage.setItem('phonenumber',this.loginForm.phonenumber):localStorage.clear('phonenumber')
|
|
|
- this.$router.push('/accounts')
|
|
|
sessionStorage.setItem('account_list',JSON.stringify(res.account_list))
|
|
|
+ sessionStorage.setItem('active_account',JSON.stringify(res.account_list[0]))
|
|
|
+ this.query_userauth()
|
|
|
+ this.querySite_Parameter()
|
|
|
+
|
|
|
} else {
|
|
|
this.$notify({
|
|
|
title: '失败',
|
|
|
@@ -170,18 +176,52 @@ export default {
|
|
|
type: 'error'
|
|
|
})
|
|
|
}
|
|
|
- }
|
|
|
+ },
|
|
|
+ // 查询应用授权
|
|
|
+ async query_userauth () {
|
|
|
+ const res = await this.$api.requested({
|
|
|
+ "classname": "sysmanage.develop.userauthforweb.userauth",
|
|
|
+ "method": "query_userauth",
|
|
|
+ "content": {
|
|
|
+ "place":1
|
|
|
+ }
|
|
|
+ })
|
|
|
+
|
|
|
+ this.auth_data = res.data
|
|
|
+ sessionStorage.setItem('module_info', JSON.stringify(this.auth_data))
|
|
|
+ this.$router.push('/main')
|
|
|
+ },
|
|
|
+ // 查询文件夹ID信息
|
|
|
+ async querySite_Parameter () {
|
|
|
+ const res = await this.$api.requested({
|
|
|
+ "classname": "webmanage.site.site",
|
|
|
+ "method": "querySite_Parameter",
|
|
|
+ "content": {
|
|
|
+ }
|
|
|
+ })
|
|
|
+ let obj = {
|
|
|
+ appfolderid: res.data.appfolderid, // 应用附件文件夹ID
|
|
|
+ salematerialfolderid: res.data.salematerialfolderid // 营销物文件夹ID
|
|
|
+ }
|
|
|
+ sessionStorage.setItem('folderid',JSON.stringify(obj))
|
|
|
+ },
|
|
|
}
|
|
|
}
|
|
|
|
|
|
</script>
|
|
|
<style>
|
|
|
-
|
|
|
+.login-form .el-input__inner{
|
|
|
+ color:#fff;
|
|
|
+ border: 1px solid #0000004d;
|
|
|
+ background: rgba(0, 0, 0, 0.1);
|
|
|
+ box-shadow: 2px 8px 8px 0 rgb(0 0 0 / 10%) inset;
|
|
|
+}
|
|
|
</style>
|
|
|
<style scoped>
|
|
|
.logo{
|
|
|
text-align: center;
|
|
|
margin-bottom: 30px;
|
|
|
+ color:#fff;
|
|
|
}
|
|
|
.logo span{
|
|
|
display: block;
|
|
|
@@ -198,7 +238,7 @@ export default {
|
|
|
justify-content: space-between;
|
|
|
height: 33px;
|
|
|
margin: 0 0 30px;
|
|
|
- color: #202d40;
|
|
|
+ color: #fff;
|
|
|
font-size: 24px;
|
|
|
font-weight: 600;
|
|
|
}
|
|
|
@@ -209,15 +249,18 @@ export default {
|
|
|
width: 100%;
|
|
|
height: 100vh;
|
|
|
/* background: #fff no-repeat 50% url(../../assets/bg.png); */
|
|
|
- background: #f1f2f3;
|
|
|
- background-size: 2560px 1490px;
|
|
|
+ background: url("../../assets/wallhaven-2k987m.jpeg") no-repeat;
|
|
|
+ background-size: cover;
|
|
|
}
|
|
|
.login-form{
|
|
|
/* min-height: 500px; */
|
|
|
width: 400px;
|
|
|
padding: 30px;
|
|
|
- background: #fff;
|
|
|
+ color:#fff;
|
|
|
+ background: rgb(255, 255, 255,.2);
|
|
|
+ backdrop-filter: blur(30px);
|
|
|
border-radius: 10px;
|
|
|
+ box-shadow: 2px 8px 8px 0 rgb(0 0 0 / 20%);
|
|
|
}
|
|
|
.form-input-group{
|
|
|
margin-bottom: 16px
|