// compontents/share/share.js Component({ /** * 组件的属性列表 */ properties: { }, /** * 组件的初始数据 */ data: { <<<<<<< HEAD flag: true, postId: '', ======= >>>>>>> d311ba85855d9833139d43ef0f7038e08d5d9599 }, /** * 组件的方法列表 */ methods: { <<<<<<< HEAD //隐藏分享框 hidePopup: function () { this.setData({ flag: !this.data.flag }) }, //展示分享框 showPopup (postId) { this.setData({ flag: !this.data.flag, postId }) }, } ======= } >>>>>>> d311ba85855d9833139d43ef0f7038e08d5d9599 })