分类接口对接
This commit is contained in:
@@ -105,6 +105,7 @@
|
||||
uni.stopPullDownRefresh()
|
||||
},
|
||||
onLoad() {
|
||||
this.getImgUrl()
|
||||
this.$apiServe.getCategories().then(res => {
|
||||
console.log(res)
|
||||
}).finally(_ => {})
|
||||
@@ -151,6 +152,16 @@
|
||||
uni.navigateTo({
|
||||
url: '../../packageSearch/goods-category-search/category-index'
|
||||
})
|
||||
},
|
||||
getImgUrl() {
|
||||
this.$apiServe.getImgUrl().then(res => {
|
||||
console.log(res)
|
||||
try {
|
||||
uni.setStorageSync('img_url', res.data.data.img_url);
|
||||
} catch (e) {
|
||||
// error
|
||||
}
|
||||
}).finally(_ => {})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user