date.js 591 Bytes
// components/reserve/search/how/hv/date.js
var myBehavior = require('hv_behavior')
const items=(function(){
  let today=parseInt(new Date()/1000);
  let ds=[]
  for(let i=0;i<15;i++){
    ds.push(today+86400*i)
  }
  return ds
})()
Component({
  behaviors: [myBehavior],
  data:{
    items:items,
  },
  lifetimes: {
    created: function () {
      // 在组件实例进入页面节点树时执行
      this.type='date'
    },
    detached: function () {
      // 在组件实例被从页面节点树移除时执行
    },
  },
  /**
   * 组件的方法列表
   */
  methods: {

  }
})