From 6503e2b6f7c8852ff776432145ec62ea03b97d9f Mon Sep 17 00:00:00 2001 From: fengchengzhi Date: Fri, 14 Sep 2018 23:11:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/view/poster.vue | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/src/view/poster.vue b/src/view/poster.vue index 993c750..c69c42e 100644 --- a/src/view/poster.vue +++ b/src/view/poster.vue @@ -111,10 +111,10 @@ }) var merchantNo = this.merchantNo posterApi.createPoster(merchantNo).then(res => { + setTimeout(()=>{ + this.$vux.loading.hide() + },500) if ( res.code == 0 ){ - setTimeout(()=>{ - this.$vux.loading.hide() - },500) this.imgSrc = res.response } else { this.$vux.toast.text(res.msg,"middle"); @@ -166,10 +166,10 @@ text: 'Loading' }) posterApi.createPoster2({"couponNo":no}).then(res => { + setTimeout(()=>{ + this.$vux.loading.hide() + },500) if ( res.code == 0 ){ - setTimeout(()=>{ - this.$vux.loading.hide() - },500) this.imgSrc = res.response } else { this.$vux.toast.text(res.msg,"middle"); @@ -234,7 +234,7 @@ } }, mounted() { - this.getNo() + this.getNo() } }; @@ -313,5 +313,11 @@ position: fixed; z-index: 100; } +.weui-toast { + max-width: 3.5rem !important; + max-height: 3.5rem !important; + min-height: 3.5em !important; + overflow: hidden; +} \ No newline at end of file