|
|
@@ -1,5 +1,6 @@
|
|
|
<template>
|
|
|
- <div class="login-container"
|
|
|
+ <div :class="type">
|
|
|
+ <div class="login-container "
|
|
|
ref="login"
|
|
|
@keyup.enter.native="handleLogin">
|
|
|
<top-color v-show="false"></top-color>
|
|
|
@@ -14,22 +15,23 @@
|
|
|
<div class="login-border">
|
|
|
<div class="login-main">
|
|
|
<h4 class="login-title">
|
|
|
- {{ $t('login.title') }}{{website.title}}
|
|
|
- <top-lang></top-lang>
|
|
|
+ {{website.title}}
|
|
|
+ <!-- <top-lang></top-lang> -->
|
|
|
</h4>
|
|
|
<userLogin v-if="activeName==='user'"></userLogin>
|
|
|
<codeLogin v-else-if="activeName==='code'"></codeLogin>
|
|
|
<thirdLogin v-else-if="activeName==='third'"></thirdLogin>
|
|
|
<div class="login-menu">
|
|
|
- <a href="#" @click.stop="activeName='user'">{{ $t('login.userLogin') }}</a>
|
|
|
+ <!-- <a href="#" @click.stop="activeName='user'">{{ $t('login.userLogin') }}</a> -->
|
|
|
<!--<a href="#" @click.stop="activeName='code'">{{ $t('login.phoneLogin') }}</a>-->
|
|
|
- <a href="#" @click.stop="activeName='third'">{{ $t('login.thirdLogin') }}</a>
|
|
|
+ <!-- <a href="#" @click.stop="activeName='third'">{{ $t('login.thirdLogin') }}</a> -->
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ </div>
|
|
|
</template>
|
|
|
<script>
|
|
|
import userLogin from "./userlogin";
|
|
|
@@ -41,7 +43,6 @@
|
|
|
import topLang from "@/page/index/top/top-lang";
|
|
|
import topColor from "@/page/index/top/top-color";
|
|
|
import {getQueryString, getTopUrl} from "@/util/util";
|
|
|
-
|
|
|
export default {
|
|
|
name: "login",
|
|
|
components: {
|
|
|
@@ -53,6 +54,7 @@
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ type: "",
|
|
|
time: "",
|
|
|
activeName: "user",
|
|
|
socialForm: {
|
|
|
@@ -71,6 +73,7 @@
|
|
|
created() {
|
|
|
this.handleLogin();
|
|
|
this.getTime();
|
|
|
+ this.initType();
|
|
|
},
|
|
|
mounted() {
|
|
|
},
|
|
|
@@ -79,6 +82,26 @@
|
|
|
},
|
|
|
props: [],
|
|
|
methods: {
|
|
|
+ initType(){
|
|
|
+ let domain = getTopUrl();
|
|
|
+ switch (domain) {
|
|
|
+ case "http://ldt.guosen-fumao.cn":
|
|
|
+ this.type = "ldt"
|
|
|
+ break;
|
|
|
+ case "http://ldt-shop.guosen-fumao.cn":
|
|
|
+ this.type = "shop"
|
|
|
+ break;
|
|
|
+ case "http://ldt-mall.guosen-fumao.cn":
|
|
|
+ this.type = "agent"
|
|
|
+ break;
|
|
|
+ case "http://ldt-agent.guosen-fumao.cn":
|
|
|
+ this.type = "agent"
|
|
|
+ break;
|
|
|
+ default:
|
|
|
+ this.type = "ldt"
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ },
|
|
|
getTime() {
|
|
|
setInterval(() => {
|
|
|
this.time = dateFormat(new Date());
|
|
|
@@ -115,5 +138,7 @@
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss">
|
|
|
- @import "@/styles/login.scss";
|
|
|
+ @import "./style/login-shop.scss";
|
|
|
+ @import "./style/login-ldt.scss";
|
|
|
+ @import "./style/login-agent.scss";
|
|
|
</style>
|