Component({ options: { addGlobalClass: true, multipleSlots: true, styleIsolation: 'shared', }, properties: { data: { type: Array, value: [], }, layout: { type: String, value: 'vertical', // horizontal / vertical }, thumbMode: { type: String, value: 'aspectFit', }, thumbWidth: String, thumbHeight: String, lazyLoad: { type: Boolean, value: true, }, }, methods: { async onClickGoodsCard(e: WechatMiniprogram.TouchEvent) { // const { row } = e.detail; const { index, row } = e.currentTarget.dataset; this.triggerEvent('click', { ...row, index }); // TODO: 临时跳转处理 await wx.navigateTo({ url: '/pages/goods-details/index' }); }, }, });