You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
56 lines
1.3 KiB
56 lines
1.3 KiB
<template>
|
|
<div class="vab-ad">
|
|
<el-carousel
|
|
v-if="adList"
|
|
height="30px"
|
|
direction="vertical"
|
|
:autoplay="true"
|
|
:interval="3000"
|
|
indicator-position="none"
|
|
>
|
|
<el-carousel-item v-for="(item, index) in adList" :key="index">
|
|
<el-tag type="warning" class="el-icon-warning" />
|
|
<a target="_blank" :href="item.url">{{ item.title }}</a>
|
|
</el-carousel-item>
|
|
</el-carousel>
|
|
</div>
|
|
</template>
|
|
<script>
|
|
// import { getList } from '@/api/ad'
|
|
export default {
|
|
data() {
|
|
return {
|
|
// nodeEnv: process.env.NODE_ENV,
|
|
adList: [{
|
|
title: '欢迎加入戎归星选电商平台,戎归星选电商平台致力于帮助农商商户、个体户打开销售渠道,只要你有优质货源,加入平台,将会找到更多客户!'
|
|
// url: '#'
|
|
}]
|
|
}
|
|
},
|
|
created() {
|
|
// this.fetchData();
|
|
},
|
|
methods: {
|
|
// async fetchData() {
|
|
// const { data } = await getList();
|
|
// this.adList = data;
|
|
// },
|
|
}
|
|
}
|
|
</script>
|
|
<style lang="scss" scoped>
|
|
.vab-ad {
|
|
height: 30px;
|
|
padding-right: 20px;
|
|
padding-left: 20px;
|
|
line-height: 30px;
|
|
cursor: pointer;
|
|
background: #eef1f6;
|
|
box-shadow: 0 -1px 2px rgba(0, 21, 41, 0.08) inset;
|
|
margin-top: 50px;
|
|
a {
|
|
color: #999;
|
|
}
|
|
}
|
|
</style>
|