From 14c61d02f764e46a3c90a81b9c18f496f5843e66 Mon Sep 17 00:00:00 2001
From: Wik-T <812952667@qq.com>
Date: Fri, 27 May 2022 12:01:15 +0800
Subject: [PATCH] =?UTF-8?q?1.=E4=BF=AE=E6=94=B9=E8=AF=9D=E8=B4=B9=E7=A7=AF?=
=?UTF-8?q?=E5=88=86=E6=8A=B5=E6=89=A3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
App.vue | 16 +-
Utils/Api.js | 8 +-
components/cj-slider/cj-slider.vue | 372 ++++++++++++++++++
pages/goods/refuel-confirm/refuel-confirm.vue | 2 +-
subPages/recharge-centre/recharge-centre.vue | 23 +-
.../unionComfirmation/unionComfirmation.vue | 371 +++++++++++------
6 files changed, 643 insertions(+), 149 deletions(-)
create mode 100644 components/cj-slider/cj-slider.vue
diff --git a/App.vue b/App.vue
index 48a6792..1fbcc6f 100644
--- a/App.vue
+++ b/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/Utils/Api.js b/Utils/Api.js
index aef1d22..d0a5378 100644
--- a/Utils/Api.js
+++ b/Utils/Api.js
@@ -430,8 +430,12 @@ export const oilCardPay = params => {
}
//话费充值查询
export const getListOutRechargePrice = params => {
- return POST('GET', `${base}/outRechargePrice/getListOutRechargePrice`, params).then(res => res.data);
-}
+ return POST('GET', `${base}/outRechargePrice/getRechargePriceByList`, params).then(res => res.data);
+}
+//查询话费详情
+export const findById = params => {
+ return POST('GET', `${base}/outRechargePrice/findById`, params).then(res => res.data);
+}
//提交订单
export const orderToUNionPay = params => {
return POST('POST', `${base}/outRechargeOrder/orderToPay`, params).then(res => res.data);
diff --git a/components/cj-slider/cj-slider.vue b/components/cj-slider/cj-slider.vue
new file mode 100644
index 0000000..e0b13f6
--- /dev/null
+++ b/components/cj-slider/cj-slider.vue
@@ -0,0 +1,372 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/goods/refuel-confirm/refuel-confirm.vue b/pages/goods/refuel-confirm/refuel-confirm.vue
index 4835493..173edce 100644
--- a/pages/goods/refuel-confirm/refuel-confirm.vue
+++ b/pages/goods/refuel-confirm/refuel-confirm.vue
@@ -144,7 +144,7 @@
重要说明
1.请先加油后下单,即您到站后,与工作人员确认油号,抢号后再付款。
+ class="fcor089 fontwig6">请先加油后下单,即您到站后,与工作人员确认油号,枪号后再付款。
2.请勿先付款后加油,若您已下单付款。请于24小时内到加油站完成加油;若您48小时内未完成加油,请及时发起退单;逾期退单可能会退单失败。
diff --git a/subPages/recharge-centre/recharge-centre.vue b/subPages/recharge-centre/recharge-centre.vue
index df3f9c8..c91fd87 100644
--- a/subPages/recharge-centre/recharge-centre.vue
+++ b/subPages/recharge-centre/recharge-centre.vue
@@ -20,8 +20,8 @@
- {{item.price}}元
- {{item.discount}} 折
+ {{item.rechargePrice}}元
+ {{item.payPrice}}元
已售空
@@ -135,7 +135,6 @@
inputAmount: '',
inputPhone: '',
amoutType: '',
- codesVlues: '',
amountList: [],
price: '',
amoutstatus: '',
@@ -204,8 +203,8 @@
},
methods: {
select(amoutinfos) {
- this.inputAmount = amoutinfos.realPrice;
- this.price = amoutinfos.price;
+ this.inputAmount = amoutinfos.payPrice;
+ this.price = amoutinfos.rechargePrice;
this.inputAmountId = amoutinfos.id;
this.amoutstatus = amoutinfos.status;
},
@@ -239,9 +238,9 @@
showType = 1;
// #endif
let params = {
- type: item,
+ operatorType: item,
regionId: app.globalData.cityId,
- showType: showType,
+ platformId: showType,
rechargeType: this.swiperCurrent
}
getListOutRechargePrice(params).then(res => {
@@ -291,14 +290,6 @@
});
return false;
}
- // let params = {
- // "orderPrice": this.inputAmount,
- // "payPrice": this.inputAmount,
- // "rechargeContent": this.inputPhone,
- // "rechargeModel": this.amoutType,
- // "agentKey": this.codesVlues,
- // "objectId": this.inputAmountId,
- // }
uni.showToast({
title: '提交订单...',
icon: 'none',
@@ -307,7 +298,7 @@
uni.navigateTo({
url: '../unionComfirmation/unionComfirmation?orderPrice=' + that.price +
'&payPrice=' + that.inputAmount + '&rechargeContent=' + that.inputPhone +
- '&rechargeModel=' + that.amoutType + '&agentKey=' + that.codesVlues +
+ '&rechargeModel=' + that.amoutType +
'&objectId=' + that.inputAmountId + '&rechargeType=' + that.swiperCurrent
})
}
diff --git a/subPages/unionComfirmation/unionComfirmation.vue b/subPages/unionComfirmation/unionComfirmation.vue
index e394b41..75c7823 100644
--- a/subPages/unionComfirmation/unionComfirmation.vue
+++ b/subPages/unionComfirmation/unionComfirmation.vue
@@ -46,38 +46,65 @@
-
-
- 支付方式
+
+
+
+ 积分抵扣
+
+
+ 0
+
+ {{availIntegal}}
-
-
+
+
- 积分支付可用积分: {{user.gold}}
+ 抵扣金额
-
+ ¥{{priceValue[1] / 100}}
-
+
- 微信支付
-
-
-
+ 支付方式
-
-
- 汇联通工会卡可用余额: {{tongCardPrice}}元
+
+
+
+
+
+ 微信支付
+
+
+
+
-
-
+
+
+
+ 汇联通工会卡可用余额: {{tongCardPrice}}元
+
+
+
+
@@ -85,12 +112,13 @@