From 2608eed56583d363cdb57781bbbe787d7a762743 Mon Sep 17 00:00:00 2001
From: Enzo <1284707383@qq.com>
Date: Mon, 11 Oct 2021 11:43:02 +0800
Subject: [PATCH 1/2] =?UTF-8?q?=E7=80=91=E5=B8=83=E6=B5=81=E6=9B=BF?=
=?UTF-8?q?=E6=8D=A2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../lf-waterfall-shopdetails/lf-waterfall.vue | 6 +-
components/shopList/shopList.vue | 181 ++++++++++++++++++
pages/shop/searchList.vue | 11 +-
3 files changed, 192 insertions(+), 6 deletions(-)
create mode 100644 components/shopList/shopList.vue
diff --git a/components/lf-waterfall-shopdetails/lf-waterfall.vue b/components/lf-waterfall-shopdetails/lf-waterfall.vue
index 5456268..25b9495 100644
--- a/components/lf-waterfall-shopdetails/lf-waterfall.vue
+++ b/components/lf-waterfall-shopdetails/lf-waterfall.vue
@@ -89,9 +89,13 @@
get() {
console.log('组件当前数据====',this.list)
console.log(this.ifsale)
+ this.$forceUpdate();
return this.list;
},
- set(newValue) { console.log('newvalue',newValue) }
+ set(newValue) {
+ this.$forceUpdate();
+ console.log('newvalue',newValue)
+ }
},
},
// watch: {
diff --git a/components/shopList/shopList.vue b/components/shopList/shopList.vue
new file mode 100644
index 0000000..99a17ff
--- /dev/null
+++ b/components/shopList/shopList.vue
@@ -0,0 +1,181 @@
+
+
+
+
+
+
+
+ {{item.title}}
+
+
+
+
+ {{item.original_price}}
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/shop/searchList.vue b/pages/shop/searchList.vue
index 401e84c..d5febe5 100644
--- a/pages/shop/searchList.vue
+++ b/pages/shop/searchList.vue
@@ -16,8 +16,8 @@
-
-
+
+