diff --git a/dist.zip b/dist.zip
index da86d63..cb4cb98 100644
--- a/dist.zip
+++ b/dist.zip
diff --git a/src/components/parkRecord.vue b/src/components/parkRecord.vue
index 669a6d5..4f1c7da 100644
--- a/src/components/parkRecord.vue
+++ b/src/components/parkRecord.vue
@@ -34,10 +34,12 @@
停车时长:{{ $utils.dateFormat(i.parkDuration)}}
¥{{(i.unPayFee/100).toFixed(2)}}
-
申请离场
-
申请离场
-
申请离场
-
出场缴费
+
+
+
+
+
+
{{i.parkDuration>i.orderFreeDuration?"结束停车":"申请离场"}}
@@ -279,6 +281,7 @@ export default {
}
},
toPayCurrent(i, num) { // 缴纳本次在停费用
+ console.log(i)
var salt = this.$utils.myCommonSalt(32);
var params = {
app_id: this.$utils.myVarAppid,
@@ -292,8 +295,9 @@ export default {
params.sign = this.$utils.signObject(params)
appApplyParkOut(params).then(response => {
console.log(response)
-
- if (response.code == '5005') {
+ if(response.code == '5000'){
+ this.$msgbox('提示', '您已成功申请离场!')
+ }else if (response.code == '5005') {
var salt = this.$utils.myCommonSalt(32);
var jsondata = {
app_id: this.$utils.myVarAppid,
@@ -332,8 +336,8 @@ export default {
})
} else {
- //$('.dialog-out').show()
- this.$msgbox('提示', '您已成功申请离场!')
+ this.$router.go(0);
+ this.$msgbox('提示', '您申请离场失败!')
}
})
diff --git a/src/utils/utils.js b/src/utils/utils.js
index e4917dd..ac2dbd7 100644
--- a/src/utils/utils.js
+++ b/src/utils/utils.js
@@ -15,6 +15,7 @@ export default {
dateFormat: function (msd) { // 时间转换
+ console.log(msd)
var time = msd
if (null != time && "" != time) {