fix:修复首页搜索商品重复的问题

parent a6e4fb7c
...@@ -128,39 +128,35 @@ ...@@ -128,39 +128,35 @@
v-for="(item, index) in searchList" v-for="(item, index) in searchList"
:key="index" :key="index"
> >
<template <navigator
v-for="(search, searchidx) in item" class="list-item mb-3 ml-3"
hover-class="none"
v-for="good in item"
:key="good.goods_id"
:url="'/pages/goods/detail?goods_id=' + good.goods_id"
> >
<navigator <image
class="list-item mb-3 ml-3" lazy-load
hover-class="none" class="goods_cover w-100"
v-for="good in item" :src="baseUrl + '/' + good.goods_thumb"
:key="good.goods_id" mode="aspectFit"
:url="'/pages/goods/detail?goods_id=' + good.goods_id" />
> <view class="goods-info flex flex-column j-between">
<image <view class="title font-28 my-1">{{good.goods_name}}</view>
lazy-load <view class="flex j-between a-center mt-1 mb-2">
class="goods_cover w-100" <price
:src="baseUrl + '/' + good.goods_thumb" :is_inquiry="good.is_inquiry"
mode="aspectFit" :price="good.shop_price"
/> />
<view class="goods-info flex flex-column j-between"> <image
<view class="title font-28 my-1">{{good.goods_name}}</view> class="cart-btn"
<view class="flex j-between a-center mt-1 mb-2"> @click.stop="handlePop(good)"
<price src="/static/images/common/icon-cart.png"
:is_inquiry="good.is_inquiry" mode="aspectFit"
:price="good.shop_price" />
/>
<image
class="cart-btn"
@click.stop="handlePop(good)"
src="/static/images/common/icon-cart.png"
mode="aspectFit"
/>
</view>
</view> </view>
</navigator> </view>
</template> </navigator>
</block> </block>
</view> </view>
</view> </view>
......
...@@ -83,13 +83,13 @@ ...@@ -83,13 +83,13 @@
<!-- 功能与服务 --> <!-- 功能与服务 -->
<view class="server-wrap"> <view class="server-wrap">
<view class="title font-28 font-bold pt-3">功能与服务</view> <view class="title font-28 font-bold pt-3">功能与服务</view>
<view <!-- <view
class="server-item font-28 flex j-between a-center py-3" class="server-item font-28 flex j-between a-center py-3"
@click="nav('news')" @click="nav('news')"
> >
<text>消息中心</text> <text>消息中心</text>
<icon class="right_arrow" /> <icon class="right_arrow" />
</view> </view> -->
<view <view
class="server-item font-28 flex j-between a-center py-3" class="server-item font-28 flex j-between a-center py-3"
@click="phoneCall" @click="phoneCall"
......
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