1.新增分期支付

master
杨杰 3 years ago
parent f17c857574
commit fdbeef899e
  1. 16
      high-unionPay/App.vue
  2. 5
      high-unionPay/Utils/Api.js
  3. 18
      high-unionPay/pages.json
  4. 24
      high-unionPay/pages/order/confirmation.vue
  5. 15
      high-unionPay/pages/pay/payment/payment.vue
  6. 55
      high-unionPay/pages/tabBar/order/stagesUrl/stagesUrl.vue

@ -5,15 +5,15 @@
// brestUrl: 'http://192.168.3.4:9302/brest', // brestUrl: 'http://192.168.3.4:9302/brest',
// imgUrl: 'https://192.168.3.4:9301/filesystem/', // imgUrl: 'https://192.168.3.4:9301/filesystem/',
// //
// url: 'https://hsg.dctpay.com/crest', url: 'https://hsg.dctpay.com/crest',
// imgUrl: 'https://hsg.dctpay.com/filesystem/', imgUrl: 'https://hsg.dctpay.com/filesystem/',
// brestUrl : 'https://hsg.dctpay.com/brest', brestUrl : 'https://hsg.dctpay.com/brest',
// imageWxImg:'https://hsg.dctpay.com/filesystem/wxApplets/', imageWxImg:'https://hsg.dctpay.com/filesystem/wxApplets/',
// //
url: 'https://hsgcs.dctpay.com/crest', // url: 'https://hsgcs.dctpay.com/crest',
brestUrl : 'https://hsgcs.dctpay.com/brest', // brestUrl : 'https://hsgcs.dctpay.com/brest',
imgUrl: 'https://hsgcs.dctpay.com/filesystem/', // imgUrl: 'https://hsgcs.dctpay.com/filesystem/',
imageWxImg:'https://hsgcs.dctpay.com/filesystem/wxApplets/', // imageWxImg:'https://hsgcs.dctpay.com/filesystem/wxApplets/',
userInfo: "", userInfo: "",
brestUserInfo : '', brestUserInfo : '',
openId: '', openId: '',

