diff --git a/Utils/Api.js b/Utils/Api.js index 5acc0da..8443901 100644 --- a/Utils/Api.js +++ b/Utils/Api.js @@ -325,4 +325,7 @@ export const getListOutRechargePrice = params => { //提交订单 export const orderToUNionPay = params => { return POST('POST', `${base}/outRechargeOrder/orderToPay`, params).then(res => res.data); -} \ No newline at end of file +} +export const hltUnionCardPayUnion = params => { + return POST('POST', `${base}/outRechargeOrder/hltUnionCardPay`, params).then(res => res.data); +} diff --git a/pages/tabBar/user/user.vue b/pages/tabBar/user/user.vue index 55e0a68..6d1d977 100644 --- a/pages/tabBar/user/user.vue +++ b/pages/tabBar/user/user.vue @@ -74,6 +74,7 @@ + 推广中心 @@ -201,7 +202,7 @@ text: '我的推广', img: 'user/renw.png' } - + // , // { // url: '/pages/user/Charge/Charge', @@ -243,7 +244,7 @@ }, onShow() { // if (app.globalData.userInfo) { - this.findUser(); + this.findUser(); // } if (!app.globalData.userInfo.isSetPayPwd) { diff --git a/subPages/unionComfirmation/unionComfirmation.vue b/subPages/unionComfirmation/unionComfirmation.vue index 93eb04b..e233419 100644 --- a/subPages/unionComfirmation/unionComfirmation.vue +++ b/subPages/unionComfirmation/unionComfirmation.vue @@ -64,7 +64,7 @@ - 实付:¥{{orderPrice}} + 实付:¥{{orderPrice}} {{orderPrice*100}} @@ -93,7 +93,8 @@ findUser, orderToGoldPay, orderToGoldPayunion, - hltUnionCardPay + hltUnionCardPayUnion, + getHuiLianTongCardBalance } from '../../Utils/Api.js'; import ssPaymentPassword from '../../components/sanshui-payment-password'; let app = getApp(); @@ -163,7 +164,7 @@ if (res.return_code == '000000') { app.globalData.userInfo = res.return_data; this.user = res.return_data; - // this.getHuiLianTongCardBalance(); + this.getHuiLianTongCardBalance(); uni.setStorage({ key: "user", data: res.return_data @@ -406,15 +407,15 @@ "cardNo": this.user.hltCardNo.cardNo, "password": this.PaymentPassword } - hltUnionCardPay(params).then(res => { + hltUnionCardPayUnion(params).then(res => { uni.hideLoading(); if (res.return_code == '000000') { uni.showToast({ title: '支付成功' }) - uni.reLaunch({ - url: '../pay/success/success?id=' + this.couponId - }); + uni.switchTab({ + url:'../../pages/tabBar/user/user' + }) return; } if (res.return_code == '102130') {