/** * 企业应急 */ // 使用封装方法 const AnimalService = require('../service/AnimalService').default module.exports = function () { this.init = async (layer, L) => { this.animalService = new AnimalService({ L: L, layer: layer }) } this.bindTooltip = (layer) => { return 'layer' } this.click = () => { window.$layer.open({ content: { content: 'Popup', // 组件 data: { // 传递的参数 datas: 'popupDatas' } }, title: '' }) } }