|
|
@@ -41,7 +41,17 @@
|
|
|
<button class="button-com pay-wx" :class="[remainPayTime >0 ? 'green':'default']" :disabled="remainPayTime >0 ? false : true" @click="debtPay" v-if="hasDebtPay === '1'">赊账</button>
|
|
|
|
|
|
<view style="margin-top:30upx;text-align: center;">
|
|
|
- <image :src="aliPayCodeImg" mode="heightFix" style="width:290upx;height:290upx;margin:0 auto;"></image>
|
|
|
+ <block v-if="hasRenew == 0">
|
|
|
+ <view style="width:290upx;height:290upx;margin:0 auto;position: relative;" @click="openAliPay()">
|
|
|
+ <image :src="aliPayCodeImg" mode="heightFix" style="width:290upx;height:290upx;margin:0 auto;"></image>
|
|
|
+ <view style="font-size:32upx;width:290upx;height:140upx;line-height:140upx;background-color: white;z-index: 9999;position: absolute;top:70upx;left:0upx;font-weight: bold;color:#3385ff;">
|
|
|
+ 点此显示完整
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </block>
|
|
|
+ <block v-else>
|
|
|
+ <image :src="aliPayCodeImg" mode="heightFix" style="width:290upx;height:290upx;margin:0 auto;"></image>
|
|
|
+ </block>
|
|
|
<view style="margin-top:10upx;font-size:32upx;">支付宝扫此二维码付款</view>
|
|
|
</view>
|
|
|
<button class="button-com ali-btn" @click="savePayCode" style="margin-top:10upx;">保存二维码</button>
|
|
|
@@ -58,7 +68,6 @@
|
|
|
<button class="button-com pay-wx" :class="[remainPayTime >0 ? 'green':'default']" :disabled="remainPayTime >0 ? false : true" @click="debtPay" v-if="hasDebtPay === '1'">赊账</button>
|
|
|
</div>
|
|
|
<!-- #endif -->
|
|
|
-
|
|
|
</block>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -104,7 +113,8 @@ export default {
|
|
|
info:[],
|
|
|
hasRequestApi:false,
|
|
|
needCheck:0,
|
|
|
- aliPayCodeImg:''
|
|
|
+ aliPayCodeImg:'',
|
|
|
+ hasRenew:0
|
|
|
};
|
|
|
},
|
|
|
onLoad (options) {
|
|
|
@@ -125,6 +135,9 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ openAliPay(){
|
|
|
+ this.$msg('商家还未开通此功能')
|
|
|
+ },
|
|
|
teachPayFn() {
|
|
|
this.pageTo({ url: "/admin/ghs/teachPay"})
|
|
|
},
|
|
|
@@ -165,6 +178,7 @@ export default {
|
|
|
this.getPayType = res.data.getPayType
|
|
|
that.hasDebtPay = res.data.hasDebtPay
|
|
|
that.balance = res.data.balance
|
|
|
+ that.hasRenew = res.data.hasRenew ? res.data.hasRenew : 0
|
|
|
this.info = res.data
|
|
|
that.remainPayTime = res.data.remainPayTime
|
|
|
if(that.remainPayTime > 0){
|