Explorar o código

修复车牌输入undefine

XWookey hai 1 ano
pai
achega
613fb016e0

+ 2 - 1
pages/charging/charging.js

@@ -332,7 +332,8 @@ Page({
     });
   },
   delOrder(orderId){
-    if (orderId){
+    // if (orderId){
+    if (false){
       log.info('[充电中]', '[删除订单]', '[请求]', { "orderid": orderId });
       wx.request({
         url: getApp().globalData.postHeadAgreement + '/restapi/pileLog/exceptOrder',

+ 2 - 0
pages/ucenter/car/bindCar.js

@@ -10,6 +10,8 @@ Page({
     updateFlag: false
   },
   inputPlateNumber(e){
+    console.info(e.detail.value)
+    console.info(e)
     this.setData({
       carNum: e.detail.value
     });

+ 1 - 1
pages/ucenter/car/bindCar.wxml

@@ -4,7 +4,7 @@
     <view class="t1">车牌号</view>
     <view class="t2">绑定后可在指定场站享受停车费减免优惠</view>
     <view class='input_view'>
-      <input placeholder='请输车牌号' value="{{carNum}}" bindchange='inputPlateNumber' placeholder-class='placeholder'></input>
+      <input placeholder='请输车牌号' value="{{carNum}}" bindinput='inputPlateNumber'placeholder-class='placeholder'></input>
     </view>
     <button class='login_button' bindtap="saveCarNum" >保存</button>
   </view>