Commit c2c360fb57f5de863d49311a547281fe706654b0
1 parent
1635a675
优选首页积分商城添加跳转事件~
Showing
1 changed file
with
12 additions
and
2 deletions
src/pages/optimization2/optimization2.vue
| ... | ... | @@ -105,7 +105,7 @@ |
| 105 | 105 | <div class="list-box"> |
| 106 | 106 | |
| 107 | 107 | <!-- 商品展示样式 2 --> |
| 108 | - <goods-item-2 class="item" v-for="(item, index) in goodsLists" :key="index" @jump="toDiscountList(item)" | |
| 108 | + <goods-item-2 class="item" v-for="(item, index) in goodsLists" :key="index" @jump="pointsMore" | |
| 109 | 109 | :item="item" |
| 110 | 110 | pid="5"> |
| 111 | 111 | </goods-item-2> |
| ... | ... | @@ -626,8 +626,18 @@ |
| 626 | 626 | */ |
| 627 | 627 | pointsMore(item) { |
| 628 | 628 | |
| 629 | - console.log('pointsMore', item); | |
| 629 | + // 跳转封装 | |
| 630 | + if (typeof this.$parent.navBarJump === 'function') { | |
| 630 | 631 | |
| 632 | + // 设置跳转参数 | |
| 633 | + let params = { | |
| 634 | + url: 'pointsMall', | |
| 635 | + query: {} | |
| 636 | + }; | |
| 637 | + | |
| 638 | + // 页面跳转 | |
| 639 | + this.$parent.navBarJump(params); | |
| 640 | + } | |
| 631 | 641 | }, |
| 632 | 642 | |
| 633 | 643 | /** | ... | ... |