|
|
|
@ -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() |
|
|
|
} |
|
|
|
}; |
|
|
|
</script> |
|
|
|
@ -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; |
|
|
|
} |
|
|
|
|
|
|
|
</style> |