Просмотр исходного кода

style: 移除预约页预计费用栏

时间选择滚轮与确认条已含费用参考,页面预计费用一栏冗余;同步清理无引用的formatPrice字段
skyline 3 недель назад
Родитель
Сommit
c9e4fd0f24
1 измененных файлов с 0 добавлено и 28 удалено
  1. 0 28
      charge-front/src/pages-charge/appointment/appointment.vue

+ 0 - 28
charge-front/src/pages-charge/appointment/appointment.vue

@@ -100,7 +100,6 @@
         <view class="mt-20 block pl-30 pr-30" v-if="chargeType === 0">
           <view
               class="pt-40 pb-40 flex-between"
-              style="border-bottom: 1rpx solid var(--divider)"
               @click="selectTime"
           >
             <view class="fs-28 color-000 fw-500">充电时间</view>
@@ -123,29 +122,6 @@
               </block>
             </view>
           </view>
-          <view class="pt-40 pb-40 flex-between">
-            <view class="fs-28 color-000 fw-500">预计费用</view>
-            <view class="flex-align-center lh-28">
-              <block v-if="chargeTime.isPowerSaving">
-                <view class="fs-28 color-333 fw-500"
-                >低至{{ priceInfo.minPrice }}元/kwh
-                </view
-                >
-              </block>
-              <block v-else>
-                <view
-                    v-if="chargeTime.formatPrice"
-                    class="fs-28 color-333 fw-500"
-                >{{ chargeTime.formatPrice }}
-                </view
-                >
-                <view v-else class="fs-26 mr-16" style="color: #cacaca"
-                >选择时间后显示
-                </view
-                >
-              </block>
-            </view>
-          </view>
         </view>
 
         <view
@@ -386,7 +362,6 @@ const chargeTime = ref({
   day: "",
   hour: "",
   format: "",
-  formatPrice: "",
   isPowerSaving: false, // 省电模式
 });
 const appointmentData = ref();
@@ -605,7 +580,6 @@ const confirmTime = () => {
   chargeTime.value.day = format("M月d日", opt.ts);
   chargeTime.value.hour = opt.timeLabel;
   chargeTime.value.format = `${format("y年M月d日", opt.ts)} ${opt.timeLabel}`;
-  chargeTime.value.formatPrice = opt.price;
   closeTime();
 };
 
@@ -616,7 +590,6 @@ const changePowerSaving = (e: any) => {
     hour: "",
     isPowerSaving: e.detail.value,
     format: "",
-    formatPrice: "",
   };
 };
 
@@ -632,7 +605,6 @@ const closeTime = () => {
       hour: "",
       isPowerSaving: chargeTime.value.isPowerSaving, // 省电模式
       format: "",
-      formatPrice: "",
     };
   }
 };