浏览代码

打折调整

zhengkaixin 2 年之前
父节点
当前提交
062e3dd18b
共有 2 个文件被更改,包括 6 次插入2 次删除
  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;