<viewclass="picker-header"><viewclass="cancel">取消</view><viewclass="text"></view><viewclass="confirm">确定</view></view><picker-viewclass="picker-view"v-if="visible":indicator-style="indicatorStyle":value="timeValue"@change="bindChange"><picker-view-column><viewclass="item"v-for="(item,index) in hours":key="index">{{item}}</view></picker-view-column><picker-view-column><viewclass="item"v-for="(item,index) in minutes":key="index">{{item}}</view></picker-view-column></picker-view>
getTime(){const date =newDate()this.hours =[]const hour = date.getHours()this.minutes =[]const minute = date.getMinutes()const h =[];const m =[];for(let i =1; i <=24; i++){
h.push(i)}for(let i =1; i <=60; i++){
m.push(i)}this.hours = h;this.minutes = m;this.timeValue =[hour -1, minute -1];}