|
@@ -24,7 +24,6 @@
|
|
|
<block v-else>
|
|
<block v-else>
|
|
|
<app-wrapper-empty title="暂无数据" :is-empty="$util.isEmpty(list.data)" />
|
|
<app-wrapper-empty title="暂无数据" :is-empty="$util.isEmpty(list.data)" />
|
|
|
</block>
|
|
</block>
|
|
|
- <!--内容部分 end -->
|
|
|
|
|
</scroll-view>
|
|
</scroll-view>
|
|
|
</block>
|
|
</block>
|
|
|
<tab-bar :current="1"></tab-bar>
|
|
<tab-bar :current="1"></tab-bar>
|
|
@@ -76,17 +75,17 @@ export default {
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
async sInit () {
|
|
async sInit () {
|
|
|
- this._getClass()
|
|
|
|
|
- .then(res => {
|
|
|
|
|
|
|
+ this._getClass() .then(res => {
|
|
|
this._list()
|
|
this._list()
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
// 分类
|
|
// 分类
|
|
|
_getClass () {
|
|
_getClass () {
|
|
|
return getClass().then(res => {
|
|
return getClass().then(res => {
|
|
|
- if (this.$util.isEmpty(res.data)) return false
|
|
|
|
|
- this.form.categoryId = res.data[0].id
|
|
|
|
|
- this.tabbar = res.data
|
|
|
|
|
|
|
+ if(res.code && res.code == 1){
|
|
|
|
|
+ this.form.categoryId = res.data[0].id
|
|
|
|
|
+ this.tabbar = res.data
|
|
|
|
|
+ }
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
// 列表
|
|
// 列表
|