diff --git a/Utils/Api.js b/Utils/Api.js
index 43094d4..5c19101 100644
--- a/Utils/Api.js
+++ b/Utils/Api.js
@@ -275,7 +275,13 @@ export const getDetailByCardNo = params => {
// 获取用户卡号列表
export const getUserCardList = params => {
return POST('GET', `${base}/highUserCard/getUserCardList`, params).then(res => res.data);
-}
+}
+
+//根据油卡查询车牌列表
+export const getCardListByCardNo = params => {
+ return POST('GET', `${base}/fleetOilCard/getCardListByCardNo`, params).then(res => res.data);
+}
+
// 根据手机号获取汇联通工会卡列表
export const getHuiLianTongCardByPhone = params => {
return POST('GET', `${base}/highUserCard/getHuiLianTongCardByPhone`, params).then(res => res.data);
@@ -299,7 +305,13 @@ export const getHuiLianTongCardConsume = params => {
// 汇联通工会卡支付
export const hltUnionCardPay = params => {
return POST('POST', `${base}/order/hltUnionCardPay`, params).then(res => res.data);
-}
+}
+
+//车队油卡支付
+export const fleetOilCardPay = params => {
+ return POST('POST', `${base}/order/fleetOilCardPay`, params).then(res => res.data);
+}
+
//绑定卡包
export const bindHuiLianTongCard = params => {
return POST('POST', `${base}/highUserCard/bindCard`, params).then(res => res.data);
diff --git a/pages/goods/externalCoupon/externalCoupon.vue b/pages/goods/externalCoupon/externalCoupon.vue
index f7b19dd..55adb5e 100644
--- a/pages/goods/externalCoupon/externalCoupon.vue
+++ b/pages/goods/externalCoupon/externalCoupon.vue
@@ -28,7 +28,7 @@
+ @tap="toGoods(product.highCoupon.id,product.highCoupon.couponSource)">
{{ product.highCoupon.couponName }}
@@ -259,12 +259,21 @@
});
},
//商品跳转
- toGoods(e) {
+ toGoods(e, item) {
if (app.globalData.userInfo) {
if (app.globalData.openId) {
- uni.navigateTo({
- url: '../../order/confirmation?id=' + e
- })
+ if (item == 4) {
+ uni.showToast({
+ icon: 'none',
+ title: '系统维护中,暂时无法购买',
+ duration: 2000
+ })
+ } else {
+ uni.navigateTo({
+ url: '../../order/confirmation?id=' + e
+ })
+ }
+
} else {
uni.showToast({
icon: 'none',
diff --git a/pages/goods/refuel-confirm/refuel-confirm.vue b/pages/goods/refuel-confirm/refuel-confirm.vue
index 35b1b2c..27894f4 100644
--- a/pages/goods/refuel-confirm/refuel-confirm.vue
+++ b/pages/goods/refuel-confirm/refuel-confirm.vue
@@ -134,10 +134,10 @@
v-if="Integrastu == 2">
{{rebateIntegral}}
-
-
-
- 积分抵扣与优惠券抵扣不同享
+
+
+
+ 积分抵扣与优惠券抵扣不同享
@@ -175,6 +175,47 @@
-->
+
+
+
+
+ 车队油卡余额: {{oilUserNoPrice}}元
+
+
+
+
+
+
+
+ 车队油卡列表
+
+
+
+ {{item.cardNo}}({{item.contactName}})
+
+
+
+
+
+
+
+ 车牌号
+
+
+
+
+
+ 11111{{cardNoNumber}}
+
+
+
+
+
+
重要说明
@@ -239,7 +280,10 @@
addOrder,
cancelOrder,
oilPriceDiscountCompute,
- getRebateIntegral
+ getRebateIntegral,
+ getUserCardList,
+ fleetOilCardPay,
+ getCardListByCardNo
} from '../../../Utils/Api.js';
import ssPaymentPassword from '../../../components/sanshui-payment-password/index.vue';
import wybPopup from '../../../components/wyb-popup/wyb-popup.vue';
@@ -278,7 +322,13 @@
availIntegal: 0, // 可用积分
gasOrderList: '', //存的订单信息
rebateIntegral: '', //返回积分
- Integrastu: 1 //返积分状态
+ Integrastu: 1, //返积分状态
+ oilUserCardlist: '', //油卡列表
+ oilUserno: '', //油卡卡号
+ contactName: '', //油卡联系人
+ oilUserNoPrice: '', //油卡余额
+ UserCard: '', //车牌号列表
+ cardNoNumber: '', // 车牌号
}
},
onLoad(e) {
@@ -292,6 +342,7 @@
this.priceValue[1] = 0;
this.reload();
this.calculatepayPrice();
+ this.getUserCardList();
},
methods: {
findUser() {
@@ -312,6 +363,40 @@
}
});
},
+ //查询油卡包列表
+ getUserCardList() {
+ let datas = {
+ type: 3
+ }
+ getUserCardList(datas).then(res => {
+ if (res.return_code == '000000') {
+ this.oilUserCardlist = res.return_data;
+ this.oilUserno = res.return_data[0].cardNo;
+ this.contactName = res.return_data[0].contactName;
+ this.oilUserNoPrice = res.return_data[0].balance;
+ this.getCardListByCardNo(res.return_data[0].cardNo);
+ }
+ });
+ },
+ //查询车牌号列表
+ getCardListByCardNo(item) {
+ let datas = {
+ cardNo: item
+ }
+ getCardListByCardNo(datas).then(res => {
+ if (res.return_code == '000000' && res.return_data != '') {
+ this.UserCard = res.return_data;
+ this.cardNoNumber = res.return_data[0].carLicensePlate;
+ } else {
+ this.UserCard = '';
+ this.cardNoNumber = '';
+ }
+ });
+ },
+ //选择车牌号
+ bindUserCard(e) {
+ this.cardNoNumber = this.UserCard[e.target.value].carLicensePlate;
+ },
//支付返利积分
getRebateIntegral() {
let datas = {
@@ -442,7 +527,7 @@
this.payPrice = Math.abs(parseFloat(this.orderPrice - (parseFloat(this.priceValue[1] / 100).toFixed(
2)) - this
.deductionPrice).toFixed(2));
- }
+ }
this.getRebateIntegral();
},
rechangeload() {
@@ -476,7 +561,7 @@
this.paytype = '';
} else {
this.isUse = true;
- }
+ }
this.getRebateIntegral();
},
@@ -550,12 +635,15 @@
})
return;
}
- if (this.paytype == 'jifen') {
+ if (this.paytype == 'fleettruck') {
let params = {
"orderId": this.orderNo,
- "password": this.PaymentPassword
+ "password": this.PaymentPassword,
+ "cardNo": this.oilUserno,
+ "carLicensePlate": this.cardNoNumber,
+
}
- orderToGoldPay(params).then(res => {
+ fleetOilCardPay(params).then(res => {
uni.hideLoading();
if (res.return_code == '000000') {
uni.showToast({
@@ -674,6 +762,13 @@
})
},
+ //车队油卡
+ changeRiado1(item) {
+ this.oilUserno = item.cardNo;
+ this.contactName = item.contactName;
+ this.oilUserNoPrice = item.balance;
+ this.getCardListByCardNo(item.cardNo);
+ },
//获取选择支付方式
changeRiado() {
// if (!this.user.isSetHltCard && this.paytype == 'gonghuika') {
@@ -735,10 +830,28 @@
})
return;
}
- if (this.orderNo) {
- this.orderToPay();
+ // if (this.orderNo) {
+ // this.orderToPay();
+ // return;
+ // }
+
+ if (this.paytype == 'fleettruck') {
+ let that = this;
+ uni.showModal({
+ title: '温馨提示',
+ content: '是否使用当前 ' + that.contactName + ' 车队油卡',
+ success: function(res) {
+ if (res.confirm) {
+ that.addorders();
+ }
+ }
+ })
return;
}
+ this.addorders();
+ },
+ //下单整合
+ addorders() {
uni.showLoading({
title: '提交订单中...'
})
@@ -881,6 +994,15 @@
that.$refs.paymentPassword.modalFun('show');
}
+ if (that.paytype == 'fleettruck') {
+ if (!that.user.isSetPayPwd) {
+ uni.navigateTo({
+ url: '../../login/updatePas/updatePas'
+ })
+ return;
+ }
+ that.$refs.paymentPassword.modalFun('show');
+ }
if (that.paytype == 'oilcard') {
if (!that.user.isSetPayPwd) {
uni.navigateTo({
@@ -1084,4 +1206,18 @@
// margin-left: 10px;
}
}
+
+ .username {
+ width: calc(100% - 100upx);
+ height: 100upx;
+ display: flex;
+ align-items: center;
+ border-bottom: 1px solid #f6f6f6;
+ padding: 8upx 20upx;
+
+ .namecont {
+ color: #666666;
+ width: 28%;
+ }
+ }