diff --git a/components/diy-components/diy-goods-brand.vue b/components/diy-components/diy-goods-brand.vue index 19ae67c..ba55960 100644 --- a/components/diy-components/diy-goods-brand.vue +++ b/components/diy-components/diy-goods-brand.vue @@ -6,7 +6,7 @@ - + @@ -19,6 +19,8 @@ import uniGrid from '@/components/uni-grid/uni-grid.vue'; import uniGridItem from '@/components/uni-grid-item/uni-grid-item.vue'; + import DiyMinx from './minx.js' + export default { name: 'diy-goods-brand', props: { @@ -47,6 +49,7 @@ created() { this.getBrandList(); }, + mixins: [DiyMinx], watch: { // 组件刷新监听 componentRefresh: function(nval) { @@ -113,7 +116,13 @@ }, imgError(index) { if (this.list[index]) this.list[index].image_url = this.$util.getDefaultImage().goods; - } + }, + async handlerClick(item) { + await this.__$emitEvent({eventName: 'goods-brand-tap', data: item, promiseCallback: (event, handler, awaitedResult) => { + if (!awaitedResult) return; + this.toDetail(item); + }}) + }, } }; diff --git a/components/diy-components/diy-goods-list.vue b/components/diy-components/diy-goods-list.vue index 53f3f1f..6c51676 100644 --- a/components/diy-components/diy-goods-list.vue +++ b/components/diy-components/diy-goods-list.vue @@ -2,7 +2,7 @@ - + @@ -149,7 +149,7 @@ - + @@ -210,6 +210,7 @@ diff --git a/components/diy-components/diy-live.vue b/components/diy-components/diy-live.vue index 4a3972c..97387d0 100644 --- a/components/diy-components/diy-live.vue +++ b/components/diy-components/diy-live.vue @@ -1,6 +1,6 @@