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

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