158 lines
3.2 KiB
Vue
158 lines
3.2 KiB
Vue
<template>
|
|
<div class="Attract_join">
|
|
<!-- 顶部图片 -->
|
|
<div class="Attract_join_bg">
|
|
</div>
|
|
<!--标签栏 -->
|
|
<div class="Attract_join_border">
|
|
<el-row type="flex">
|
|
<el-col :xs="1" :sm="2" :md="2" :lg="2" :xl="4"></el-col>
|
|
<el-col :xs="22" :sm="20" :md="20" :lg="20" :xl="16">
|
|
<el-tabs v-model="activeName" @tab-click="handleClick">
|
|
<el-tab-pane label="支持策略" name="first">支持策略</el-tab-pane>
|
|
<el-tab-pane label="加盟条件" name="second">加盟条件</el-tab-pane>
|
|
</el-tabs>
|
|
</el-col>
|
|
</el-row>
|
|
</div>
|
|
<!-- 支持策略 -->
|
|
<el-row type="flex">
|
|
<el-col :xs="1" :sm="2" :md="2" :lg="2" :xl="4"></el-col>
|
|
<el-col :xs="22" :sm="20" :md="20" :lg="20" :xl="16">
|
|
<div class="support" id="support">
|
|
<div class="support_title">
|
|
支持策略 / SUPPORT STRATEGY
|
|
</div>
|
|
</div>
|
|
<!--加盟条件-->
|
|
<div class="support" id="join">
|
|
<div class="support_title">
|
|
加盟条件 / FRANCHISE CONDITIONS
|
|
</div>
|
|
</div>
|
|
</el-col>
|
|
</el-row>
|
|
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
name: "index",
|
|
data() {
|
|
return {
|
|
activeName: 'first',
|
|
}
|
|
},
|
|
methods: {
|
|
handleClick(tab) {
|
|
const support = document.getElementById('support');
|
|
const join = document.getElementById('join');
|
|
if (tab.index == 0) {
|
|
support.style.display = "block"
|
|
join.style.display = "none"
|
|
} else if (tab.index == 1) {
|
|
join.style.display = "block"
|
|
support.style.display = "none"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style scoped lang="scss">
|
|
#join{
|
|
display: none;
|
|
}
|
|
/deep/ .el-tabs {
|
|
position: relative;
|
|
line-height: 55px;
|
|
}
|
|
|
|
/deep/ .el-tabs__nav {
|
|
float: right;
|
|
height: 100%;
|
|
}
|
|
|
|
/deep/ .el-tabs__header {
|
|
margin: 0;
|
|
}
|
|
|
|
/deep/ .el-tabs__content {
|
|
position: absolute;
|
|
top: 0;
|
|
}
|
|
|
|
/deep/ .el-tabs__item {
|
|
height: 55px;
|
|
line-height: 55px;
|
|
border-left: 1px solid #f1f1f1;
|
|
padding: 0 20px !important;
|
|
|
|
}
|
|
|
|
/deep/ .el-tabs__item.is-active {
|
|
color: #000;
|
|
border-bottom: 1px solid #333;
|
|
}
|
|
|
|
/deep/ .el-tabs__item:hover {
|
|
color: #000;
|
|
text-decoration: underline;
|
|
}
|
|
|
|
/deep/ .el-tabs--top .el-tabs__item.is-top:last-child {
|
|
border-right: 1px solid #f1f1f1;
|
|
}
|
|
|
|
/deep/ .el-tabs__active-bar {
|
|
display: none;
|
|
}
|
|
|
|
/deep/ .el-tabs__nav-wrap::after {
|
|
display: none;
|
|
}
|
|
|
|
/deep/ .el-tab-pane {
|
|
color: #333;
|
|
height: 55px;
|
|
line-height: 55px;
|
|
float: left;
|
|
font-size: 18px;
|
|
}
|
|
|
|
.Attract_join {
|
|
min-width: 1300px;
|
|
|
|
.Attract_join_bg {
|
|
background-image: url("http://www.yipengtaoci.com/upfiles/images/20181215/15448381427541777.jpg");
|
|
width: 100%;
|
|
height: 360px;
|
|
background-repeat: no-repeat;
|
|
background-position: center center;
|
|
}
|
|
|
|
.Attract_join_border {
|
|
width: 100%;
|
|
height: 55px;
|
|
border-bottom: 1px solid #ebebeb;
|
|
background-color: #fff;
|
|
}
|
|
|
|
.support {
|
|
padding: 70px 0;
|
|
|
|
.support_title {
|
|
color: #333;
|
|
display: inline;
|
|
width: 100%;
|
|
float: left;
|
|
margin: 0 0 35px 0;
|
|
font-size: 26px;
|
|
text-align: center;
|
|
letter-spacing: -1px;
|
|
}
|
|
}
|
|
}
|
|
</style>
|