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 @@