zhengkaixin hace 2 años
padre
commit
062e3dd18b
Se han modificado 2 ficheros con 6 adiciones y 2 borrados
  1. 3 0
      apis/site.js
  2. 3 2
      pages/searchPile/chargeProcess/dcCharging.vue

+ 3 - 0
apis/site.js

@@ -19,6 +19,9 @@ export function getChargingStationPrice2(data){
 	return getChargingStationPrice3(data)
 }
 export function getChargingStationPrice3(data){
+	if(!data.recordId){
+		data.recordId=""
+	}
 	var info=carhelp.getPersonInfo()
 	if(info){
 		return request({

+ 3 - 2
pages/searchPile/chargeProcess/dcCharging.vue

@@ -415,7 +415,7 @@
 								0(月卡)
 							</template>
 							<template v-else>
-								<template v-if="chargingStation.giveDiscount">
+								<template v-if="chargingStation.giveDiscount||price.discountServicePrice">
 									<span style="    text-decoration: line-through;">{{price.servicePrice}}</span>折后{{price.discountServicePrice}}
 								</template>
 								<template v-else>
@@ -692,7 +692,8 @@
 				//id='e012f9fe-90a8-4a47-bb64-26ea139c3c05'
 				api.getChargingStationPrice2({
 					stationId:id,
-					payType:this.chargingRecord.payType
+					payType:this.chargingRecord.payType,
+					recordId:this.chargingRecord.id
 				}).then((res)=>{
 					this.prices=res.data.prices
 					this.chargingStation=res.data.chargingStation;