87,907
社区成员
发帖
与我相关
我的任务
分享
export default {
data(){
return{
cyclePic:[],
rootUrl:this.$http.options.root,
header:{headers:{Accept:'application/vnd.api+json',
'Content-type':'application/vnd.api+json',
Authorization:"**********************************"}}
}
},
created(){
this.getCycleList()
},
methods:{
getCycleList(){
this.$http.get('banner?include=field_image',this.header).then(result=>{
console.log(result)
if(result.ok && result.status===200){
this.cyclePic=result.body.included
console.log(this.cyclePic)
}else{
Toast('获取列表失败')
}
})
}