审查视图

pages/timedmo/timedmo.js 766 字节
倪静楠 authored
1
const app = getApp()
倪静楠 authored
2
let method = require("../../utils/reuqest.js")
倪静楠 authored
3 4 5 6 7 8 9
// var numeral = require('numeral');
Page({

  /**
   * 页面的初始数据
   */
  data: {
倪静楠 authored
10 11 12 13
    showTime: false,
    storePickupTime: '',
    timeLists: [],
    timers : ''
倪静楠 authored
14 15
  },
  selectTime(e) {
倪静楠 authored
16 17 18 19 20 21 22
    console.log(e,'e')
      if(e.detail&& e.detail !== this.data.timers){
        this.setData({
          timers: e.detail,
          showTime: false,
        })
      }
倪静楠 authored
23 24 25 26 27 28
  },
  onClose() {
    this.setData({
      showTime: false
    });
  },
倪静楠 authored
29 30
  onReady() {
    this.timepicker = this.selectComponent('#aaa')
倪静楠 authored
31 32 33 34 35 36 37 38 39 40 41 42 43
  },
  chooseTime() {
    this.setData({
      showTime: true
    })
    // this.timepicker.getDliveryTime();
  },
  onClickButton() {
    this.setData({
      showModal: true
    })
  },
})