tabPopup.js 951 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,
    tips: String,
    height: {
      type: String,
      value: '85%'
    },
    isFullSucreen: {
      type: Boolean,
      value: false
    }
  },

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

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