update site add sponsor
parent
5dc6ad7957
commit
ccd5d64982
|
@ -11,18 +11,50 @@
|
||||||
target="_blank"
|
target="_blank"
|
||||||
>
|
>
|
||||||
<img
|
<img
|
||||||
width="34"
|
height="51"
|
||||||
src="https://cdn.tipe.io/tipe/tipe-cat-no-text.svg"
|
src="https://cdn.tipe.io/tipe/tipe-cat-no-text.svg"
|
||||||
alt="tipe"
|
alt="tipe"
|
||||||
>
|
>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
<li
|
||||||
|
v-if="isEffective(effectiveTime.bmatch)"
|
||||||
|
class="sponsorsItem"
|
||||||
|
>
|
||||||
|
<a
|
||||||
|
href="https://www.bmatch.tech/?ref=ant-design-vue"
|
||||||
|
target="_blank"
|
||||||
|
>
|
||||||
|
<img
|
||||||
|
height="61"
|
||||||
|
src="https://cdn.nlark.com/yuque/0/2019/png/87084/1552279877057-assets/web-upload/48a6ba91-6750-478c-956f-57aedb632fe5.png"
|
||||||
|
alt="bmatch"
|
||||||
|
>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
|
import moment from 'moment';
|
||||||
export default {
|
export default {
|
||||||
props: ['title'],
|
props: ['title'],
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
top: 50,
|
||||||
|
effectiveTime : {
|
||||||
|
bmatch: {
|
||||||
|
start: '2019-03-11',
|
||||||
|
end: '2019-06-11',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
};
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
isEffective({start, end}){
|
||||||
|
return moment().isBetween(start, end);
|
||||||
|
},
|
||||||
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -120,6 +120,9 @@
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.snd-ad{
|
||||||
|
padding-bottom: 10px;
|
||||||
|
}
|
||||||
.sponsorsWrap {
|
.sponsorsWrap {
|
||||||
padding-left: 40px;
|
padding-left: 40px;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
@ -130,11 +133,15 @@
|
||||||
}
|
}
|
||||||
ul {
|
ul {
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
margin-top: 5px;
|
margin-top: 15px;
|
||||||
|
li {
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.sponsorsItem {
|
.sponsorsItem {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
margin-right: 8px;
|
margin-right: 10px;
|
||||||
|
height: 51px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#nav {
|
#nav {
|
||||||
|
|
Loading…
Reference in New Issue