Explorar o código

修复苹果手机的默认密码输入以及回显soc

jiuling hai 3 meses
pai
achega
af3e1243f3

BIN=BIN
images/dianliang.png


+ 5 - 1
pages/register/register.wxml

@@ -35,7 +35,11 @@
         <image class='carNum_img' src='/images/car.png'></image><div class="line"></div>
         <input placeholder='请输入车牌号' maxlength='8' bindinput='inputCarNum' type='text' placeholder-class='placeholder'></input>
       </view> -->
-      <view class='input_view'>
+      <!-- 内容永远为空;防止iOS自动填充密码 -->
+			<view style="width: 0.1rpx;height: 0.1rpx;">
+				<input style="width: 1px;height: 1px;" disabled="true" value="" type='password'></input>
+			</view>
+      <view class='input_view' style="margin-top: 5rpx;">
         <image class='password_img' src='/images/password.png'></image><div class="line"></div>
         <input placeholder='请设置密码' maxlength='20' bindinput='inputPassword' type='password' placeholder-class='placeholder'></input>
       </view>

+ 4 - 0
pages/scan_result/scan_result.wxml

@@ -12,6 +12,10 @@
         <text class='bold'>{{chargPile.chargPileName}}</text>
         <text class="h1">终端编号:{{chargPile.chargPileId}}</text>
       </view>
+      <view class="soc" wx:if="{{chargPile.hasBattery == '2'}}">
+        <image src='/images/dianliang.png'></image>
+       <text class='h1'>电量:{{chargPile.currentSoc != null? chargPile.currentSoc :0}}%</text> 
+    </view>
     </view>
     <!-- <text style='margin-bottom:10rpx;'>地址:{{chargPile.address}}</text> -->
     <rich-text space='nbsp' nodes="地址:{{chargPile.address}}" style='line-height:30rpx;font-size:24rpx;margin-bottom:10rpx;word-wrap: break-word;' ></rich-text>

+ 15 - 0
pages/scan_result/scan_result.wxss

@@ -43,6 +43,21 @@ view.inline {
   width: 62rpx;
   height: 62rpx;
 }
+ .soc {
+  height:100%;
+  margin: 19rpx 0rpx 30rpx 0;
+  flex-shrink: 0;
+  overflow: hidden;
+  display: flex;         
+  flex-direction: column; 
+  align-items: center; 
+  justify-content: center;
+  text-align: center;
+}
+.soc image {
+  width: 52rpx;
+  height: 52rpx;
+}
 
 text {
   margin: 0 0 18rpx 0;