1012414140@qq.com
6 小时以前 4acf12605ae97ec9b30a4b9706d5acea91070157
src/components/page/IndexXTYH.vue
@@ -36,8 +36,10 @@
              {{this.statisticData.code}}
              <!--<el-input v-model="statisticData.code" readonly></el-input>-->
            </el-form-item>
            <el-form-item v-if="isShowjiaofei" class="weizhang-footer-box" style="display: flex;justify-content: center;margin-top: 4.498vh" label-width="0" v-show="showFlag">
              <el-button class="jiaofei-btn" type="primary" @click="pay()" :loading="payFlag">去缴费</el-button>
            <el-form-item v-if="isShowjiaofei" class="weizhang-footer-box" style="margin-top: 4.498vh" label-width="0" v-show="showFlag">
              <div style="flex: 1; text-align: center;">
                <el-button class="jiaofei-btn" type="primary" @click="pay()" :loading="payFlag">去缴费</el-button>
              </div>
            </el-form-item>
          </el-form>
          <el-form
@@ -50,10 +52,12 @@
                label="无 牌 车 辆 查 询">
              <el-input prefix-icon="el-icon-search" style="margin-top: 20px;border: solid 1px #ccc!important;" v-model="carNo" placeholder="请输入手机号"></el-input>
            </el-form-item>
            <el-form-item class="weizhang-footer-box" style="display: flex;justify-content: center;margin-top: 5.498vh" label-width="0">
              <el-button
                  style="borderColor:'none';background:#121215e0 "
                  class="jiaofei-btn" type="primary" @click="noCarOut()" v-show="showFlag">查询</el-button>
            <el-form-item class="weizhang-footer-box" style="margin-top: 5.498vh" label-width="0">
              <div style="flex: 1; text-align: center;">
                <el-button
                    style="borderColor:'none';background:#121215e0 "
                    class="jiaofei-btn" type="primary" @click="noCarOut()" v-show="showFlag">查询</el-button>
              </div>
            </el-form-item>
          </el-form>
@@ -383,25 +387,27 @@
            } else {
              this.$message.error(res.msg || '支付验证失败,请重试', 3000);
            }
            this.paying = false;
          },
          err => {
            this.payFlag = false;
            this.$message.error('网络异常,请重试', 3000);
            this.paying = false;
          }
      ).finally(() => {
        this.paying = false;
      });
      )
    },
    againPay() {
      console.log('this.paying=', this.paying);
      if (this.paying) return;
      this.paying = true;
      this.againDialogVisible = false;
      this.dataLoading = true;
      this.parkXT(this.outParkId).finally(() => {
        this.dataLoading = false;
        this.paying = false;
      });
      this.parkXT(this.outParkId)
      // .finally(() => {
      //   this.dataLoading = false;
      //   this.paying = false;
      // });
    },
    parkXT(outParkId) {
      this.payNowFlag = true //立即支付loading
@@ -423,6 +429,9 @@
        })
      } catch (err) {
        this.payNowFlag = false;
      } finally {
        this.dataLoading = false;
        this.paying = false;
      }
    },
    noCarOut(){