shish 4 лет назад
Родитель
Сommit
9764ce8f7c
1 измененных файлов с 5 добавлено и 6 удалено
  1. 5 6
      hdPad/src/pages/home/components/toPay.vue

+ 5 - 6
hdPad/src/pages/home/components/toPay.vue

@@ -4,7 +4,7 @@
             <view class="collect-code_box">
                 <image class="img" :src="`${constant.imgUrl}/icon/scan/scan.png`" mode="scaleToFill" />
                 <view class="show-code">请出示付款码</view>
-                <view class="btn-default result" @click="checkPay()">查询结果</view>
+                <!--<view class="btn-default result" @click="checkPay()">查询结果</view>-->
                 <view @click="cancelPayFn" class="btn-default result">取消</view>
             </view>
         </view>
@@ -55,9 +55,9 @@ export default {
         checkPay(){
             let that = this
             codePayCheck({id:this.orderId}).then(res=>{
-                uni.hideLoading()
                 if(res.code == 1){
                     if(res.data.returnStatus == 'SUCCESS'){
+                        uni.hideLoading()
                         that.showSuccess = true
                         clearInterval(that.T)
                         setTimeout(function(){
@@ -65,19 +65,18 @@ export default {
                         },1500)
                         return
                     }
-                    uni.showLoading({title: res.msg})
                 }
             })
         },
         //付款
         requestCodePay(authCode){
             let that = this
-            uni.showLoading({title: '正在付款'})
+            uni.showLoading({title: '付款'})
             codePay({id:this.orderId,authCode:authCode}).then(res=>{
-                uni.hideLoading()
                 if(res.code == 1){
                     if(res.data.returnStatus == 'SUCCESS'){
                         that.showSuccess = true
+                        uni.hideLoading()
                         setTimeout(function(){
                             that.payFinish()
                         },1500)
@@ -164,7 +163,7 @@ export default {
         }
         & .show-code{
             font-size: 14upx;
-            margin: 20upx 0 0 0;            
+            margin: 50upx 0 20upx 0;         
         }
         & .btn-default {
             height: 40upx;