@@ -101,10 +101,12 @@ export default {
this.Login();
});
this.getActive();
- if (this.userInfo.authStatus !== 'NOT_AUTH') {
- setTimeout(() => {
- this.add();
- }, 1000);
+ if (this.isLogin) {
+ if (this.userInfo.authStatus !== 'NOT_AUTH') {
+ setTimeout(() => {
+ this.add();
+ }, 1000);
+ }
}
},
methods: {
@@ -179,16 +179,15 @@ export default {
{
query: {
del: false,
- type: null
+ type: 'PC_TITLE'
{ body: 'json' }
)
.then(res => {
- // console.log(res);
- this.banners = res.content.filter(item => {
- return item.name === '首页大图';
- });
+ console.log(res);
+ this.banners = res.content;
+ console.log(this.banners[0].pic);