<template>
<div class="markRate_card">
<div class="markRate_title">
<div
id="title_fgs"
:class="borderFlag == 'fgs' ? 'btnActive' : ''"
@click="showBorderFlag('fgs')"
>
AAAAAA
</div>
<div
id="title_sb"
:class="borderFlag == 'sb' ? 'btnActive' : ''"
@click="showBorderFlag('sb')"
>
BBBBBB
</div>
</div>
</div>
</template>
<script>
export default {
name: 'MarketRate',
data() {
return {
borderFlag: 'fgs',
showFlag: true
}
},
computed: {},
methods: {
showBorderFlag(type) {
this.borderFlag = type
if (type === 'fgs') {
this.showFlag = true
} else {
this.showFlag = false
}
}
}
}
</script>
<style lang="scss" scoped>
.markRate_card {
background: #ffffff;
border: 1px solid #eff2f7;
border-bottom: none;
border-radius: 2px;
cursor: default;
.markRate_title {
width: 95%;
background-color: #F6F6F6;
display: flex;
#title_fgs {
width: 150px;
text-align: center;
color: #000000;
font-size: 14px;
line-height: 40px;
cursor: pointer;
}
#title_sb {
width: 150px;
text-align: center;
color: #000000;
font-size: 14px;
line-height: 40px;
cursor: pointer;
}
.btnActive {
width: 100%;
height: 100%;
border-top: 2px #872921 solid;
background-color: #ffffff;
}
}
}
</style>