From 88c0598d36fb0cb00ec272b1343eea3ef4aaca86 Mon Sep 17 00:00:00 2001 From: mullins <476823686@qq.com> Date: Mon, 8 Jun 2020 15:10:21 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=A6=E6=83=85=E9=A1=B5=E5=8F=82=E6=95=B0?= =?UTF-8?q?=E9=80=89=E6=8B=A9=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/CommodityCard/CommodityCard.vue | 25 +++++----- src/pages/details/details.vue | 69 ++++++++++++++++++++++---- src/store/modules/details.js | 6 ++- 3 files changed, 77 insertions(+), 23 deletions(-) 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 {