diff --git a/src/views/parkPay/parkRecord.vue b/src/views/parkPay/parkRecord.vue index 92c3dde..f9ad91e 100644 --- a/src/views/parkPay/parkRecord.vue +++ b/src/views/parkPay/parkRecord.vue @@ -33,7 +33,7 @@

停车时长:{{ $utils.dateFormat(i.parkDuration)}}

¥{{(i.unPayFee/100).toFixed(2)}}

-

申请离场

+

申请离场

出场缴费

@@ -258,6 +258,45 @@ export default { }, toPayCurrent(i, num) { // 缴纳本次在停费用 var salt = this.$utils.myCommonSalt(32); + var jsondata = { + app_id: this.$utils.myVarAppid, + deviceInfo: this.$utils.myDeviceInfo, + salt: salt, + sign_type: "md5", + payType: this.$utils.clientBrowsePayType(), + appId: this.$utils.myVxAppId, + orderId: i.orderId, + terminalSource: '7', + parkCode: i.parkCode, + carNumber: this.carNumber, + } + jsondata.sign = this.$utils.signObject(jsondata) + parkingQuery(jsondata).then(result => { + console.log(result) + let res = result.data + let _dis = res.discountFee + let discountFee = _dis.slice(1, _dis.length - 1) + + this.$router.push( + { + path: 'orderPay', + query: { + carColor: this.carColor,// 车牌颜色 + arrearageTotalFee: res.orderTotalFee,// 应收 + arrearageDiscFee: discountFee * 100,// 优惠 + arrearageActFee: res.orderFee,// 实收 + carNumber: this.carNumber, // 车牌 + paySrcType: 101, //支付的类型 101 是本次 103是历史欠费 + ordeID: i.orderId, //支付的订单号 + appOrderTimeout: res.appOrderTimeout, // 超时描述 + } + } + ) + }) + + }, + toPayCurrent1(i, num) { // 缴纳本次在停费用 + var salt = this.$utils.myCommonSalt(32); var params = { app_id: this.$utils.myVarAppid, deviceInfo: this.$utils.myDeviceInfo, @@ -271,7 +310,7 @@ export default { appApplyParkOut(params).then(response => { console.log(response) - if (response.code == '5005') { + if (response.code == '0') { var salt = this.$utils.myCommonSalt(32); var jsondata = { app_id: this.$utils.myVarAppid, @@ -311,7 +350,7 @@ export default { } else { //$('.dialog-out').show() - this.$msgbox('提示', '停车15分钟内无需缴费,申请成功。') + this.$msgbox('提示', response.message) } })