Commit f14f462d47b8c59feb3de4e4159a0e78a6017fdf
1 parent
83e732f8
封闭车场
Showing
1 changed file
with
42 additions
and
3 deletions
src/views/parkPay/parkRecord.vue
... | ... | @@ -33,7 +33,7 @@ |
33 | 33 | <p>停车时长:{{ $utils.dateFormat(i.parkDuration)}}</p> |
34 | 34 | <div class="out-wrap"> |
35 | 35 | <p class="mon-wrap">¥{{(i.unPayFee/100).toFixed(2)}}</p> |
36 | - <p class="out-btn" @click="toPayCurrent(i,parkingData[0].parkDuration)" v-if="parkingData[0].parkDuration<=900">申请离场</p> | |
36 | + <p class="out-btn" @click="toPayCurrent1(i,parkingData[0].parkDuration)" v-if="parkingData[0].parkDuration<=900">申请离场</p> | |
37 | 37 | <p class="out-btn" @click="toPayCurrent(i,parkingData[0].parkDuration)" v-else>出场缴费</p> |
38 | 38 | </div> |
39 | 39 | </div> |
... | ... | @@ -258,6 +258,45 @@ export default { |
258 | 258 | }, |
259 | 259 | toPayCurrent(i, num) { // 缴纳本次在停费用 |
260 | 260 | var salt = this.$utils.myCommonSalt(32); |
261 | + var jsondata = { | |
262 | + app_id: this.$utils.myVarAppid, | |
263 | + deviceInfo: this.$utils.myDeviceInfo, | |
264 | + salt: salt, | |
265 | + sign_type: "md5", | |
266 | + payType: this.$utils.clientBrowsePayType(), | |
267 | + appId: this.$utils.myVxAppId, | |
268 | + orderId: i.orderId, | |
269 | + terminalSource: '7', | |
270 | + parkCode: i.parkCode, | |
271 | + carNumber: this.carNumber, | |
272 | + } | |
273 | + jsondata.sign = this.$utils.signObject(jsondata) | |
274 | + parkingQuery(jsondata).then(result => { | |
275 | + console.log(result) | |
276 | + let res = result.data | |
277 | + let _dis = res.discountFee | |
278 | + let discountFee = _dis.slice(1, _dis.length - 1) | |
279 | + | |
280 | + this.$router.push( | |
281 | + { | |
282 | + path: 'orderPay', | |
283 | + query: { | |
284 | + carColor: this.carColor,// 车牌颜色 | |
285 | + arrearageTotalFee: res.orderTotalFee,// 应收 | |
286 | + arrearageDiscFee: discountFee * 100,// 优惠 | |
287 | + arrearageActFee: res.orderFee,// 实收 | |
288 | + carNumber: this.carNumber, // 车牌 | |
289 | + paySrcType: 101, //支付的类型 101 是本次 103是历史欠费 | |
290 | + ordeID: i.orderId, //支付的订单号 | |
291 | + appOrderTimeout: res.appOrderTimeout, // 超时描述 | |
292 | + } | |
293 | + } | |
294 | + ) | |
295 | + }) | |
296 | + | |
297 | + }, | |
298 | + toPayCurrent1(i, num) { // 缴纳本次在停费用 | |
299 | + var salt = this.$utils.myCommonSalt(32); | |
261 | 300 | var params = { |
262 | 301 | app_id: this.$utils.myVarAppid, |
263 | 302 | deviceInfo: this.$utils.myDeviceInfo, |
... | ... | @@ -271,7 +310,7 @@ export default { |
271 | 310 | appApplyParkOut(params).then(response => { |
272 | 311 | console.log(response) |
273 | 312 | |
274 | - if (response.code == '5005') { | |
313 | + if (response.code == '0') { | |
275 | 314 | var salt = this.$utils.myCommonSalt(32); |
276 | 315 | var jsondata = { |
277 | 316 | app_id: this.$utils.myVarAppid, |
... | ... | @@ -311,7 +350,7 @@ export default { |
311 | 350 | |
312 | 351 | } else { |
313 | 352 | //$('.dialog-out').show() |
314 | - this.$msgbox('提示', '停车15分钟内无需缴费,申请成功。') | |
353 | + this.$msgbox('提示', response.message) | |
315 | 354 | } |
316 | 355 | |
317 | 356 | }) | ... | ... |