// pages/agent/detail/delivery-info/delivery-info.js Component({ options: { addGlobalClass: true, multipleSlots: true }, /** * 组件的属性列表 */ properties: { orderInfo: { type: Object, value: null } }, /** * 组件的方法列表 */ methods: { clipboard: function () { wx.setClipboardData({ data: this.data.orderInfo.millDeliveryOrderId, success: function (res) { util.showToast('复制成功') } }) } } })