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()