|
|
|
@ -22,6 +22,9 @@ |
|
|
|
<picker :data='addressData' :columns=3 v-model='addressValue' @on-change='change' ref="picker1"></picker> |
|
|
|
</div> |
|
|
|
</popup> |
|
|
|
<div class="Loading-box"> |
|
|
|
<loading v-model="showLoading" text="loading"></loading> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
|
|
|
|
@ -43,7 +46,8 @@ |
|
|
|
addressData: [], |
|
|
|
addressValue: [], |
|
|
|
no: "", |
|
|
|
sourceType : "" |
|
|
|
sourceType : "", |
|
|
|
showLoading: false, |
|
|
|
}; |
|
|
|
}, |
|
|
|
components: { |
|
|
|
@ -101,18 +105,15 @@ |
|
|
|
}) |
|
|
|
}, |
|
|
|
createPoster (){ |
|
|
|
//console.log(111,this.authorizeSrc) |
|
|
|
if ( !this.isAuthorize ){ |
|
|
|
location.href = this.authorizeSrc |
|
|
|
return; |
|
|
|
} |
|
|
|
this.$vux.loading.show({ |
|
|
|
text: 'Loading' |
|
|
|
}) |
|
|
|
this.showLoading = true |
|
|
|
var merchantNo = this.merchantNo |
|
|
|
posterApi.createPoster(merchantNo).then(res => { |
|
|
|
setTimeout(()=>{ |
|
|
|
this.$vux.loading.hide() |
|
|
|
this.showLoading = false |
|
|
|
},500) |
|
|
|
if ( res.code == 0 ){ |
|
|
|
this.imgSrc = res.response |
|
|
|
@ -121,13 +122,12 @@ |
|
|
|
if ( res.code == 666 ){ |
|
|
|
setTimeout(function(){ |
|
|
|
location.href = '/mall/web/user/login' |
|
|
|
},3000) |
|
|
|
},2000) |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
getPoster2 (){ |
|
|
|
|
|
|
|
getPoster2 (){ |
|
|
|
posterApi.getPoster2(this.no).then(res => { |
|
|
|
if ( res.code == 0 ){ |
|
|
|
this.authorizeSrc = res.data.oauthUrl || '' |
|
|
|
@ -151,23 +151,21 @@ |
|
|
|
if ( res.code == 667 ){ |
|
|
|
setTimeout(function(){ |
|
|
|
location.href = '/mall/web/user/login' |
|
|
|
}) |
|
|
|
},2000) |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
createPoster2 (){ |
|
|
|
createPoster2 (){ |
|
|
|
if ( !this.isAuthorize ){ |
|
|
|
location.href = this.authorizeSrc |
|
|
|
return; |
|
|
|
} |
|
|
|
var no = this.no |
|
|
|
this.$vux.loading.show({ |
|
|
|
text: 'Loading' |
|
|
|
}) |
|
|
|
this.showLoading = true |
|
|
|
posterApi.createPoster2({"couponNo":no}).then(res => { |
|
|
|
setTimeout(()=>{ |
|
|
|
this.$vux.loading.hide() |
|
|
|
this.showLoading = false |
|
|
|
},500) |
|
|
|
if ( res.code == 0 ){ |
|
|
|
this.imgSrc = res.response |
|
|
|
@ -175,7 +173,7 @@ |
|
|
|
this.$vux.toast.text(res.msg,"middle"); |
|
|
|
if ( res.code == 666 ){ |
|
|
|
setTimeout(function(){ |
|
|
|
location.href = '/mall/web/user/login' |
|
|
|
// location.href = '/mall/web/user/login' |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
@ -313,11 +311,14 @@ |
|
|
|
position: fixed; |
|
|
|
z-index: 100; |
|
|
|
} |
|
|
|
.weui-toast { |
|
|
|
max-width: 3.5rem !important; |
|
|
|
max-height: 3.5rem !important; |
|
|
|
min-height: 3.5em !important; |
|
|
|
.Loading-box .weui-toast { |
|
|
|
width: 100%; |
|
|
|
min-height: 100% !important; |
|
|
|
overflow: hidden; |
|
|
|
top: 0; |
|
|
|
} |
|
|
|
.Loading-box .weui-icon_toast.weui-loading { |
|
|
|
margin-top: 75%; |
|
|
|
} |
|
|
|
|
|
|
|
</style> |