<span data-before="点击招全职" class="school-publish-badge">
{{inter.fxz}}
</span>
.school-publish-badge:before {
// attr(attribute-name):获取元素html属性的值,通常与自定义属性data-*配合使用
content: attr(data-before);
position: absolute;
z-index: 1001;
top: -15px;
right: -60px;
width: 120px;
height: 40px;
line-height: 20px;
font-size: 20px;
-webkit-transform: scale(.5);
transform: scale(.5);
font-weight: 700;
color: #fff;
}
changeDataBefore(){
let changeData = document.getElementsByClassName('school-publish-badge');
changeData[0].setAttribute("data-before", this.i18n.djzqz)
},