Browse Source

优化品牌名称回显

jiuling 1 month ago
parent
commit
ffca53a83f

+ 3 - 0
pages/reservation/reservationEdit.js

@@ -91,6 +91,9 @@ Page({
       } = options;
   
       console.info(options);
+      if(options.brandName == 'null' || options.brandName == ''){
+        brandName = null
+      }
       let curTime = new Date();
       let sstime = new Date(curTime.setMinutes(curTime.getMinutes() + parseInt(earliestReservTime)));
       let curTime2 = new Date();

+ 1 - 1
pages/ucenter/charginglog/charginglog.wxml

@@ -12,7 +12,7 @@
         <image src='/images/charging2_1.png'></image>
       </view>
       <view class='charging_text_title1'>
-        <text class='bold'>{{charginglog.chargStation.brandName != '' ? charginglog.chargStation.brandName : '' }}{{charginglog.chargStation.chargStationName}}</text>
+        <text class='bold'>{{charginglog.chargStation.brandName || '' }}{{charginglog.chargStation.chargStationName}}</text>
         <text class="h1">{{charginglog.chargStation.address}}</text>
       </view>
     </view>

+ 1 - 1
pages/ucenter/yuyt/yuyt.wxml

@@ -24,7 +24,7 @@
           <image src='/images/charging2_1.png'></image>
         </view>
         <view class='charging_text_title1'>
-          <text class='bold'>{{item.reservStation.brandName != '' ? item.reservStation.brandName : '' }}{{item.reservStation.chargStationName}}</text>
+          <text class='bold'>{{item.reservStation.brandName || '' }}{{item.reservStation.chargStationName}}</text>
           <text class="h1">{{item.reservPile.chargPileId}}</text>
         </view>
       </view>