diff --git a/components/vc-ads/vc-ads.vue b/components/vc-ads/vc-ads.vue index 845caf6..4eead26 100644 --- a/components/vc-ads/vc-ads.vue +++ b/components/vc-ads/vc-ads.vue @@ -32,7 +32,14 @@ ad: [], adHeight: { height: this.height + "upx" - } + }, + banner: [{ + url: this.imgUrl+'/h5/images/serve/banner1.jpg' + }, + { + url: this.imgUrl+'/h5/images/serve/banner2.jpg' + } + ], }; }, mounted() { @@ -51,6 +58,9 @@ loadAdverts(_objData) .then(function(_aPhotos) { _that.ad = _aPhotos; + if(!_aPhotos || _aPhotos.length <1){ + _that.ad = _that.banner; + } }); } }