From 105b307fa4fb922d514d834214c950628b687909 Mon Sep 17 00:00:00 2001 From: "PC-20210316OUOY\\Administrator" <812952667@qq.com> Date: Fri, 5 Nov 2021 17:40:26 +0800 Subject: [PATCH] =?UTF-8?q?1.=E5=AF=B9=E6=8E=A5=E9=93=B6=E8=81=94=E6=94=AF?= =?UTF-8?q?=E4=BB=98=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- high-unionPay/App.vue | 16 +- high-unionPay/Utils/Api.js | 5 + high-unionPay/index.html | 1 - high-unionPay/pages.json | 2 +- high-unionPay/pages/goods/goods.vue | 4 +- high-unionPay/pages/goods/refuel/refuel.vue | 2 +- high-unionPay/pages/order/confirmation.vue | 274 ++++-------------- high-unionPay/pages/pay/success/success.vue | 7 +- high-unionPay/pages/tabBar/user/user.vue | 6 +- .../unionPay-entrance/unionPay-entrance.vue | 2 +- 10 files changed, 87 insertions(+), 232 deletions(-) diff --git a/high-unionPay/App.vue b/high-unionPay/App.vue index b9d974e..0ded058 100644 --- a/high-unionPay/App.vue +++ b/high-unionPay/App.vue @@ -5,15 +5,15 @@ // brestUrl: 'http://192.168.3.4:9302/brest', // imgUrl: 'https://192.168.3.4:9301/filesystem/', //正式 - url: 'https://hsg.dctpay.com/crest', - imgUrl: 'https://hsg.dctpay.com/filesystem/', - brestUrl : 'https://hsg.dctpay.com/brest', - imageWxImg:'https://hsg.dctpay.com/filesystem/wxApplets/', + // url: 'https://hsg.dctpay.com/crest', + // imgUrl: 'https://hsg.dctpay.com/filesystem/', + // brestUrl : 'https://hsg.dctpay.com/brest', + // imageWxImg:'https://hsg.dctpay.com/filesystem/wxApplets/', //测试 - // url: 'https://hsgcs.dctpay.com/crest', - // brestUrl : 'https://hsgcs.dctpay.com/brest', - // imgUrl: 'https://hsgcs.dctpay.com/filesystem/', - // imageWxImg:'https://hsgcs.dctpay.com/filesystem/wxApplets/', + url: 'https://hsgcs.dctpay.com/crest', + brestUrl : 'https://hsgcs.dctpay.com/brest', + imgUrl: 'https://hsgcs.dctpay.com/filesystem/', + imageWxImg:'https://hsgcs.dctpay.com/filesystem/wxApplets/', userInfo: "", brestUserInfo : '', openId: '', diff --git a/high-unionPay/Utils/Api.js b/high-unionPay/Utils/Api.js index 637ee5a..77dc6a9 100644 --- a/high-unionPay/Utils/Api.js +++ b/high-unionPay/Utils/Api.js @@ -170,6 +170,11 @@ export const orderToUNionPay = params => { return POST('POST', `${base}/outRechargeOrder/orderToPay`, params).then(res => res.data); } +//银联提交订单 +export const unionPay = params => { + return POST('POST', `${base}/order/unionPay`, params).then(res => res.data); +} + /** diff --git a/high-unionPay/index.html b/high-unionPay/index.html index 8eabc32..a793dae 100644 --- a/high-unionPay/index.html +++ b/high-unionPay/index.html @@ -8,7 +8,6 @@ <%= htmlWebpackPlugin.options.title %> diff --git a/high-unionPay/pages/pay/success/success.vue b/high-unionPay/pages/pay/success/success.vue index 789efe4..3daab90 100644 --- a/high-unionPay/pages/pay/success/success.vue +++ b/high-unionPay/pages/pay/success/success.vue @@ -228,9 +228,12 @@ }) }, toUser() { - uni.switchTab({ + // uni.switchTab({ + // url: '/pages/tabBar/user/user' + // }); + uni.reLaunch({ url: '/pages/tabBar/user/user' - }); + }) }, scan() { uni.scanCode({ diff --git a/high-unionPay/pages/tabBar/user/user.vue b/high-unionPay/pages/tabBar/user/user.vue index 7822422..7e4f74c 100644 --- a/high-unionPay/pages/tabBar/user/user.vue +++ b/high-unionPay/pages/tabBar/user/user.vue @@ -243,9 +243,9 @@ }); }, onShow() { - // if (app.globalData.userInfo) { - // this.findUser(); - // } + if (app.globalData.userInfo) { + this.findUser(); + } if (!app.globalData.userInfo.isSetPayPwd) { this.czList = [ diff --git a/high-unionPay/pages/unionPay/unionPay-entrance/unionPay-entrance.vue b/high-unionPay/pages/unionPay/unionPay-entrance/unionPay-entrance.vue index 8553a63..27a8724 100644 --- a/high-unionPay/pages/unionPay/unionPay-entrance/unionPay-entrance.vue +++ b/high-unionPay/pages/unionPay/unionPay-entrance/unionPay-entrance.vue @@ -23,7 +23,7 @@ jumprecharge(item) { if (item == 1) { uni.navigateTo({ - url: '../../goods/goods-list/goods-list?id=1' + url: '../../goods/goods-list/goods-list?id=2' }) return; }