tanyanfei 3 роки тому
батько
коміт
9b499062fd
2 змінених файлів з 4 додано та 2 видалено
  1. 3 1
      pages/hotel/hotel.js
  2. 1 1
      pages/hotel/hotel.wxml

+ 3 - 1
pages/hotel/hotel.js

@@ -40,6 +40,7 @@ Page({
       success:res=>{
         this.setData({
           start: res.data.data.begin_time.split(' ')[0],
+          start1: res.data.data.begin_time.split(' ')[0],
           end: res.data.data.end_time.split(' ')[0]
         })
       }
@@ -85,7 +86,8 @@ Page({
   },
   bindDateChange:function(e){
     this.setData({
-      s_time:e.detail.value
+      s_time:e.detail.value,
+      start1: e.detail.value
     })
   },
   bindDateChange1: function (e) {

+ 1 - 1
pages/hotel/hotel.wxml

@@ -53,7 +53,7 @@
         </view>
         <view>
           <label>离开时间: </label>
-          <picker mode="date" value="{{e_time}}" start="{{start}}" 
+          <picker mode="date" value="{{e_time}}" start="{{start1}}" 
           end='{{end}}' bindchange="bindDateChange1">
             <view class="picker">
               <text wx:if='{{!e_time}}'>请选择</text>