diff --git a/src/components/CommodityCard/CommodityCard.vue b/src/components/CommodityCard/CommodityCard.vue index 7cce3d2..3ade7d2 100644 --- a/src/components/CommodityCard/CommodityCard.vue +++ b/src/components/CommodityCard/CommodityCard.vue @@ -3,11 +3,13 @@ class="card" @tap="toGoods(goods.id?goods.id:goods.pid,goods.sk_id)" > - - @@ -29,7 +31,7 @@ import easyLoadimage from '@/components/EasyLoadimage/EasyLoadimage.vue' // const MockData = require('@/static/easy-loadimage/mock-data.json') export default { - components:{easyLoadimage}, + components: { easyLoadimage }, props: { /** * 商品数据 @@ -44,22 +46,22 @@ export default { trade_num: String, goodType: String, }, - scrollTop:Number, - viewHeight:Number, + scrollTop: Number, + viewHeight: Number, }, created () { }, data () { return { - + } }, methods: { toGoods (id, skId) { - console.log('---', '../frameDetail/frameDetail?pid=' + id + '&sk_id=' + skId) + console.log('---', '../details/details?pid=' + id + '&sk_id=' + skId) uni.navigateTo({ - url: '../frameDetail/frameDetail?pid=' + id + '&sk_id=' + skId, + url: '../details/details?pid=' + id + '&sk_id=' + skId, success: res => {}, fail: () => {}, complete: () => {}, @@ -70,7 +72,6 @@ export default {