gdpao
This commit is contained in:
@@ -339,17 +339,19 @@ export default {
|
||||
},
|
||||
// 获取轮播图
|
||||
getswiper() {
|
||||
this.imageList = [
|
||||
{
|
||||
image: '../../static/image/index/swiper.png'
|
||||
},
|
||||
{
|
||||
image: '../../static/image/index/swiper.png'
|
||||
},
|
||||
{
|
||||
image: '../../static/image/index/swiper.png'
|
||||
}
|
||||
];
|
||||
this.$u.post("adv/indexAdv").then(res => {
|
||||
let item = res.data;
|
||||
let arr;
|
||||
arr = item.map(data => {
|
||||
console.log(data);
|
||||
return {
|
||||
image: data.adv_code,
|
||||
adv_id: data.adv_id,
|
||||
adv_link: data.adv_link,
|
||||
}
|
||||
})
|
||||
this.imageList = arr;
|
||||
})
|
||||
},
|
||||
// 打开发布弹窗
|
||||
publish() {
|
||||
|
||||
Reference in New Issue
Block a user