Popup.js 743 Bytes
// tabWorkOrder/pages/createOrder/createOrderComponents/Popup/Popup.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    show: {
      type: Boolean,
      value: false,
      observer: function (n, o) {
        this.setData({
          showPopup: n
        })
      }
    },
    title: String,
    height: {
      type: String,
      value: '85%'
    }
  },

  /**
   * 组件的初始数据
   */
  data: {},

  /**
   * 组件的方法列表
   */
  methods: {
    noScroll() {},
    hidePopup() {
      this.setData({
        show: false
      })
    }
    // confirm() {
    //   this.triggerEvent('confirm')
    // }
  },
  attached() {
    this.setData({
      isFullSucreen: wx.$util.isFullSucreen()
    })
  }
})