product-item.js 301 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 import router from '../router/router' Component({ properties: { product: { type: Object }, tabIdx: String }, methods: { goDetail() { router.go('detail', { tabIdx: +this.data.tabIdx + 1, actPrizeId: this.properties.product.id }); } } });