const _app = getApp() Component({ properties: { show: { type: Boolean, value: false, }, type: String, params: { type: Object, value() { return {} }, }, }, data: { popup1Check1: false, }, methods: { handleOk() { const { type } = this.data if (type === 'argument' && !this.data.popup1Check1) { wx.showToast({ title: '请同意隐私政策', icon: 'none', }) return } this.triggerEvent('ok') }, handleCancel() { this.triggerEvent('cancel') }, }, })