|
@@ -126,7 +126,8 @@ onLoad(options){ |
|
@@ -126,7 +126,8 @@ onLoad(options){ |
126
|
this.type=options.type
|
126
|
this.type=options.type
|
127
|
console.log(options)
|
127
|
console.log(options)
|
128
|
this.getmatemsg()
|
128
|
this.getmatemsg()
|
129
|
- this.getarticletype()
|
129
|
+ this.getarticletype();
|
|
|
130
|
+ this.getAllArticle()
|
130
|
|
131
|
|
131
|
},
|
132
|
},
|
132
|
methods:{
|
133
|
methods:{
|
|
@@ -174,9 +175,12 @@ methods:{ |
|
@@ -174,9 +175,12 @@ methods:{ |
174
|
var params = {}
|
175
|
var params = {}
|
175
|
app.post(url,params,"get").then((res)=>{
|
176
|
app.post(url,params,"get").then((res)=>{
|
176
|
this.articletypelist=res;
|
177
|
this.articletypelist=res;
|
177
|
- this.type_id=res[0].id;
|
|
|
178
|
- console.log('我是typeid',this.type_id)
|
|
|
179
|
- that.getAllArticle()
|
178
|
+ let obj={
|
|
|
179
|
+ id:'',
|
|
|
180
|
+ name:'全部'
|
|
|
181
|
+ }
|
|
|
182
|
+ res.unshift(obj)
|
|
|
183
|
+
|
180
|
console.log(res)
|
184
|
console.log(res)
|
181
|
}).catch((err)=>{
|
185
|
}).catch((err)=>{
|
182
|
console.log(err)
|
186
|
console.log(err)
|
|
@@ -639,6 +643,7 @@ methods:{ |
|
@@ -639,6 +643,7 @@ methods:{ |
639
|
margin-bottom: 42rpx;
|
643
|
margin-bottom: 42rpx;
|
640
|
width: 686rpx;
|
644
|
width: 686rpx;
|
641
|
box-sizing: border-box;
|
645
|
box-sizing: border-box;
|
|
|
646
|
+ height:auto!important;
|
642
|
.nodata{
|
647
|
.nodata{
|
643
|
font-size: 28rpx;
|
648
|
font-size: 28rpx;
|
644
|
text-align: center;
|
649
|
text-align: center;
|