Browse Source

bugfix_dly-3851

pingan\平安 2 days ago
parent
commit
006ca64263
1 changed files with 4 additions and 5 deletions
  1. 4 5
      pages/index/index.vue

+ 4 - 5
pages/index/index.vue

@@ -115,15 +115,14 @@
 										src="https://qiniu.bms16.com/FtalApKa3STyruaBxxRB4O9hHXyE" alt="">
 										src="https://qiniu.bms16.com/FtalApKa3STyruaBxxRB4O9hHXyE" alt="">
 									<text class="margin_l_8">{{$t("换电套餐")}}</text>
 									<text class="margin_l_8">{{$t("换电套餐")}}</text>
 								</view>
 								</view>
-								<view v-if="car_info.package_type == 1" class="card-top-text">
+								<view v-if="car_info.exchange_package_info.package_type == 1" class="card-top-text">
 									{{calculateRemainingDays(car_info.exchange_package_info.expire_time)}} <text
 									{{calculateRemainingDays(car_info.exchange_package_info.expire_time)}} <text
 										class="font_24">{{$t("天")}}</text>
 										class="font_24">{{$t("天")}}</text>
 								</view>
 								</view>
-								<view v-if="car_info.package_type == 2" class=" card-top-text">{{item.last_num}} <text
+								<view v-if="car_info.exchange_package_info.package_type == 2" class=" card-top-text">{{car_info.exchange_package_info.last_num}} <text
 										class="font_24">{{$t("次")}}</text></view>
 										class="font_24">{{$t("次")}}</text></view>
-								<view v-if="car_info.package_type == 3" class=" card-top-text">
-									{{item.total_day}}{{$t("天")}}/{{item.last_num}} <text
-										class="font_24">{{$t("次")}}</text>
+								<view v-if="car_info.exchange_package_info.package_type == 3" class="card-top-text">
+									{{car_info.exchange_package_info.total_day}}<text class="font_24" style="margin-right: 8rpx;">{{$t("天")}}</text>{{car_info.exchange_package_info.last_num}} <text class="font_24">{{$t("次")}}</text>
 								</view>
 								</view>
 							</view>
 							</view>
 						</view>
 						</view>