From 07fee088810805991ecf5c7cef7a157d78b29397 Mon Sep 17 00:00:00 2001 From: chenbiao Date: Fri, 20 May 2022 14:34:36 +0800 Subject: [PATCH] add 停车缴费支付订单页面 接口联调 --- common/common.js | 2 +- common/requestServer.js | 4 ++-- pages.json | 9 +++++++++ pages/parkPay/parkPay.vue | 84 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++---------------------------- pages/wxpaySuccess/wxpaySuccess.vue | 145 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 213 insertions(+), 31 deletions(-) create mode 100644 pages/wxpaySuccess/wxpaySuccess.vue diff --git a/common/common.js b/common/common.js index 8671229..856425b 100644 --- a/common/common.js +++ b/common/common.js @@ -65,7 +65,7 @@ const publicUnifiedOrder = serverUrl + "/business/h5/pay/weixinpay/publicUnified // 钱包-根据订单ID获取购买优惠券信息 const couponInfo = serverUrl + "/business/h5/wallet/detail/couponInfo"; -// const couponInfo = "http://127.0.0.1:8075/business/h5/wallet/detail/couponInfo"; +// 根据车牌号查询车牌号订单支付详情 const queryParkingRecordByCarNumbers ="https://pay.jycrtc.com/queryParkOrder/queryParkingRecordPageByCarNumbersForBusiness"; diff --git a/common/requestServer.js b/common/requestServer.js index da33ece..1e7e4d6 100644 --- a/common/requestServer.js +++ b/common/requestServer.js @@ -52,7 +52,7 @@ export const myRequest = (options) => { uni.hideLoading(); uni.showToast({ title: result.message, - icon: 'none', + icon: 'error', duration: 2000 }); } @@ -65,7 +65,7 @@ export const myRequest = (options) => { console.log("请求失败", error); uni.showToast({ title: error.message, - icon: 'none', + icon: 'error', duration: 2000 }) // 失败数据 diff --git a/pages.json b/pages.json index 8748915..106c6b6 100644 --- a/pages.json +++ b/pages.json @@ -278,6 +278,15 @@ } + ,{ + "path" : "pages/wxpaySuccess/wxpaySuccess", + "style" : + { + "navigationBarTitleText": "", + "enablePullDownRefresh": false + } + + } ], "globalStyle": { "navigationBarTextStyle": "black", diff --git a/pages/parkPay/parkPay.vue b/pages/parkPay/parkPay.vue index 6cff815..e9df56a 100644 --- a/pages/parkPay/parkPay.vue +++ b/pages/parkPay/parkPay.vue @@ -1,9 +1,9 @@