From 1aeec348eb47f13331451cd8bff369d32e22a650 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?lemon=E6=A9=AA?= <17633066053@163.com> Date: Fri, 8 Jul 2022 17:43:04 +0800 Subject: [PATCH] =?UTF-8?q?=E9=AB=98=E4=BA=AE=E6=90=9C=E7=B4=A2=E7=83=AD?= =?UTF-8?q?=E8=AF=8D=EF=BC=8C=E4=BF=AE=E6=94=B9=E5=88=86=E9=94=80=E9=83=A8?= =?UTF-8?q?=E5=88=86=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/m-goods-list/README.md | 1 + components/m-goods-list/list.vue | 69 ++++++++++++++++++++++---- pages/mine/distribution/history.vue | 1 - pages/navigation/search/searchPage.vue | 4 +- 4 files changed, 63 insertions(+), 12 deletions(-) diff --git a/components/m-goods-list/README.md b/components/m-goods-list/README.md index 74fa4c2..bade838 100644 --- a/components/m-goods-list/README.md +++ b/components/m-goods-list/README.md @@ -7,4 +7,5 @@ | `res` | 显示数据 | Array | 是 | | `type` | 商品展示类型 oneColumns twoColumns ,默认展示一行两列商品 | String | 否 | | `storeName` | 是否展示店铺名称,默认展示 | Boolean | 否 | +| `keywords` | 高亮展示搜索内容 | String | 否 | diff --git a/components/m-goods-list/list.vue b/components/m-goods-list/list.vue index 55446b7..18b4a53 100644 --- a/components/m-goods-list/list.vue +++ b/components/m-goods-list/list.vue @@ -4,12 +4,15 @@ - - + + -
{{ item.content.goodsName }}
+
+ +
¥{{ formatPrice(item.content.price )[0] }} .{{ @@ -32,10 +35,10 @@ {{ item.content.commentNum || "0" }}条评论
-
+
- {{ item.content.storeName || "暂无" }} + {{ item.content.storeName || "暂无" }}
@@ -62,9 +65,9 @@ }}
-
-
- +
+
+
@@ -100,7 +103,9 @@