Commit 05ca8126 by ahxiangkui

英文版顶部调整,banner更多按钮调整,底部调整

parent 81549f47
...@@ -278,6 +278,10 @@ h4, ...@@ -278,6 +278,10 @@ h4,
font-weight: 300; font-weight: 300;
} }
.toolkit footer a:hover {
text-decoration: underline;
}
.toolkit section { .toolkit section {
margin-top: 30px; margin-top: 30px;
margin-bottom: 30px; margin-bottom: 30px;
...@@ -442,10 +446,67 @@ small, ...@@ -442,10 +446,67 @@ small,
background-color: #f26334; background-color: #f26334;
} }
.toolkit .bg-blue { .toolkit button.bg-blue {
background-color: #002c6c !important; background-color: #002c6c;
position: relative;
display: flex;
align-items: center;
border-radius: 4px;
font-size: 16px;
color: #ffffff;
padding: 5px 5px 5px !important;
}
.toolkit .bg-blue span {
margin-left: 18px;
}
.toolkit .bg-blue img {
position: absolute;
right: 20px;
top: 50%;
-webkit-transform: translateY(-50%);
transform: translateY(-50%);
}
.bg-blue {
background: #0e2c6b;
img {
position: absolute;
right: 20px;
top: 50%;
transform: translateY(-50%);
}
&:hover {
background: #061a4d !important;
img {
right: 17px;
}
}
&:focus {
background: #0e2c6b !important;
img {
right: 20px;
}
}
&:active {
background: #061a4d !important;
img {
right: 17px;
}
}
} }
.toolkit .btn-primary, .toolkit .btn-primary,
.toolkit .btn-secondary { .toolkit .btn-secondary {
padding: 5px 30px 5px; padding: 5px 30px 5px;
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
</template> </template>
<script> <script>
import TopBanner from './layout/topBanner.vue' import TopBanner from './layout/englishTopBanner.vue'
import Header from "./layout/englishHeader/index.vue"; import Header from "./layout/englishHeader/index.vue";
import Footer from "./layout/englishFoot.vue" import Footer from "./layout/englishFoot.vue"
export default { export default {
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<div class="row"> <div class="row">
<div class="col-xs-12 col-md-12"> <div class="col-xs-12 col-md-12">
<div class="row"> <div class="row">
<div class="col-xs-12 col-sm-6 col-md-1"> <div class="col-xs-12 col-sm-6 col-md-2">
<a @click="handleGo('/EnglishHome')"> <a @click="handleGo('/EnglishHome')">
<h4>Home</h4> <h4>Home</h4>
</a> </a>
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
</li> </li>
</ul> </ul>
</div> </div>
<div class="col-xs-12 col-sm-6 col-md-3"> <div class="col-xs-12 col-sm-6 col-md-2">
<h4>Training &amp; Learning</h4> <h4>Training &amp; Learning</h4>
<ul> <ul>
<li> <li>
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
</li> </li>
</ul> </ul>
</div> </div>
<div class="col-xs-12 col-sm-6 col-md-1"> <div class="col-xs-12 col-sm-6 col-md-2">
<a href="http://www.gs1.org/news-events" target="_blank"> <a href="http://www.gs1.org/news-events" target="_blank">
<h4>Events</h4> <h4>Events</h4>
</a> </a>
......
<template>
<div class="container d-none d-xl-block d-lg-block">
<div class="top-banner">
<div>The Global Language of Business</div>
<div class="top-banner-item language">
<el-dropdown class="language-dropdown" @command="handleClick">
<span class="el-dropdown-link">
{{ languageTxt }}<i class="el-icon-arrow-down el-icon--right"></i>
</span>
<el-dropdown-menu slot="dropdown" class="language-dropdown-menu">
<el-dropdown-item command="中文">中文</el-dropdown-item>
<el-dropdown-item command="EN">EN</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
</div>
<div class="top-banner-item tb-hover"></div>
<div class="top-banner-item">
</div>
<div class="top-banner-item">
</div>
<div class="top-banner-item tb-hover" @click="handleSearch">
<!-- <img src="../../assets/image/head/search.png" alt="" /> -->
<i class="bi bi-search"></i>
</div>
<div @click="toAdmin" style="
color: #00799e;
display: flex;
align-items: center;
cursor: pointer;
margin-left: 14px;
" v-if="user.username">
<img style="width: 22px" src="../../assets/image/mymanage/pic_touxiang.png" alt="" />
<!-- <span style="">个人中心:</span>-->
<span class="gs-hover" style="margin-left: 4px; font-weight: bold">{{
user.username
}}</span>
</div>
</div>
</div>
</template>
<script>
import { mapState } from "vuex";
export default {
name: "topBanner",
computed: {
...mapState(["urls"]),
},
watch: {
// $route: {
// handler (val) {
// const currentRouterComp = val.meta.language;
// if (currentRouterComp && currentRouterComp.indexOf("EN") !== -1) {
// this.languageTxt = "EN";
// } else {
// this.languageTxt = "中文";
// }
// },
// immediate: true,
// },
},
created () {
this.user = localStorage.getItem("loginInfo")
? JSON.parse(localStorage.getItem("loginInfo"))
: {};
// console.log(this.user);
},
data () {
return {
user: {},
languageTxt: "EN",
};
},
methods: {
toAdmin () {
if (
(this.user.userType === 1 && this.user.isXT !== 1) ||
(this.user.userType === 2 && this.user.isXT !== 1) ||
(this.user.userType === 3 && this.user.levels === null)
) {
this.$router.push({ path: "/MyManage/UnVerify/index" });
} else if (this.user.isXT === 1) {
this.$router.push({ path: "/MyManage/SystemMember/index" });
} else if (this.user.levels === 0) {
this.$router.push({ path: "/MyManage/admin/check" });
} else if (this.user.levels === 1) {
this.$router.push({ path: "/MyManage/admin/check" });
} else if (String(this.user.levels).length === 4) {
this.$router.push({ path: "/MyManage/admin/check" });
}
},
handleSearch () {
this.$router.push({
path: "/Home/sousuo",
});
},
handleClick (val) {
console.log(val, "val");
this.languageTxt = val;
if (val == "中文") {
this.$router.push({
path: "/Home",
});
} else {
this.$router.push({
path: "/EnglishHome",
});
}
},
},
};
</script>
<style lang="scss">
.language {
.el-dropdown {
font-size: 12px;
color: #414345;
}
}
.top-banner {
height: 30px;
width: 100%;
background: #f0f5fa;
font-size: 12px;
line-height: 30px;
font-weight: 400;
color: #414345;
display: flex;
align-items: center;
justify-content: flex-end;
.tb-hover:hover {
cursor: pointer;
color: #0e2c6b;
}
.top-banner-item {
color: #00799e;
> img {
width: 12px;
height: 12px;
margin-right: 6px;
}
> a {
text-decoration: none;
color: #00799e;
}
}
> div + div {
margin-left: 24px;
}
}
</style>
...@@ -13,45 +13,30 @@ ...@@ -13,45 +13,30 @@
</select> --> </select> -->
<el-dropdown-menu slot="dropdown" class="language-dropdown-menu"> <el-dropdown-menu slot="dropdown" class="language-dropdown-menu">
<el-dropdown-item command="中文">中文</el-dropdown-item> <el-dropdown-item command="中文">中文</el-dropdown-item>
<el-dropdown-item command="英文">英文</el-dropdown-item> <el-dropdown-item command="英文">EN</el-dropdown-item>
</el-dropdown-menu> </el-dropdown-menu>
</el-dropdown> </el-dropdown>
</div> </div>
<div class="top-banner-item tb-hover">咨询电话:400-7000-690</div> <div class="top-banner-item tb-hover">咨询电话:400-7000-690</div>
<div class="top-banner-item"> <div class="top-banner-item">
<img src="../../assets/image/head/wx.png" alt="" /> <img src="../../assets/image/head/wx.png" alt="" />
<a <a class="tb-hover" target="_blank" :href="`${urls.ancc}gs1cnweixin.aspx`">官方微信</a>
class="tb-hover"
target="_blank"
:href="`${urls.ancc}gs1cnweixin.aspx`"
>官方微信</a
>
</div> </div>
<div class="top-banner-item"> <div class="top-banner-item">
<img src="../../assets/image/head/xlwb.png" alt="" /> <img src="../../assets/image/head/xlwb.png" alt="" />
<a class="tb-hover" target="_blank" href="https://weibo.com/gs1cn" <a class="tb-hover" target="_blank" href="https://weibo.com/gs1cn">官方微博</a>
>官方微博</a
>
</div> </div>
<div class="top-banner-item tb-hover" @click="handleSearch"> <div class="top-banner-item tb-hover" @click="handleSearch">
<img src="../../assets/image/head/search.png" alt="" /> <img src="../../assets/image/head/search.png" alt="" />
</div> </div>
<div <div @click="toAdmin" style="
@click="toAdmin"
style="
color: #00799e; color: #00799e;
display: flex; display: flex;
align-items: center; align-items: center;
cursor: pointer; cursor: pointer;
margin-left: 14px; margin-left: 14px;
" " v-if="user.username">
v-if="user.username" <img style="width: 22px" src="../../assets/image/mymanage/pic_touxiang.png" alt="" />
>
<img
style="width: 22px"
src="../../assets/image/mymanage/pic_touxiang.png"
alt=""
/>
<!-- <span style="">个人中心:</span>--> <!-- <span style="">个人中心:</span>-->
<span class="gs-hover" style="margin-left: 4px; font-weight: bold">{{ <span class="gs-hover" style="margin-left: 4px; font-weight: bold">{{
user.username user.username
...@@ -71,10 +56,10 @@ export default { ...@@ -71,10 +56,10 @@ export default {
}, },
watch: { watch: {
$route: { $route: {
handler(val) { handler (val) {
const currentRouterComp = val.meta.language; const currentRouterComp = val.meta.language;
if (currentRouterComp && currentRouterComp.indexOf("英文") !== -1) { if (currentRouterComp && currentRouterComp.indexOf("EN") !== -1) {
this.languageTxt = "英文"; this.languageTxt = "EN";
} else { } else {
this.languageTxt = "中文"; this.languageTxt = "中文";
} }
...@@ -82,20 +67,20 @@ export default { ...@@ -82,20 +67,20 @@ export default {
immediate: true, immediate: true,
}, },
}, },
created() { created () {
this.user = localStorage.getItem("loginInfo") this.user = localStorage.getItem("loginInfo")
? JSON.parse(localStorage.getItem("loginInfo")) ? JSON.parse(localStorage.getItem("loginInfo"))
: {}; : {};
// console.log(this.user); // console.log(this.user);
}, },
data() { data () {
return { return {
user: {}, user: {},
languageTxt: "中文", languageTxt: "中文",
}; };
}, },
methods: { methods: {
toAdmin() { toAdmin () {
if ( if (
(this.user.userType === 1 && this.user.isXT !== 1) || (this.user.userType === 1 && this.user.isXT !== 1) ||
(this.user.userType === 2 && this.user.isXT !== 1) || (this.user.userType === 2 && this.user.isXT !== 1) ||
...@@ -112,12 +97,12 @@ export default { ...@@ -112,12 +97,12 @@ export default {
this.$router.push({ path: "/MyManage/admin/check" }); this.$router.push({ path: "/MyManage/admin/check" });
} }
}, },
handleSearch() { handleSearch () {
this.$router.push({ this.$router.push({
path: "/Home/sousuo", path: "/Home/sousuo",
}); });
}, },
handleClick(val) { handleClick (val) {
console.log(val, "val"); console.log(val, "val");
this.languageTxt = val; this.languageTxt = val;
if (val == "中文") { if (val == "中文") {
......
...@@ -18,8 +18,9 @@ ...@@ -18,8 +18,9 @@
China. China.
</p> </p>
<a @click="handleGo('SecondaryMenu/Introduction')"> <a @click="handleGo('SecondaryMenu/Introduction')">
<button type="button" class="btn-primary btn-margin bg-blue"> <button type="button" class="btn-primary btn-margin bg-blue width250">
More About GS1 China <span>More About GS1 China</span>
<img src="../../../assets/image/home/more-arrow.png" alt="" />
</button></a> </button></a>
</div> </div>
</div> </div>
...@@ -36,8 +37,9 @@ ...@@ -36,8 +37,9 @@
efficiency, safety, security and sustainability . efficiency, safety, security and sustainability .
</p> </p>
<a href="http://www.gs1.org/about" target="_blank"> <a href="http://www.gs1.org/about" target="_blank">
<button type="button" class="btn-primary btn-margin bg-blue"> <button type="button" class="btn-primary btn-margin bg-blue width220">
More About GS1 <span style="color:red;">More About GS1</span>
<img src="../../../assets/image/home/more-arrow.png" alt="" />
</button></a> </button></a>
</div> </div>
</div> </div>
...@@ -61,8 +63,9 @@ ...@@ -61,8 +63,9 @@
</li> </li>
<p></p> <p></p>
<a href="http://www.gs1.org/training" target="_blank"> <a href="http://www.gs1.org/training" target="_blank">
<button type="button" class="btn-primary btn-margin bg-blue"> <button type="button" class="btn-primary btn-margin bg-blue width200">
View More <span>View More</span>
<img src="../../../assets/image/home/more-arrow.png" alt="" />
</button></a> </button></a>
</div> </div>
</div> </div>
...@@ -90,8 +93,9 @@ ...@@ -90,8 +93,9 @@
Asia Pacific Asia Pacific
</li> </li>
<a href="http://www.gs1.org/contact/overview" target="_blank"> <a href="http://www.gs1.org/contact/overview" target="_blank">
<button type="button" class="btn-primary btn-margin bg-blue"> <button type="button" class="btn-primary btn-margin bg-blue width200">
View More <span>View More</span>
<img src="../../../assets/image/home/more-arrow.png" alt="" />
</button></a> </button></a>
</div> </div>
</div> </div>
...@@ -148,6 +152,15 @@ export default { ...@@ -148,6 +152,15 @@ export default {
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
@import "@/assets/css/english"; @import "@/assets/css/english";
.width200 {
width: 140px;
}
.width250 {
width: 230px;
}
.width220 {
width: 180px;
}
.carousel-inner { .carousel-inner {
height: 400px; height: 400px;
} }
......
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