|
@@ -142,7 +142,7 @@
|
|
|
</view>
|
|
|
<view v-if="price" class="priceListBlMain">
|
|
|
|
|
|
- <view class="price-3-card-view " v-if="userCardBool&&userCard.classify==2">
|
|
|
+ <view class="price-3-card-view " v-if="personInfo&&personInfo.userType==2&&(userCardBool&&userCard.classify==2||(!userCardBool&&prevMonthKwhBL))">
|
|
|
<view class="price">
|
|
|
|
|
|
<text class="span">{{price.costPrice.toFixed(2)}}</text><text class="unit">元/度</text>
|
|
@@ -161,8 +161,26 @@
|
|
|
|
|
|
</view>
|
|
|
</view>
|
|
|
-
|
|
|
- <view class="price" v-else-if="personInfo&&personInfo.userType==2">
|
|
|
+ <view class="price-3-card-view " v-else-if="personInfo&&personInfo.userType==2&&((userCardBool&&userCard.classify==1)||(!userCardBool&&!prevMonthKwhBL))">
|
|
|
+ <view class="price">
|
|
|
+
|
|
|
+ <text class="span">{{price.costPrice.toFixed(2)}}</text><text class="unit">元/度</text>
|
|
|
+
|
|
|
+ </view>
|
|
|
+ <view class="price-3-card price-3-card-yue ">
|
|
|
+
|
|
|
+
|
|
|
+ <view class="num1">
|
|
|
+
|
|
|
+ <img src="@/assets/img/9-4/月卡价格.png" />
|
|
|
+
|
|
|
+ </view>
|
|
|
+ <text
|
|
|
+ class="num">{{ (price.electricityPrice).toFixed(2)}}元/度</text>
|
|
|
+
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="price" v-else-if="false&&personInfo&&personInfo.userType==2">
|
|
|
|
|
|
<text class="span">{{price.costPrice.toFixed(2)}}</text><text class="unit">元/度</text>
|
|
|
<text class="unit"
|
|
@@ -1049,15 +1067,16 @@
|
|
|
|
|
|
var num1=parseInt(obj.electricQuantity);
|
|
|
var num2=parseInt(obj.totalServiceMoney) ;
|
|
|
+ this.carImg3span1=parseInt(num1/10000);
|
|
|
+ this.carImg3span2=parseInt(num2*0.4) ;
|
|
|
+ this.carImg3span3=parseInt(num2) ;
|
|
|
+ if(num2*0.4>20||this.carImg3span1>=1000){
|
|
|
|
|
|
- if(num2*0.4>20){
|
|
|
- this.carImg3span1=parseInt(num1/10000);
|
|
|
- this.carImg3span2=parseInt(num2*0.4) ;
|
|
|
- this.carImg3span3=parseInt(num2) ;
|
|
|
this.carImg3Bl=true;
|
|
|
}else{
|
|
|
this.carImg4Bl=true;
|
|
|
}
|
|
|
+
|
|
|
console.log("carhelp_getChargeList",this.carImg3span1,this.carImg3span2)
|
|
|
return
|
|
|
}
|
|
@@ -1078,7 +1097,7 @@
|
|
|
var num2=0;
|
|
|
for(var i in chargeList){
|
|
|
var obj=chargeList[i]
|
|
|
- if(obj.status==2&&obj.userCardId==null&&obj.entAccountId==null){
|
|
|
+ if(obj.status==2){
|
|
|
num1+=obj.electricQuantity
|
|
|
num2+=obj.totalServiceMoney
|
|
|
}
|
|
@@ -1089,11 +1108,11 @@
|
|
|
electricQuantity:num1,
|
|
|
totalServiceMoney:num2
|
|
|
})
|
|
|
-
|
|
|
- if(num2*0.4>20){
|
|
|
- this.carImg3span1=parseInt(num1/10000);
|
|
|
- this.carImg3span2=parseInt(num2*0.4) ;
|
|
|
- this.carImg3span3=parseInt(num2) ;
|
|
|
+ this.carImg3span1=parseInt(num1/10000);
|
|
|
+ this.carImg3span2=parseInt(num2*0.4) ;
|
|
|
+ this.carImg3span3=parseInt(num2) ;
|
|
|
+ if(num2*0.4>20||this.carImg3span1>=1000){
|
|
|
+
|
|
|
this.carImg3Bl=true;
|
|
|
}else{
|
|
|
this.carImg4Bl=true;
|
|
@@ -1881,6 +1900,10 @@
|
|
|
align-items: center;
|
|
|
|
|
|
}
|
|
|
+ }
|
|
|
+ .price-3-card-yue{
|
|
|
+ background: linear-gradient(88.81deg, rgba(219,199,167,1) 1.89%,rgba(194,154,93,1) 98%);
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
|