|
@@ -35,7 +35,11 @@ App({
|
|
|
"fclienttype": "MOBILE"
|
|
|
}
|
|
|
}).then(res => {
|
|
|
- if (res.msg != '成功') return this.getBanner();
|
|
|
+ if (res.msg != '成功') {
|
|
|
+ this.globalData.count = this.globalData.count + 1;
|
|
|
+ if (this.globalData.count > 3) this.getBanner();
|
|
|
+ return;
|
|
|
+ }
|
|
|
this.globalData.bannerDataList = res.data;
|
|
|
})
|
|
|
},
|
|
@@ -46,5 +50,6 @@ App({
|
|
|
bannerDataList: [], //轮播图列表
|
|
|
servicehotline: '', //客服手机号
|
|
|
msgFcount: "", //徽标数量
|
|
|
+ count: 0, //banner 请求次数
|
|
|
}
|
|
|
})
|