Commit 67657370 authored by anxixi's avatar anxixi

Merge remote-tracking branch 'origin/dev1.0.11' into dev1.0.11

parents 7ca9ffd9 ef2ce8e1
......@@ -4823,7 +4823,7 @@
.el-form-item__error {
color: #FF5D5D;
font-size: 12px;
line-height: 1;
line-height: 14px;
padding-top: 4px;
position: absolute;
top: 100%;
......
......@@ -952,7 +952,7 @@ i, em {
left: 0;
bottom: 0;
}
.tabClass{
.tabClass,.tabEnclass{
.mint-navbar .mint-tab-item{
min-width:1.5rem;
}
......@@ -960,6 +960,11 @@ i, em {
border-bottom-width: .1rem;
}
}
.tabEnclass{
.mint-navbar .mint-tab-item{
min-width: 2.5rem;
}
}
::-webkit-scrollbar{
display: none;
background-color:transparent !important;
......
......@@ -53,7 +53,8 @@ export default {
if(value ===''){
callback(new Error(i18n.t("errorValidate.errorNoPassword")));
}else if(!reg.test(value)){
callback(new Error(i18n.t("errorValidate.errorErrorPassword")));
if(window.localStorage.getItem("ismobile")==1) callback(new Error(i18n.t("commonTips.passwordDescriptionOne")+i18n.t("commonTips.passwordDescriptionTwo")+i18n.t("commonTips.passwordDescriptionThree")));
else callback(new Error(i18n.t("errorValidate.errorErrorPassword")));
}else{
callback();
}
......
......@@ -73,7 +73,7 @@
},
useHelp(){
this.$router.push("/useHelp");
this.$emit("itemBtn",5);
this.$emit("itemBtn",4);
},
}
};
......
......@@ -8,12 +8,17 @@
</div>
<div class="header-content" v-if="isShow" :class="lang=='en'?'ieEnUl':''">
<ul>
<ul class="navListLi">
<li
@click.stop="handleClick(index)"
@mouseenter="handleShowChildren(index)"
:class="currentIndex==index?'activeLi':''"
v-for="(item,index) in list">{{$t('topNav.'+item.name)}}
</li>
<div class="childrenLi" v-if="isShowChildren">
<p @click="handleToIndustryFocus">{{$t('topNav.professionfocusing')}}</p>
<p @click="handleToCase">{{$t('topNav.cooperationcase')}}</p>
</div>
<li v-if="userInfo" class="workPlaceLi" @click="handleToWork"><span class="iconfont icon-ic_web" style="color: #ff9e29;"></span>{{$t("topNav.workPlace")}}</li>
</ul>
</div>
......@@ -131,6 +136,7 @@
<script>
import api from '../../views/loginregister/api/api';
import publicFunc from '../../common/public'
import $ from 'jquery';
export default {
name: 'PageTop',
props: {
......@@ -150,8 +156,10 @@
},
data() {
return {
isShowChildren:false,
keyword:"",
searchword:"",
activeIndex: '1',
list: [{
id: 1,
name: "index"
......@@ -163,13 +171,13 @@
name: "findCustomer"
}, {
id: 4,
name: "professionfocusing"
}, {
id: 5,
name: "cooperationcase"
}, {
name: "industryActive"
}, {
id: 6,
name: "useHelp"
}, {
id: 7,
name: "knowledge"
}],
currentIndex: window.sessionStorage.getItem("currentNav")==null||window.sessionStorage.getItem("currentNav")==undefined||window.sessionStorage.getItem("currentNav")==1||window.sessionStorage.getItem("currentNav")==2?0:window.sessionStorage.getItem("currentNav"),
lang: this.$i18n.locale,
......@@ -187,6 +195,25 @@
}
},
methods: {
handleToIndustryFocus(){
this.currentIndex = 3;
this.$emit("itemNav",3);
globalMsg.$emit("sendItemNav",3);
window.sessionStorage.setItem("currentNav",3);
this.$router.push("/lndustryfocus");
},
handleToCase(){
this.currentIndex = 3;
this.$emit("itemNav",3);
globalMsg.$emit("sendItemNav",3);
window.sessionStorage.setItem("currentNav",3);
this.$router.push("/successfulcase");
},
handleClick(index) {
this.$emit('aboutwebtn',index+'');
if(this.currentIndex!=index){
......@@ -197,10 +224,11 @@
if((index==1||index==2)&&!this.userInfo) {
this.$router.push('/login');
}
if(index==5) this.$router.push("/useHelp");
if(index==5) this.$router.push("/knowledge");
if(index==4) this.$router.push("/useHelp");
if(index==0) this.$router.push("/");
if(index==4) this.$router.push("/successfulcase");
if(index==3) this.$router.push("/lndustryfocus");
// if(index==4) this.$router.push("/successfulcase");
// if(index==3) this.$router.push("/lndustryfocus");
if(index==1){
if(this.isCompleteInfo){
this.$router.push("/seeprojectlist");
......@@ -212,12 +240,20 @@
this.$router.push("/bigBusiness/list");
}else this.$router.push("/completeInfoCmpt");
}
this.$emit("itemNav",index);
globalMsg.$emit("sendItemNav",index);
if(index!=3){
this.$emit("itemNav",index);
globalMsg.$emit("sendItemNav",index);
}
},
handleShowChildren(index){
if(index==3) this.isShowChildren =true;
else this.isShowChildren =false;
},
//去消息
handleToAnnounce(){
this.getInitList();
......@@ -301,12 +337,16 @@
//登录
handleLogin(){
this.currentIndex = 0;
window.sessionStorage.setItem("currentNav",this.currentIndex);
if (this.$i18n.locale == "zh-CN") this.$router.push("/mobileLoginCmpt");
else this.$router.push('/emailLoginCmpt');
},
//注册
handleRegister(){
this.currentIndex = 0;
window.sessionStorage.setItem("currentNav",this.currentIndex);
if (this.$i18n.locale == "zh-CN") this.$router.push("/mobileRegisterCmpt");
else this.$router.push('/emailRegisterCmpt');
},
......@@ -458,7 +498,7 @@
}
},
numone(val){
if(val == 5||val==-1){
if(val == 4||val==-1){
this.currentIndex = Number(val);
window.sessionStorage.setItem("currentNav",this.currentIndex);
......@@ -699,4 +739,25 @@
margin: 0 12px;
}
}
.childrenLi{
background: #fff;
position: absolute;
top:60px;
left: 580px;
width: 110px;
&>p{
text-align: center;
color:#3F3F53;
height: 40px;
line-height: 40px;
border-bottom: 1px solid #E8EAF3;
cursor: pointer;
font-size:14px;
font-weight: 400;
&:hover{
color: #5d78ff;
}
}
}
</style>
......@@ -79,6 +79,9 @@
}, {
id: 6,
name: "useHelp"
}, {
id: 7,
name: "knowledge"
}],
keyword:window.sessionStorage.getItem("keyword")?window.sessionStorage.getItem("keyword"):null,
currentIndex:window.sessionStorage.getItem("mobileIndex")?window.sessionStorage.getItem("mobileIndex"):-1,
......@@ -102,6 +105,7 @@
if(index==2) this.$router.push("/lndustryfocused");
if(index==3) this.$router.push("/successfulcaseed");
if(index==4) this.$router.push("/usehelped");
if(index==5) this.$router.push("/knowledgeList");
}
window.sessionStorage.setItem("mobileIndex",this.currentIndex);
this.drawer = false;
......
......@@ -5,7 +5,7 @@
<p style="text-align: center;margin-top: -1.85rem;font-size: 0.38rem;color: #ffffff">{{$t('topNav.knowledge')}}</p>
<p style="text-align: center;margin-top: 0.2rem;font-size: 0.28rem;color: #C8CBE0">{{$t('Otherjson.knowledgeTitle1')}}&nbsp;&nbsp;&nbsp;&nbsp;{{$t('Otherjson.knowledgeTitle2')}}</p>
</div>
<div class="tabClass">
<div class="tabClass" :class="this.$i18n.locale&&this.$i18n.locale=='en'?'tabEnclass tabClass':'tabClass'">
<mt-navbar v-model="activeName" style="overflow: auto;padding-left: .4rem;">
<mt-tab-item id="first">{{$t('Otherjson.all')}}</mt-tab-item>
<mt-tab-item id="second">{{$t('Otherjson.knowledgeTab1')}}</mt-tab-item>
......
<template>
<div class="wrapper" element-loading-background="rgba(0, 0, 0, 0.8)">
<p>{{$t('register.title')}}</p>
<!--<p>{{$t('register.title')}}</p>-->
<div style="width: 100%;">
<img src="../../../assets/img/login/banner5@2x.png" alt="" style="height: 85px;margin-top: 20px;">
</div>
<el-tabs v-model="activeName">
<el-tab-pane :label="$t('register.registerEmail')" name="first">
<el-form :model="registerForm" :rules="rules" ref="registerForm"
......@@ -325,6 +328,9 @@
<style scoped lang="scss">
.wrapper{
display: flex;
flex-wrap: wrap;
justify-content: center;
& > p {
font-size: 30px;
line-height: 42px;
......
......@@ -52,7 +52,7 @@
},
handleToIndex(){
this.$router.push("/");
this.$router.push({name:"dashboard",params:{show:true}});
},
changeUrl(){
......
<template>
<div class="wrapper" element-loading-background="rgba(0, 0, 0, 0.8)">
<p>{{$t('register.title')}}</p>
<!--<p>{{$t('register.title')}}</p>-->
<div style="width: 100%;">
<img src="../../../assets/img/login/banner5@2x.png" alt="" style="height: 85px;margin-top: 20px;">
</div>
<el-tabs v-model="activeName">
<el-tab-pane :label="$t('register.registerByPhone')" name="first">
<el-form :model="registerForm" :rules="rules" ref="registerForm"
......@@ -319,6 +322,9 @@
<style scoped lang="scss">
.wrapper{
display: flex;
flex-wrap: wrap;
justify-content: center;
& > p {
font-size: 30px;
line-height: 42px;
......
......@@ -42,7 +42,7 @@
<!--</el-tooltip>-->
<el-form-item class="agreeprotocol" style="line-height: 0 !important;">
<el-form-item class="agreeprotocol" style="line-height: 0 !important;" :style="{marginTop:lang==1?'unset':'1rem'}">
<el-checkbox name="type" v-model="checked">
</el-checkbox>
......
......@@ -39,7 +39,7 @@
<!--</el-tooltip>-->
<el-form-item class="agreeprotocol">
<el-form-item class="agreeprotocol" style="margin-top: .8rem;">
<el-checkbox name="type" v-model="checked">
</el-checkbox>
......
<template>
<div class="wrapper" element-loading-background="rgba(0, 0, 0, 0.8)">
<p>{{$t("register.title")}}</p>
<img src="../../../assets/img/login/banner4@2x.png" alt="" style="height: 2.4rem;width: 100%;">
<!--<p>{{$t("register.title")}}</p>-->
<!--<span class="positionLoginOrRegister" @click="handleChange">{{activeMethod==1?$t('login.phoneCodeLogin'):$t('login.phonePwdLogin')}}</span>-->
<el-tabs v-model="activeName" :class="lang==1?'':'registerPhoneTab'">
<el-tab-pane :label="lang==1?$t('register.registerByPhone'):$t('register.registerEmail')" name="first">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment