|
@@ -133,7 +133,18 @@
|
|
|
|
|
|
|
|
|
<p style="color: rgba(119, 119, 119, 1);font-size: 24rpx; text-align: end; margin: 0 80rpx;"
|
|
|
- v-if="chargingRecord.quickChargeReduce">快充订单满{{chargingRecord.quickChargeDegree}}度服务费{{discountRatio10(chargingRecord.serviceDiscountRatio)}}折</p>
|
|
|
+ v-if="chargingRecord.quickChargeReduce">快充订单满{{chargingRecord.quickChargeDegree}}度服务费
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ <span v-if="chargingRecord.serviceDiscountRatio==0" >免单</span>
|
|
|
+ <span v-else >{{discountRatio10(chargingRecord.serviceDiscountRatio)}}折</span>
|
|
|
+
|
|
|
+ </p>
|
|
|
+
|
|
|
+ <p style="color: rgba(119, 119, 119, 1);font-size: 24rpx; text-align: end; margin: 0 80rpx;"
|
|
|
+ v-if="chargingRecord.quickChargeContentId">已选择最低折扣</p>
|
|
|
+
|
|
|
<view class="info">
|
|
|
<view class="info-name">
|
|
|
充电金额
|
|
@@ -809,7 +820,7 @@
|
|
|
lwidth: 600,
|
|
|
lheight: 600,
|
|
|
|
|
|
- lotteryIndex:0,
|
|
|
+ lotteryIndex:-1,
|
|
|
dataLottery: [
|
|
|
{
|
|
|
id: 2,
|
|
@@ -1001,9 +1012,10 @@
|
|
|
},
|
|
|
getPie() {
|
|
|
|
|
|
-
|
|
|
+
|
|
|
},
|
|
|
- getPie2() {
|
|
|
+ getPie2() {
|
|
|
+
|
|
|
console.log("getPie")
|
|
|
if (!this.myChart) {
|
|
|
this.myChart = echarts.init(document.getElementById('pieEcharts'), null, {
|
|
@@ -1210,7 +1222,11 @@
|
|
|
this.userCard = res.data.regUserCard;
|
|
|
|
|
|
this.forPrice()
|
|
|
-
|
|
|
+
|
|
|
+ if (this.chargingRecord.status == 2) {
|
|
|
+ //this.getPie()
|
|
|
+ this.lotteryApi(true)
|
|
|
+ }
|
|
|
|
|
|
|
|
|
}).catch(error => {
|
|
@@ -1423,7 +1439,7 @@
|
|
|
|
|
|
}
|
|
|
if (this.chargingRecord.status == 2) {
|
|
|
- this.getPie()
|
|
|
+ //this.getPie()
|
|
|
}
|
|
|
} else if (this.chargingGun.gunType == 2) {
|
|
|
//交流
|
|
@@ -1431,6 +1447,10 @@
|
|
|
//this.percent=100;
|
|
|
}
|
|
|
|
|
|
+ }
|
|
|
+ if (this.chargingRecord.status == 2) {
|
|
|
+ //this.getPie()
|
|
|
+ this.lotteryApi(true)
|
|
|
}
|
|
|
//zkx
|
|
|
//this.percent=42;
|
|
@@ -1490,7 +1510,15 @@
|
|
|
})
|
|
|
},
|
|
|
|
|
|
- lotteryApi(){
|
|
|
+ lotteryApi(bl){
|
|
|
+
|
|
|
+ if(this.chargingStation.quickChargeJoinActivity
|
|
|
+ &&this.chargingStation.quickChargeReduceResult){
|
|
|
+ //this.lotteryApi()
|
|
|
+ }else{
|
|
|
+ return
|
|
|
+ }
|
|
|
+
|
|
|
API.getRateByRecordId({
|
|
|
recordId: this.chargingRecord.id
|
|
|
}).then((res) => {
|
|
@@ -1512,7 +1540,10 @@
|
|
|
}else{
|
|
|
|
|
|
}
|
|
|
+ if(!bl){
|
|
|
this.confirm()
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
}).catch(error => {
|
|
|
|