From 351b4b9dc5993da710257c61ae8a26d260931aac Mon Sep 17 00:00:00 2001 From: fengchengzhi Date: Wed, 19 Sep 2018 22:10:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=B7=E6=8A=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/view/poster.vue | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/src/view/poster.vue b/src/view/poster.vue index b44e3f5..c064f06 100644 --- a/src/view/poster.vue +++ b/src/view/poster.vue @@ -9,7 +9,7 @@ {{defaultCity}}
- + @@ -86,7 +86,7 @@ if ( res.data.imageUrl ){ this.imgSrc = '' - this.imgSrc = res.data.imageUrl + this.imgSrc = res.response + "?" + Date.now(); } else { if ( res.data.hasOAuth == 0 ){ location.href = res.data.oauthUrl @@ -119,7 +119,7 @@ },500) if ( res.code == 0 ){ this.imgSrc = '' - this.imgSrc = res.response + this.imgSrc = res.response + "?" + Date.now(); } else { this.$vux.toast.text(res.msg,"middle"); if ( res.code == 666 ){ @@ -140,7 +140,7 @@ if ( res.data.imageUrl ){ this.imgSrc = '' - this.imgSrc = res.data.imageUrl + this.imgSrc = res.data.imageUrl + "?" + Date.now(); } else { if ( res.data.hasOAuth == 0 ){ location.href = res.data.oauthUrl @@ -161,10 +161,10 @@ }) }, createPoster2 (){ - if ( !this.isAuthorize ){ - location.href = this.authorizeSrc - return; - } +// if ( !this.isAuthorize ){ +// location.href = this.authorizeSrc +// return; +// } var no = this.no this.showLoading = true posterApi.createPoster2({"couponNo":no}).then(res => { @@ -173,7 +173,7 @@ },500) if ( res.code == 0 ){ this.imgSrc = '' - this.imgSrc = res.response + this.imgSrc = res.response + "?" + Date.now(); } else { this.$vux.toast.text(res.msg,"middle"); if ( res.code == 666 ){ @@ -248,11 +248,7 @@ var coupon = this.getParam("no") this.wxShare({"coupon":coupon,"source":1,"url":encodeURIComponent(location.href)}) } - }, - //清除图片缓存 - now(){ - return Date.now(); - } + } }, mounted() { this.getNo()