请求响应错误统一处理

This commit is contained in:
sfmind
2022-04-21 01:46:45 +08:00
parent 713817d0f1
commit e9c0c452c8
7 changed files with 38 additions and 57 deletions

View File

@ -174,22 +174,14 @@ export default {
},
methods: {
loadBannerData() {
getBannerData()
.then(res => {
this.bannerList = res.data
})
.catch(err => {
//console.log(err)
})
getBannerData().then(res => {
this.bannerList = res.data
})
},
loadNoticeData() {
getNoticeData()
.then(res => {
this.noticeList = res.data
})
.catch(err => {
//console.log(err)
})
getNoticeData().then(res => {
this.noticeList = res.data
})
},
handleSearchClick(e) {
uni.$u.route('/pages/search/search')
@ -331,7 +323,6 @@ export default {
}
.prod-list {
.prod-item {
background: #ffffff;
@include flex-space-between;