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. 28
      high-unionPay/pages/order/confirmation.vue
  5. 17
      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',
// 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: '',

@ -205,6 +205,11 @@ export const orderToUnionPayphone = params => {
export const paygetOrderById = params => {
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 => {
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": [{
"root": "subPages",
"pages": [{

@ -114,6 +114,18 @@
<radio :checked="paytype=='unionPay'" color="#0083f5" />
</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 class="width94 comorder mart10">
@ -179,7 +191,7 @@
orderToGoldPay,
findUser,
unionPay,
hltUnionCardPay,
hltUnionCardPay
} from '../../Utils/Api.js';
import wybPopup from '../../components/wyb-popup/wyb-popup.vue';
import ssPaymentPassword from '../../components/sanshui-payment-password'
@ -215,13 +227,13 @@
tongCardPrice: 0,
storeId: '',
isDiscont: false,
coupondiscountid: '',
typeId:''
coupondiscountid: '',
typeId: ''
};
},
onLoad(option) {
this.couponId = option.id;
this.couponId = option.id;
this.typeId = option.typeid;
this.getCouponById();
},
@ -456,7 +468,12 @@
}
that.$refs.paymentPassword.modalFun('show');
} 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 {
uni.showToast({
title: '请选择支付方式',
@ -465,6 +482,7 @@
})
}
},
//
unionPay() {
let goods = {

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