...
|
...
|
@@ -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;
|
...
|
...
|
|