From 6d1382e2c58ac6c6fa0993ccac540e213d2fc05b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=94=90=E6=98=8E=E6=98=8E?= <970899069@qq.com> Date: Tue, 11 Jul 2023 17:26:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E7=BB=BC=E5=90=88=E6=94=B6?= =?UTF-8?q?=E9=93=B6=E5=8F=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apis/interfaces/pay.js | 21 ++- pages.json | 68 ++++--- pages/empower/buy.vue | 5 +- pages/empower/order.vue | 15 +- pages/pay/pay.vue | 408 ++++++++++++++++++++++++++++++++++++++++ pages/user/index.vue | 22 +-- 6 files changed, 481 insertions(+), 58 deletions(-) create mode 100644 pages/pay/pay.vue diff --git a/apis/interfaces/pay.js b/apis/interfaces/pay.js index 9cc2a9e..dd2d0eb 100644 --- a/apis/interfaces/pay.js +++ b/apis/interfaces/pay.js @@ -155,24 +155,32 @@ const synDiffDg = (diff_price_id, data) =>{ } // 公共收银台支付 +const payInfo = data => { + return request({ + url : "pay/cashier_desk/info", + method : 'POST', + data + }) +} + const payWechat = data => { return request({ - url: "pay/cashier_desk/wechat", - method: 'POST', + url : "pay/cashier_desk/wechat", + method : 'POST', data }) } const payUms = data => { return request({ - url: "pay/cashier_desk/ums", - method: 'POST', + url : "pay/cashier_desk/ums", + method : 'POST', data }) } const payDg = data => { return request({ - url: "pay/cashier_desk/dg", - method: 'POST', + url : "pay/cashier_desk/dg", + method : 'POST', data }) } @@ -201,6 +209,7 @@ export { synDiffDg, // 综合收银台 + payInfo, payWechat, payUms, payDg diff --git a/pages.json b/pages.json index f56d27a..2c6f996 100644 --- a/pages.json +++ b/pages.json @@ -606,7 +606,8 @@ "style": { "navigationBarTitleText": "增收赋能", "enablePullDownRefresh": false, - "navigationBarBackgroundColor": "#FFF" + "navigationBarBackgroundColor": "#FFF", + "navigationStyle": "custom" } }, { "path": "pages/empower/buy", @@ -615,37 +616,48 @@ "style": { "navigationBarTitleText": "报名", "enablePullDownRefresh": false, - "navigationBarBackgroundColor": "#FFF" + "navigationBarBackgroundColor": "#FFF", + "navigationStyle": "custom" } }, { - "path": "pages/empower/verification", - "aliasPath": "/empower/verification", + "path": "pages/empower/verification", + "aliasPath": "/empower/verification", "name": "EmpowerVerification", "style": { "navigationBarTitleText": "课程核销", - "enablePullDownRefresh": false, - "app-plus": { - "titleNView": { - "buttons": [{ - "text": "首页", - "color": "#da2b56", - "fontSize": "32rpx", - "width": "120rpx" - }] - } - } + "enablePullDownRefresh": false, + "app-plus": { + "titleNView": { + "buttons": [{ + "text": "首页", + "color": "#da2b56", + "fontSize": "32rpx", + "width": "120rpx" + }] + } + } } - },{ - "path" : "pages/empower/order", - "aliasPath": "/empower/order", + }, { + "path": "pages/empower/order", + "aliasPath": "/empower/order", "name": "EmpowerOrder", - "style" :{ - "navigationBarTitleText": "赋能订单", - "enablePullDownRefresh": false, - "navigationBarBackgroundColor": "#FFFFFF" - } - } - ], + "style": { + "navigationBarTitleText": "赋能订单", + "enablePullDownRefresh": false, + "navigationBarBackgroundColor": "#FFFFFF", + "navigationStyle": "custom" + } + }, { + "path": "pages/pay/pay", + "aliasPath": "/pay", + "name": "Pay", + "style": { + "navigationBarTitleText": "收银台", + "enablePullDownRefresh": false, + "navigationStyle": "custom" + } + } + ], "globalStyle": { "navigationBarBackgroundColor": "#ffffff", "navigationBarTextStyle": "black", @@ -669,8 +681,8 @@ "iconPath": "static/tabBar/tabBar_icon_01.png", "selectedIconPath": "static/tabBar/tabBar_show_01.png" }] - }, - "easycom": { - "^u-(.*)": "uview-ui/components/u-$1/u-$1.vue" + }, + "easycom": { + "^u-(.*)": "uview-ui/components/u-$1/u-$1.vue" } } \ No newline at end of file diff --git a/pages/empower/buy.vue b/pages/empower/buy.vue index 2d0785e..2bf737e 100644 --- a/pages/empower/buy.vue +++ b/pages/empower/buy.vue @@ -112,12 +112,11 @@ }).then(res => { let { order_type, order_id } = res; this.$Router.replace({ - name: 'FeePay', + name: 'Pay', params: { orderId : order_id, orderType : order_type, - price : this.allPrice, - payForm : 'entrust', + price : this.allPrice } }) }).catch(err => { diff --git a/pages/empower/order.vue b/pages/empower/order.vue index 2d35f94..ca8b5e4 100644 --- a/pages/empower/order.vue +++ b/pages/empower/order.vue @@ -1,7 +1,7 @@