style: 移动端注册页面顶部logo
This commit is contained in:
@@ -13,7 +13,18 @@
|
||||
@click="turnToNewPage('https://www.aidlab.hk/en/')"
|
||||
src="@/assets/images/loginPage/aida_Logo_login.png"
|
||||
/> -->
|
||||
<div class="mobile_logo_group" v-if="isMoblie" @click="turnToNewPage('/')">
|
||||
<img
|
||||
class="homeRecommend_logo aid"
|
||||
src="@/assets/images/loginPage/aida_logo.png"
|
||||
/>
|
||||
<img
|
||||
class="homeRecommend_logo code"
|
||||
src="@/assets/images/loginPage/aida_Logo_login.png"
|
||||
/>
|
||||
</div>
|
||||
<img
|
||||
v-else
|
||||
class="homeRecommend_logo"
|
||||
@click="turnToNewPage('/')"
|
||||
src="@/assets/images/homePage/aidaIcon.png"
|
||||
@@ -43,61 +54,71 @@
|
||||
<div class="homeRecommend_right">
|
||||
<!-- <div class="homeRecommend_right" v-if="userDetail.systemUser == -1"> -->
|
||||
<div class="cutLangue">
|
||||
<div @click="()=>isSelectSuccessively = !isSelectSuccessively">
|
||||
<div @click="() => (isSelectSuccessively = !isSelectSuccessively)">
|
||||
<i class="fi fi-rr-globe"></i>
|
||||
<!-- <a-switch :checked="isSelectSuccessively" @click="()=>isSelectSuccessively = !isSelectSuccessively" checked-children="EN" un-checked-children="CN"/> -->
|
||||
{{ isSelectSuccessively ? 'CN' : 'EN' }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="gallery_btn" @click="setLogin">{{ isSelectSuccessively?'登录':'Login' }}</div>
|
||||
<div class="gallery_btn" @click="setLogin">
|
||||
{{ isSelectSuccessively ? '登录' : 'Login' }}
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
<div class="content">
|
||||
<signUp ref="signUp" :isSelectSuccessively="isSelectSuccessively"></signUp>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</template>
|
||||
<script>
|
||||
import { defineComponent, toRefs, reactive, ref , nextTick,computed, onMounted, onBeforeUnmount } from "vue";
|
||||
import { setCookie, getCookie, WriteCookie,clonAllCookie } from "@/tool/cookie";
|
||||
import { Https } from "@/tool/https";
|
||||
import { useStore } from "vuex";
|
||||
import { useRouter } from 'vue-router';
|
||||
import {
|
||||
defineComponent,
|
||||
toRefs,
|
||||
reactive,
|
||||
ref,
|
||||
nextTick,
|
||||
computed,
|
||||
onMounted,
|
||||
onBeforeUnmount
|
||||
} from 'vue'
|
||||
import { setCookie, getCookie, WriteCookie, clonAllCookie } from '@/tool/cookie'
|
||||
import { Https } from '@/tool/https'
|
||||
import { useStore } from 'vuex'
|
||||
import { useRouter } from 'vue-router'
|
||||
import signUp from '@/component/mainPage/signUp/index.vue'
|
||||
export default defineComponent({
|
||||
components: {
|
||||
signUp,
|
||||
signUp
|
||||
},
|
||||
setup() {
|
||||
const store = useStore();
|
||||
const router = useRouter();
|
||||
const store = useStore()
|
||||
const router = useRouter()
|
||||
let data = reactive({
|
||||
homeRecommendMax: null,
|
||||
signUp: null,
|
||||
isSelectSuccessively:false,
|
||||
isSelectSuccessively: false
|
||||
})
|
||||
let isMoblie = ref(false)
|
||||
let userDetail = computed(() => {
|
||||
return store.state.UserHabit.userDetail
|
||||
})
|
||||
let setLogin = () => {
|
||||
router.push("/login");
|
||||
router.push('/login')
|
||||
}
|
||||
let logout = () => {
|
||||
let userInfo = store.state.UserHabit.userDetail;
|
||||
let userInfo = store.state.UserHabit.userDetail
|
||||
let data = {
|
||||
userId: userInfo?.userId,
|
||||
};
|
||||
userId: userInfo?.userId
|
||||
}
|
||||
store.commit('createDetail')
|
||||
store.commit('createProbject')
|
||||
if (!data.userId) return
|
||||
Https.axiosPost(Https.httpUrls.accountLogout, data).then((rv) => {
|
||||
clonAllCookie();
|
||||
});
|
||||
Https.axiosPost(Https.httpUrls.accountLogout, data).then(rv => {
|
||||
clonAllCookie()
|
||||
})
|
||||
}
|
||||
let goHome = () => {
|
||||
router.push('/home');
|
||||
router.push('/home')
|
||||
}
|
||||
let time
|
||||
let updataIsMoblie = () => {
|
||||
@@ -109,45 +130,41 @@ export default defineComponent({
|
||||
isMoblie.value = false
|
||||
}
|
||||
}, 500)
|
||||
|
||||
}
|
||||
onMounted(() => {
|
||||
updataIsMoblie()
|
||||
window.addEventListener('resize', updataIsMoblie)
|
||||
})
|
||||
onBeforeUnmount(() => {
|
||||
window.removeEventListener('resize', updataIsMoblie);
|
||||
|
||||
});
|
||||
window.removeEventListener('resize', updataIsMoblie)
|
||||
})
|
||||
return {
|
||||
...toRefs(data),
|
||||
userDetail,
|
||||
setLogin,
|
||||
logout,
|
||||
goHome,
|
||||
isMoblie,
|
||||
isMoblie
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
};
|
||||
return {}
|
||||
},
|
||||
watch: {
|
||||
// credits.value(newVal,oldVal){
|
||||
// console.log(String(newVal).length);
|
||||
// }
|
||||
},
|
||||
mounted() {
|
||||
|
||||
},
|
||||
mounted() {},
|
||||
methods: {
|
||||
turnToNewPage(url) {
|
||||
window.open(url);
|
||||
window.open(url)
|
||||
},
|
||||
turnToWindow(url) {
|
||||
window.open(url);
|
||||
},
|
||||
},
|
||||
});
|
||||
window.open(url)
|
||||
}
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
||||
<style lang="less" scoped>
|
||||
@@ -157,7 +174,6 @@ export default defineComponent({
|
||||
height: 100%;
|
||||
flex-direction: column;
|
||||
|
||||
|
||||
&.openSignUp {
|
||||
.homeRecommend_heade {
|
||||
position: relative;
|
||||
@@ -185,7 +201,7 @@ export default defineComponent({
|
||||
position: absolute;
|
||||
align-items: center;
|
||||
z-index: 2;
|
||||
border-bottom: 1px solid #DDD;
|
||||
border-bottom: 1px solid #ddd;
|
||||
@media (max-width: 768px) {
|
||||
z-index: 1000;
|
||||
padding: 1.4rem 2.1rem;
|
||||
@@ -236,7 +252,7 @@ export default defineComponent({
|
||||
display: flex;
|
||||
margin-right: 1rem;
|
||||
@media (max-width: 768px) {
|
||||
margin-right: .7rem;
|
||||
margin-right: 0.7rem;
|
||||
font-size: 2rem;
|
||||
}
|
||||
}
|
||||
@@ -251,20 +267,14 @@ export default defineComponent({
|
||||
}
|
||||
}
|
||||
.homeRecommend_logo {
|
||||
// width: 14.4rem;
|
||||
height: 8rem;
|
||||
// height: 4rem;
|
||||
|
||||
margin-top: 0;
|
||||
margin-right: 2rem;
|
||||
@media (max-width: 768px) {
|
||||
// height: 1.76rem;
|
||||
height: 4.5rem;
|
||||
margin-right: .9rem;
|
||||
margin-right: 0.9rem;
|
||||
}
|
||||
// &:last-child{
|
||||
// margin-right: 2rem;
|
||||
// }
|
||||
}
|
||||
.login_footer_item_text {
|
||||
// margin-left: 5rem;
|
||||
@@ -287,6 +297,22 @@ export default defineComponent({
|
||||
align-items: center;
|
||||
position: relative;
|
||||
height: 3.7rem;
|
||||
.mobile_logo_group {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
cursor: pointer;
|
||||
column-gap: 0.9rem;
|
||||
.homeRecommend_logo {
|
||||
&.aid {
|
||||
width: 8rem;
|
||||
height: 1.75rem;
|
||||
}
|
||||
&.code {
|
||||
width: 5rem;
|
||||
height: 1.98rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
&.marLeft2 {
|
||||
margin-left: 2rem;
|
||||
}
|
||||
@@ -296,13 +322,13 @@ export default defineComponent({
|
||||
margin: 0 0.8rem;
|
||||
font-weight: 900;
|
||||
span {
|
||||
margin: .7rem;
|
||||
margin: 0.7rem;
|
||||
}
|
||||
}
|
||||
.icon-xiala {
|
||||
font-size: 1.4rem;
|
||||
cursor: pointer;
|
||||
transition: .3s all;
|
||||
transition: 0.3s all;
|
||||
}
|
||||
.icon_rotate {
|
||||
-moz-transform: rotate(180deg);
|
||||
@@ -312,7 +338,6 @@ export default defineComponent({
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
.content {
|
||||
flex: 1;
|
||||
|
||||
Reference in New Issue
Block a user