作者 lihongjuan

1

... ... @@ -142,6 +142,8 @@ export default {
this.getschooldetails()
this.getollege()
this.getarticletype()
this.getAllArticle()
},
methods:{
... ... @@ -191,10 +193,12 @@ export default {
item.issel=''
return;
})
var obj={
id:'',
name:'全部'
}
res.unshift(obj)
this.articletypelist=res;
this.type_id=res[0].id;
this.getAllArticle()
console.log(res)
}).catch((err)=>{
console.log(err)
})
... ...
... ... @@ -126,7 +126,8 @@ onLoad(options){
this.type=options.type
console.log(options)
this.getmatemsg()
this.getarticletype()
this.getarticletype();
this.getAllArticle()
},
methods:{
... ... @@ -174,9 +175,12 @@ methods:{
var params = {}
app.post(url,params,"get").then((res)=>{
this.articletypelist=res;
this.type_id=res[0].id;
console.log('我是typeid',this.type_id)
that.getAllArticle()
let obj={
id:'',
name:'全部'
}
res.unshift(obj)
console.log(res)
}).catch((err)=>{
console.log(err)
... ... @@ -639,6 +643,7 @@ methods:{
margin-bottom: 42rpx;
width: 686rpx;
box-sizing: border-box;
height:auto!important;
.nodata{
font-size: 28rpx;
text-align: center;
... ...