|
|
@ -134,10 +134,10 @@ |
|
|
|
v-if="Integrastu == 2"> |
|
|
|
v-if="Integrastu == 2"> |
|
|
|
{{rebateIntegral}} |
|
|
|
{{rebateIntegral}} |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class=" width100 backcorfff alijusstart paddbotm10" style="padding-left: 2%;"> |
|
|
|
<view class=" width100 backcorfff alijusstart paddbotm10" style="padding-left: 2%;"> |
|
|
|
<image src="../../../static/img/sigh.png" mode="widthFix" class="icon20"></image> |
|
|
|
<image src="../../../static/img/sigh.png" mode="widthFix" class="icon20"></image> |
|
|
|
<text class="fcor999 font13">积分抵扣与优惠券抵扣不同享</text> |
|
|
|
<text class="fcor999 font13">积分抵扣与优惠券抵扣不同享</text> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
@ -175,6 +175,47 @@ |
|
|
|
<radio :checked="paytype=='gonghuika'" @click="changeRiado()" color="#0083f5" /> |
|
|
|
<radio :checked="paytype=='gonghuika'" @click="changeRiado()" color="#0083f5" /> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> --> |
|
|
|
</view> --> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<view class="line1" v-if="oilUserCardlist"></view> |
|
|
|
|
|
|
|
<view class="heightl60 paddleft10 fcor666 width100 backcorfff" v-if="oilUserCardlist" |
|
|
|
|
|
|
|
@tap="paytype='fleettruck'"> |
|
|
|
|
|
|
|
<view class="width60 flleft font14"> |
|
|
|
|
|
|
|
车队油卡<text class="font14 fcor666 margle">余额: {{oilUserNoPrice}}元</text> |
|
|
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="flright width30 fotct" v-if="isUse"> |
|
|
|
|
|
|
|
<radio :checked="paytype=='fleettruck'" color="#0083f5" /> |
|
|
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<view v-if="paytype=='fleettruck'"> |
|
|
|
|
|
|
|
<view class="heightl60 paddleft10 fcor333 fontwig6 font16 width100 backcorfff">车队油卡列表</view> |
|
|
|
|
|
|
|
<view class="line1"></view> |
|
|
|
|
|
|
|
<view class="heightl60 paddleft10 fcor666 width100 backcorfff" v-for="(item,index) in oilUserCardlist" |
|
|
|
|
|
|
|
:key="index"> |
|
|
|
|
|
|
|
<view class="width60 flleft font14"> |
|
|
|
|
|
|
|
{{item.cardNo}}({{item.contactName}}) |
|
|
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="flright width30 fotct"> |
|
|
|
|
|
|
|
<radio :checked="oilUserno==item.cardNo" @click="changeRiado1(item)" color="#0083f5" /> |
|
|
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<view class="username"> |
|
|
|
|
|
|
|
<view class="namecont font15">车牌号</view> |
|
|
|
|
|
|
|
<input style="width: 70%;" placeholder="输入车牌号" class="font15" v-model="cardNoNumber"> |
|
|
|
|
|
|
|
<!-- <view class="date text1" >{{cardNoNumber}}</view> --> |
|
|
|
|
|
|
|
<!-- </view> --> |
|
|
|
|
|
|
|
<picker mode="selector" style="width: 20%;" :range="UserCard" range-key="carLicensePlate" |
|
|
|
|
|
|
|
@change="bindUserCard"> |
|
|
|
|
|
|
|
<view class="date text1" |
|
|
|
|
|
|
|
style="color: white;position: absolute;margin-top: -2px;min-width: 100px;"> |
|
|
|
|
|
|
|
11111{{cardNoNumber}}</view> |
|
|
|
|
|
|
|
</picker> |
|
|
|
|
|
|
|
<image class="flright" style="width: 15px;height: 15px;" src="../../../static/img/downj.png"> |
|
|
|
|
|
|
|
</image> |
|
|
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
<view class="width100 mart15 fcor333 font16 fontwig6 paddleft10">重要说明</view> |
|
|
|
<view class="width100 mart15 fcor333 font16 fontwig6 paddleft10">重要说明</view> |
|
|
@ -239,7 +280,10 @@ |
|
|
|
addOrder, |
|
|
|
addOrder, |
|
|
|
cancelOrder, |
|
|
|
cancelOrder, |
|
|
|
oilPriceDiscountCompute, |
|
|
|
oilPriceDiscountCompute, |
|
|
|
getRebateIntegral |
|
|
|
getRebateIntegral, |
|
|
|
|
|
|
|
getUserCardList, |
|
|
|
|
|
|
|
fleetOilCardPay, |
|
|
|
|
|
|
|
getCardListByCardNo |
|
|
|
} from '../../../Utils/Api.js'; |
|
|
|
} from '../../../Utils/Api.js'; |
|
|
|
import ssPaymentPassword from '../../../components/sanshui-payment-password/index.vue'; |
|
|
|
import ssPaymentPassword from '../../../components/sanshui-payment-password/index.vue'; |
|
|
|
import wybPopup from '../../../components/wyb-popup/wyb-popup.vue'; |
|
|
|
import wybPopup from '../../../components/wyb-popup/wyb-popup.vue'; |
|
|
@ -278,7 +322,13 @@ |
|
|
|
availIntegal: 0, // 可用积分 |
|
|
|
availIntegal: 0, // 可用积分 |
|
|
|
gasOrderList: '', //存的订单信息 |
|
|
|
gasOrderList: '', //存的订单信息 |
|
|
|
rebateIntegral: '', //返回积分 |
|
|
|
rebateIntegral: '', //返回积分 |
|
|
|
Integrastu: 1 //返积分状态 |
|
|
|
Integrastu: 1, //返积分状态 |
|
|
|
|
|
|
|
oilUserCardlist: '', //油卡列表 |
|
|
|
|
|
|
|
oilUserno: '', //油卡卡号 |
|
|
|
|
|
|
|
contactName: '', //油卡联系人 |
|
|
|
|
|
|
|
oilUserNoPrice: '', //油卡余额 |
|
|
|
|
|
|
|
UserCard: '', //车牌号列表 |
|
|
|
|
|
|
|
cardNoNumber: '', // 车牌号 |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
onLoad(e) { |
|
|
|
onLoad(e) { |
|
|
@ -292,6 +342,7 @@ |
|
|
|
this.priceValue[1] = 0; |
|
|
|
this.priceValue[1] = 0; |
|
|
|
this.reload(); |
|
|
|
this.reload(); |
|
|
|
this.calculatepayPrice(); |
|
|
|
this.calculatepayPrice(); |
|
|
|
|
|
|
|
this.getUserCardList(); |
|
|
|
}, |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
methods: { |
|
|
|
findUser() { |
|
|
|
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() { |
|
|
|
getRebateIntegral() { |
|
|
|
let datas = { |
|
|
|
let datas = { |
|
|
@ -442,7 +527,7 @@ |
|
|
|
this.payPrice = Math.abs(parseFloat(this.orderPrice - (parseFloat(this.priceValue[1] / 100).toFixed( |
|
|
|
this.payPrice = Math.abs(parseFloat(this.orderPrice - (parseFloat(this.priceValue[1] / 100).toFixed( |
|
|
|
2)) - this |
|
|
|
2)) - this |
|
|
|
.deductionPrice).toFixed(2)); |
|
|
|
.deductionPrice).toFixed(2)); |
|
|
|
} |
|
|
|
} |
|
|
|
this.getRebateIntegral(); |
|
|
|
this.getRebateIntegral(); |
|
|
|
}, |
|
|
|
}, |
|
|
|
rechangeload() { |
|
|
|
rechangeload() { |
|
|
@ -476,7 +561,7 @@ |
|
|
|
this.paytype = ''; |
|
|
|
this.paytype = ''; |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
this.isUse = true; |
|
|
|
this.isUse = true; |
|
|
|
} |
|
|
|
} |
|
|
|
this.getRebateIntegral(); |
|
|
|
this.getRebateIntegral(); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
@ -550,12 +635,15 @@ |
|
|
|
}) |
|
|
|
}) |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
if (this.paytype == 'jifen') { |
|
|
|
if (this.paytype == 'fleettruck') { |
|
|
|
let params = { |
|
|
|
let params = { |
|
|
|
"orderId": this.orderNo, |
|
|
|
"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(); |
|
|
|
uni.hideLoading(); |
|
|
|
if (res.return_code == '000000') { |
|
|
|
if (res.return_code == '000000') { |
|
|
|
uni.showToast({ |
|
|
|
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() { |
|
|
|
changeRiado() { |
|
|
|
// if (!this.user.isSetHltCard && this.paytype == 'gonghuika') { |
|
|
|
// if (!this.user.isSetHltCard && this.paytype == 'gonghuika') { |
|
|
@ -735,10 +830,28 @@ |
|
|
|
}) |
|
|
|
}) |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
if (this.orderNo) { |
|
|
|
// if (this.orderNo) { |
|
|
|
this.orderToPay(); |
|
|
|
// 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; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
this.addorders(); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
//下单整合 |
|
|
|
|
|
|
|
addorders() { |
|
|
|
uni.showLoading({ |
|
|
|
uni.showLoading({ |
|
|
|
title: '提交订单中...' |
|
|
|
title: '提交订单中...' |
|
|
|
}) |
|
|
|
}) |
|
|
@ -881,6 +994,15 @@ |
|
|
|
that.$refs.paymentPassword.modalFun('show'); |
|
|
|
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.paytype == 'oilcard') { |
|
|
|
if (!that.user.isSetPayPwd) { |
|
|
|
if (!that.user.isSetPayPwd) { |
|
|
|
uni.navigateTo({ |
|
|
|
uni.navigateTo({ |
|
|
@ -1084,4 +1206,18 @@ |
|
|
|
// margin-left: 10px; |
|
|
|
// 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%; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
</style> |
|
|
|
</style> |
|
|
|