Commit 3fb01edd authored by fwz's avatar fwz

商城商品搜索跳转详情

parent 7578385a
......@@ -9,7 +9,7 @@
<u-search placeholder="请输入商品" :showAction='false' bgColor='#ffffff' v-model="keyword" @search="searchCommodity"></u-search>
</div>
<div class="list">
<div class="list__item" v-for="(vo,inx) in items" :key="inx">
<div class="list__item" v-for="(vo,inx) in items" :key="inx" @click="goDetail(vo.id)">
<div class="list__img">
<!-- <image :src="vo.img" /> -->
<image :src="vo.mainImgUrl" style="width: 160rpx;height: 160rpx;"></image>
......@@ -59,6 +59,11 @@ export default {
}
})
},
goDetail(id) {
uni.navigateTo({
url: '/pagesC/pages/shop/detail?id=' + id
})
},
},
}
</script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment