Browse Source

尝试修复微信领券白屏问题

feature/3.0.0-推广员
nesxy 7 years ago
parent
commit
a9e343b266
1 changed files with 11 additions and 3 deletions
  1. 14
      src/view/home.vue

14
src/view/home.vue

@ -29,8 +29,11 @@
</div> </div>
</div> </div>
<div class="coupon" v-if="promotionImgList.imgUrl"> <div class="coupon" v-if="promotionImgList.imgUrl">
<a v-if="promotionImgList.linkUrl != '' " :href="promotionImgList.linkUrl"><img :src="promotionImgList.imgUrl" /></a>
<a v-else href="javascript:void(0)"><img :src="promotionImgList.imgUrl" /></a>
<a v-on:click="openCouponUrl(promotionImgList.linkUrl)">
<img :src="promotionImgList.imgUrl" />
</a>
<!-- <a v-if="promotionImgList.linkUrl != '' " :href="promotionImgList.linkUrl"><img :src="promotionImgList.imgUrl" /></a>-->
<!-- <a v-else href="javascript:void(0)"><img :src="promotionImgList.imgUrl" /></a>-->
</div> </div>
<!-- TODO: 三种样式 --> <!-- TODO: 三种样式 -->
<!-- one --> <!-- one -->
@ -369,6 +372,11 @@ export default {
alertHide() { alertHide() {
this.state = 1; this.state = 1;
this.show = true; this.show = true;
},
openCouponUrl(url){
if(url){
window.replace = url;
}
} }
}, },
mounted() { mounted() {
@ -722,4 +730,4 @@ export default {
height: 1.74rem; height: 1.74rem;
} }
} }
</style>
</style>
Loading…
Cancel
Save