import { getShareGuidePopupCopy, recordShareSuccess, } from '../../utils/shareGuide'; const popupCopy = getShareGuidePopupCopy(); Component({ options: {}, /** * 组件的属性列表 */ properties: { show: { type: Boolean, value: false, }, }, /** * 组件的初始数据 */ data: { unlockMessage: popupCopy.message, unlockHint: popupCopy.hint, }, /** * 组件的方法列表 */ methods: { /** 关闭弹窗 */ onClose() { this.triggerEvent('onClose'); }, /** 点击遮罩层关闭 */ onOverlayClick() { this.onClose(); }, /** 点击分享按钮 */ onShare() { recordShareSuccess(); this.triggerEvent('onShareSuccess'); }, }, });