|
|
@@ -26,8 +26,8 @@ |
|
|
|
</el-carousel>
|
|
|
|
</div>
|
|
|
|
<HotNews v-if="display" :list="hotnewsList" :type="1"/>
|
|
|
|
<a :href="gg1.link" v-if="gg1.img" target="_blank">
|
|
|
|
<img class="bottom" :src="gg1.img" alt="">
|
|
|
|
<a :href="gg1.link" v-if="gg1.image" target="_blank">
|
|
|
|
<img class="bottom" :src="gg1.image" alt="">
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@@ -55,8 +55,8 @@ |
|
|
|
</el-carousel-item>
|
|
|
|
</el-carousel>
|
|
|
|
</div>
|
|
|
|
<a :href="gg2.link" v-if="gg2.img" target="_blank">
|
|
|
|
<img class="bottom" :src="gg2.img" alt="">
|
|
|
|
<a :href="gg2.link" v-if="gg2.image" target="_blank">
|
|
|
|
<img class="bottom" :src="gg2.image" alt="">
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@@ -137,16 +137,8 @@ export default { |
|
|
|
async getguanggao () {
|
|
|
|
const { data: { code: ggm1, data: gg1 } } = await guanggao(1)
|
|
|
|
const { data: { code: ggm2, data: gg2 } } = await guanggao(2)
|
|
|
|
if (ggm1 === 'success' && ggm2 === 'success') {
|
|
|
|
this.gg1 = {
|
|
|
|
img: gg1.image,
|
|
|
|
link: gg1.link
|
|
|
|
}
|
|
|
|
this.gg2 = {
|
|
|
|
img: gg2.image,
|
|
|
|
link: gg2.link
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (ggm1 === 200) this.gg1 = gg1
|
|
|
|
if (ggm2 === 200) this.gg2 = gg2
|
|
|
|
},
|
|
|
|
async getLink () {
|
|
|
|
const { data: { code, data: { link: alink } } } = await link()
|
|
|
|