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; }