From eeb80d4de4b44b2151f57f9c8da804026166fd1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=96=E5=AE=B6=E5=8D=8E?= Date: Fri, 21 Sep 2018 03:09:35 +0800 Subject: [PATCH] no message --- src/view/poster.vue | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/view/poster.vue b/src/view/poster.vue index 72f1a6a..009c67f 100644 --- a/src/view/poster.vue +++ b/src/view/poster.vue @@ -86,7 +86,8 @@ if ( res.data.imageUrl ){ this.imgUrl = res.data.imageUrl - this.imgSrc = res.data.imageUrl + "?" + Date.now(); + this.imgSrc = res.data.imageUrl + "?" + Date.now(); + this.shareWenXin() } else { if ( res.data.hasOAuth == 0 ){ location.href = res.data.oauthUrl @@ -119,7 +120,8 @@ },500) if ( res.code == 0 ){ this.imgUrl = res.response - this.imgSrc = res.response + "?" + Date.now(); + this.imgSrc = res.response + "?" + Date.now(); + this.shareWenXin() } else { this.$vux.toast.text(res.msg,"middle"); if ( res.code == 666 ){ @@ -140,7 +142,8 @@ if ( res.data.imageUrl ){ this.imgUrl = res.data.imageUrl - this.imgSrc = res.data.imageUrl + "?" + Date.now(); + this.imgSrc = res.data.imageUrl + "?" + Date.now(); + this.shareWenXin() } else { if ( res.data.hasOAuth == 0 ){ location.href = res.data.oauthUrl @@ -173,7 +176,8 @@ },500) if ( res.code == 0 ){ this.imgUrl = res.response - this.imgSrc = res.response + "?" + Date.now(); + this.imgSrc = res.response + "?" + Date.now(); + this.shareWenXin() } else { this.$vux.toast.text(res.msg,"middle"); if ( res.code == 666 ){ @@ -245,8 +249,7 @@ this.createPoster2() } else { this.createPoster() - } - this.shareWenXin() + } }, //分享微信 shareWenXin (){