|
|
@@ -16,8 +16,12 @@
|
|
|
</block>
|
|
|
<view>
|
|
|
<view style="text-align:center;margin:10upx auto 10upx auto;">
|
|
|
- <view class="balance" style="margin-bottom:25upx;">扫客户二维码收款</view>
|
|
|
- <view style="margin-bottom:20upx;">
|
|
|
+ <view class="balance" style="margin-bottom:25upx;" v-if="goPay == 0">扫客户二维码收款</view>
|
|
|
+ <view class="balance" style="margin-bottom:25upx;" v-if="goPay == 1">请求中</view>
|
|
|
+ <view style="text-algin:center;">
|
|
|
+ <image style="width:40upx;height:40upx;margin:0 auto;" :src="`${constant.imgUrl}/icon/loading.gif`" v-if="goPay == 1" mode="scaleToFill" />
|
|
|
+ </view>
|
|
|
+ <view style="margin-top:20upx;">
|
|
|
<button style="width:25vh;" @click="beginScan()" class="admin-button-com big blue">点击扫码</button>
|
|
|
</view>
|
|
|
<view style="margin-top:20upx;">
|
|
|
@@ -59,7 +63,8 @@ export default {
|
|
|
INT:null,
|
|
|
orderInfo:{orderType:0},
|
|
|
expire:0,
|
|
|
- T:null
|
|
|
+ T:null,
|
|
|
+ goPay:0
|
|
|
};
|
|
|
},
|
|
|
mounted() {
|
|
|
@@ -89,6 +94,7 @@ export default {
|
|
|
//付款
|
|
|
requestCodePay(authCode){
|
|
|
let that = this
|
|
|
+ this.goPay = 1
|
|
|
codePay({id:this.orderId,authCode:authCode}).then(res=>{
|
|
|
if(res.code == 1){
|
|
|
if(res.data.returnStatus == 'SUCCESS'){
|