| 1234567891011121314151617181920212223242526272829303132333435363738 |
- const getHeight = require("../../utils/getHeight");
- Component({
- properties: {
- show: {
- type: Boolean
- },
- handle: {
- type: Function
- }, //按钮回调函数
- zIndex: {
- type: String,
- value: 99999,
- },
- },
- lifetimes: {
- attached() {
- getApp().globalData.Language.getLanguagePackage(this)
- console.log("组件111111",this.data.language)
- },
- ready() {
- getHeight.getHeight('.head', this).then(res => this.setData({
- listHeight: res - 80
- }));
- }
- },
- methods: {
- onClick(e) {
- const {
- name
- } = e.target.dataset;
- if (name) this.triggerEvent("handle", name)
- },
- onClose() {
- this.triggerEvent("handle", "close")
- }
- }
- })
|