@ -205,6 +205,11 @@ export const orderToUnionPayphone = params => {
export const paygetOrderById = params => { export const paygetOrderById = params => {
return POST('GET', `${base}/outRechargeOrder/getOrderById`, params).then(res => res.data); return POST('GET', `${base}/outRechargeOrder/getOrderById`, params).then(res => res.data);
} }
//银联分期支付
export const unionStagingPay = params => {
return POST('POST', `${base}/order/unionStagingPay`, params).then(res => res.data);
}
//获取设置用户参数 //获取设置用户参数
export const getCacheParam = params => { export const getCacheParam = params => {
return POST('GET', `${base}/highUser/getCacheParam`, params).then(res => res.data); return POST('GET', `${base}/highUser/getCacheParam`, params).then(res => res.data);

@ -518,7 +518,23 @@
} }
} }
], ,{
"path" : "pages/tabBar/order/stagesUrl/stagesUrl",
"style" :
{
"navigationBarTextStyle": "white",
"navigationBarTitleText": "",
"navigationBarBackgroundColor": "#0083f5",
"backgroundColorTop": "#0083f5",
"onReachBottomDistance": 50,
"app-plus": {
"titleNView": false, //
"softinputNavBar": "none"
}
}
}
],
"subpackages": [{ "subpackages": [{
"root": "subPages", "root": "subPages",
"pages": [{ "pages": [{

@ -114,6 +114,18 @@
<radio :checked="paytype=='unionPay'" color="#0083f5" /> <radio :checked="paytype=='unionPay'" color="#0083f5" />
</view> </view>
</view> </view>
<view class="width94 line1 mart5 marb5" v-if="couponList.displayArea == 4"></view>
<view class="height50 width100 backcorfff" @tap="paytype='unionPaystags'"
v-if="couponList.displayArea == 4">
<view class="width50 flleft fcor333 fontwig6 font16" style="padding-left: 4%;">
银联分期
</view>
<view class="width40 flright fotrt paddtright10 font15 fontwig6 fcor666 alijun"
style="align-items: center;">
<radio :checked="paytype=='unionPaystags'" color="#0083f5" />
</view>
</view>
</view> </view>
<!-- <view class="width94 comorder mart10"> <!-- <view class="width94 comorder mart10">
@ -179,7 +191,7 @@
orderToGoldPay, orderToGoldPay,
findUser, findUser,
unionPay, unionPay,
hltUnionCardPay, hltUnionCardPay
} from '../../Utils/Api.js'; } from '../../Utils/Api.js';
import wybPopup from '../../components/wyb-popup/wyb-popup.vue'; import wybPopup from '../../components/wyb-popup/wyb-popup.vue';
import ssPaymentPassword from '../../components/sanshui-payment-password' import ssPaymentPassword from '../../components/sanshui-payment-password'
@ -216,7 +228,7 @@
storeId: '', storeId: '',
isDiscont: false, isDiscont: false,
coupondiscountid: '', coupondiscountid: '',
typeId:'' typeId: ''
}; };
}, },
@ -456,7 +468,12 @@
} }
that.$refs.paymentPassword.modalFun('show'); that.$refs.paymentPassword.modalFun('show');
} else if (that.paytype == 'unionPay') { } else if (that.paytype == 'unionPay') {
this.unionPay(); that.unionPay();
} else if (that.paytype == 'unionPaystags') {
//
uni.redirectTo({
url: '../tabBar/order/stagesUrl/stagesUrl?orderid=' + that.orderId
})
} else { } else {
uni.showToast({ uni.showToast({
title: '请选择支付方式', title: '请选择支付方式',
@ -465,6 +482,7 @@
}) })
} }
}, },
// //
unionPay() { unionPay() {
let goods = { let goods = {

@ -41,17 +41,18 @@
<radio :checked="paytype=='gonghuika'" color="#0083f5" /> <radio :checked="paytype=='gonghuika'" color="#0083f5" />
</view> </view>
</view> </view>
<!-- <view class="row" @tap="paytype='wxpay'" v-if="pryType == 1 || pryType==3 "> <view class="width100 line1 mart5 marb5"></view>
<view class="row" @tap="paytype='unionPaystags'">
<view class="left"> <view class="left">
<image :src="imagewxUrl+imgadres"></image> <image mode="widthFix" style="border-radius: 50%;" src="../../../static/img/unionpay.png">
</view> </view>
<view class="center"> <view class="center">
微信支付 银联分期
</view> </view>
<view class="right"> <view class="right">
<radio :checked="paytype=='wxpay'" color="#0083f5" /> <radio :checked="paytype=='unionPaystags'" color="#0083f5" />
</view> </view>
</view> --> </view>
</view> </view>
</view> </view>
</view> </view>
@ -129,6 +130,10 @@
that.$refs.paymentPassword.modalFun('show'); that.$refs.paymentPassword.modalFun('show');
} else if (that.paytype == 'gonghuika') { } else if (that.paytype == 'gonghuika') {
that.unionPay(); that.unionPay();
} else if (that.paytype == 'unionPaystags') {
uni.navigateTo({
url: '../../tabBar/order/stagesUrl/stagesUrl?orderid=' + that.orderNo
})
} else { } else {
uni.showToast({ uni.showToast({
title: '请选择支付方式', title: '请选择支付方式',

@ -0,0 +1,55 @@
<template>
<view>
<web-view :src="url"></web-view>
</view>
</template>
<script>
import {
unionStagingPay
} from '../../../../Utils/Api.js';
export default {
data() {
return {
orderId: '', //
url: '' //访
}
},
onLoad(options) {
this.orderId = options.orderid;
this.unionStagingPay();
},
methods: {
unionStagingPay() {
uni.showLoading({
title: '加载中...'
})
let datas = {
"orderId": this.orderId
}
unionStagingPay(datas).then(res => {
uni.hideLoading();
if (res.return_code == '000000' && res.return_data.bizData
.redirectUrl) {
this.url = res.return_data.bizData.redirectUrl;
} else {
uni.showToast({
title: res.return_msg,
icon: 'none',
duration: 2000,
success() {
setTimeout(() => {
uni.navigateBack({})
}, 2000);
}
});
}
})
},
}
}
</script>
<style>
</style>
Loading…
Cancel
Save