|
|
@@ -3,7 +3,8 @@
|
|
|
<div class="delivery-wrap">
|
|
|
<div class="btn-wrap">
|
|
|
<!-- #ifdef H5 -->
|
|
|
- <button class="button-com red" @click="go()">正在打开支付宝...</button>
|
|
|
+ <button class="button-com red" @click="go()" v-if="hasRenew == 1">正在打开支付宝...</button>
|
|
|
+ <view style="margin-top:50upx;font-size:32upx;font-weight:bold;text-align: center;">商家未开通此功能</view>
|
|
|
<!-- #endif -->
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -19,7 +20,8 @@ export default {
|
|
|
data() {
|
|
|
return {
|
|
|
constant: this.$constant,
|
|
|
- payUrl:''
|
|
|
+ payUrl:'',
|
|
|
+ hasRenew:1
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
|
@@ -35,7 +37,9 @@ export default {
|
|
|
|
|
|
},
|
|
|
go(){
|
|
|
- window.location.href = this.payUrl
|
|
|
+ if(this.hasRenew == 1){
|
|
|
+ window.location.href = this.payUrl
|
|
|
+ }
|
|
|
},
|
|
|
payInit() {
|
|
|
let orderSn = this.option.orderSn ? this.option.orderSn:''
|
|
|
@@ -48,8 +52,11 @@ export default {
|
|
|
this.$msg(res.msg)
|
|
|
return false
|
|
|
}
|
|
|
- this.payUrl = res.data.payUrl
|
|
|
- window.location.href = this.payUrl
|
|
|
+ this.hasRenew = res.data.hasRenew?res.data.hasRenew:0
|
|
|
+ if(res.data.hasRenew && res.data.hasRenew == 1){
|
|
|
+ this.payUrl = res.data.payUrl
|
|
|
+ window.location.href = this.payUrl
|
|
|
+ }
|
|
|
})
|
|
|
}
|
|
|
}
|