From be148412c07a23511453d3319e635bcaee53aaf0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E6=AE=BF=E6=98=95?= Date: Thu, 12 Nov 2020 13:23:44 +0800 Subject: [PATCH] =?UTF-8?q?=E6=88=90=E5=A4=A9=E5=8E=BB=E5=BC=80=E5=8F=91?= =?UTF-8?q?=E5=88=86=E6=94=AF=E6=BC=94=E7=A4=BA=E4=BB=80=E4=B9=88=E6=84=8F?= =?UTF-8?q?=E6=80=9D=EF=BC=9F=E5=86=99=E5=AE=8C=E5=B0=B1=E5=9B=9E=E6=BB=9A?= =?UTF-8?q?=EF=BC=9F=E6=88=91=E8=BF=98=E5=BC=80=E5=8F=91=E4=BB=80=E4=B9=88?= =?UTF-8?q?=EF=BC=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service-list/commodity-card copy.vue | 223 ++ .../service-list/commodity-card.vue | 302 +-- .../service-list/commodity-cell copy.vue | 234 ++ .../service-list/commodity-cell.vue | 256 +- .../service-list/commodity-list copy.vue | 206 ++ .../service-list/commodity-list.vue | 66 +- .../service-list/service_list copy.vue | 817 ++++++ src/components/service-list/service_list.vue | 255 +- .../service-list/service_shop_menu.vue | 65 +- .../service-list/service_shop_menu_copy.vue | 158 ++ src/components/shop-cloud/shop-cloud copy.vue | 2327 +++++++++++++++++ src/components/shop-cloud/shop-cloud.vue | 1181 ++++----- src/pages/service_shop/shop_cloud copy.vue | 36 + src/pages/service_shop/shop_cloud.vue | 16 +- src/pages/service_shop/shop_list copy.vue | 134 + src/pages/service_shop/shop_list.vue | 12 +- 16 files changed, 5125 insertions(+), 1163 deletions(-) create mode 100644 src/components/service-list/commodity-card copy.vue create mode 100644 src/components/service-list/commodity-cell copy.vue create mode 100644 src/components/service-list/commodity-list copy.vue create mode 100644 src/components/service-list/service_list copy.vue create mode 100644 src/components/service-list/service_shop_menu_copy.vue create mode 100644 src/components/shop-cloud/shop-cloud copy.vue create mode 100644 src/pages/service_shop/shop_cloud copy.vue create mode 100644 src/pages/service_shop/shop_list copy.vue diff --git a/src/components/service-list/commodity-card copy.vue b/src/components/service-list/commodity-card copy.vue new file mode 100644 index 0000000..f369fd8 --- /dev/null +++ b/src/components/service-list/commodity-card copy.vue @@ -0,0 +1,223 @@ + + + + + + \ No newline at end of file diff --git a/src/components/service-list/commodity-card.vue b/src/components/service-list/commodity-card.vue index f369fd8..54e46cc 100644 --- a/src/components/service-list/commodity-card.vue +++ b/src/components/service-list/commodity-card.vue @@ -1,73 +1,42 @@ - \ No newline at end of file + diff --git a/src/components/service-list/commodity-cell copy.vue b/src/components/service-list/commodity-cell copy.vue new file mode 100644 index 0000000..3346760 --- /dev/null +++ b/src/components/service-list/commodity-cell copy.vue @@ -0,0 +1,234 @@ + + + + + + \ No newline at end of file diff --git a/src/components/service-list/commodity-cell.vue b/src/components/service-list/commodity-cell.vue index 3346760..5f0c862 100644 --- a/src/components/service-list/commodity-cell.vue +++ b/src/components/service-list/commodity-cell.vue @@ -1,70 +1,52 @@ @@ -94,87 +76,94 @@ export default { \ No newline at end of file + diff --git a/src/components/service-list/commodity-list copy.vue b/src/components/service-list/commodity-list copy.vue new file mode 100644 index 0000000..e8238e6 --- /dev/null +++ b/src/components/service-list/commodity-list copy.vue @@ -0,0 +1,206 @@ + + + + + + \ No newline at end of file diff --git a/src/components/service-list/commodity-list.vue b/src/components/service-list/commodity-list.vue index e8238e6..4b75f20 100644 --- a/src/components/service-list/commodity-list.vue +++ b/src/components/service-list/commodity-list.vue @@ -1,20 +1,20 @@ @@ -286,22 +266,19 @@ export default { }, ], page: 1, - limit: 20, + limit: 10, couldTwice: false, refresh_app_1: false, refresh_app_2: false, refresh_app_3: false, time_app: null, times: null, - isKaiGuan: true, }), mounted() { window.addEventListener("resize", this.judgeHeight); - window.addEventListener("scroll", this.menu, true); }, destroyed() { window.removeEventListener("resize", this.judgeHeight); - window.removeEventListener("scroll", this.menu, true); }, watch: { urlFilter: { @@ -356,41 +333,7 @@ export default { }, }, methods: { - menu() { - if (this.isKaiGuan) { - let scroll = - this.getScrollTop() + this.getWindowHeight() - this.getScrollHeight(); - if (scroll > -10) { - if ( - (this.total != 0 && this.page * this.limit < this.total) || - this.total == 0 - ) { - this.page++; - this.getShopList(); - } - } - } - }, - //滚动条在Y轴上的滚动距离 - getScrollTop() { - var documentScrollTop = 0; - documentScrollTop = document.documentElement.scrollTop; - return documentScrollTop; - }, - //文档的总高度 - getScrollHeight() { - var documentScrollHeight = 0; - documentScrollHeight = document.documentElement.scrollHeight; - return documentScrollHeight; - }, - //浏览器视口的高度 - getWindowHeight() { - var windowHeight = 0; - windowHeight = document.documentElement.clientHeight; - return windowHeight; - }, getShopList() { - this.isKaiGuan = false; if (this.urlFilter == "app") { let query = { online_state: this.activeOptions[0].join(","), @@ -412,12 +355,8 @@ export default { }; this.$api.serviceShop.getAppList(query).then((response) => { if (response.data.success == "1") { - this.lists = - this.page == 1 - ? response.data.data - : this.lists.concat(response.data.data); + this.lists = response.data.data; this.total = response.data.total; - this.isKaiGuan = true; } else { console.log(response.data.errMsg); } @@ -436,12 +375,8 @@ export default { }; this.$api.serviceShop.getServiceShopList(query).then((response) => { if (response.data.success == "1") { - this.lists = - this.page == 1 - ? response.data.data - : this.lists.concat(response.data.data); + this.lists = response.data.data; this.total = response.data.total; - this.isKaiGuan = true; } else { console.log(response.data.errMsg); } @@ -557,7 +492,6 @@ export default { }, clickButtonFilter(index) { this.activeBtn = index; - this.page = 1; this.getShopList(); }, clickChildren(id, index, fatherId) { @@ -574,27 +508,23 @@ export default { this.getFilterValue(); }, getFilterValue() { - this.page = 1; this.getShopList(); }, // search debonce 500ms searchVal() { if (this.times !== null) clearTimeout(this.times); this.times = setTimeout(() => { - this.page = 1; this.getShopList(); }, 500); }, getNewList(val) { - console.log(val); - this.page = 1; - this.limit = 20; + this.page = val.page; + this.limit = val.rowsPerPage; this.getShopList(); }, clickAll(item) { this.$set(this.activeOptions, item, []); this.$set(this.activeChildOptions, item, []); - this.page = 1; this.getShopList(); }, changeTwice() { @@ -637,18 +567,12 @@ export default { .head_flex { display: flex; justify-content: space-between; - position: relative; - height: 40px; - top: -14px; } .bread_left { width: 300px; } .input_right { width: 360px; - position: relative; - height: 36px; - top: 6px; } .gray_line { width: 100%; @@ -656,9 +580,6 @@ export default { height: 1px; background-color: #e9ecf3; } -.classification { - padding: 12px 16px 12px 32px; -} .classification_line { width: 100%; } @@ -669,20 +590,19 @@ export default { } .classification_line_title { display: inline-block; - width: 90px; - padding: 12px 0; - text-align: left; + width: 130px; + padding: 15px 0; + text-align: right; color: #8890a7; - font-size: 12px; } .classification_line_items { - width: calc(100% - 90px); + width: calc(100% - 130px); } .classification_line_items_border { border-bottom: 1px #e9ecf3 solid; } .classification_line_hid { - height: 40px; + height: 50px; width: 100%; overflow: hidden; display: inline-flex; @@ -695,13 +615,13 @@ export default { } .classification_line_items_ul { display: inline-block; - width: calc(100% - 30px); + width: calc(100% - 50px); font-size: 0; } .classification_line_items_li { display: inline-block; - padding: 12px 18px; - font-size: 12px; + padding: 15px 20px; + font-size: 14px; } .classification_line_items_li_act { background-color: #fbfbfb; @@ -714,28 +634,14 @@ export default { cursor: pointer; } .classification_act { - color: #fff; - position: relative; - z-index: 1; -} -.classification_act::after { - content: ""; - position: absolute; - width: calc(100% + 16px); - height: calc(100% + 8px); - background-color: #3f4f9c; - border-radius: 3px; - top: -4px; - left: -8px; - z-index: -1; + font-weight: 700; + color: #515fe7; } .classification_line_items_open { display: inline-block; width: 60px; - padding: 12px 0; + padding: 15px 0; cursor: pointer; - font-size: 12px; - text-align: right; } .classification_children_ul { display: inline-block; @@ -745,35 +651,35 @@ export default { } .classification_children_li { display: inline-block; - padding: 12px 18px; + padding: 15px 20px; color: #58617a; } .button_filter { - color: #8890a7; + background-color: #e6eefe; + color: #626de9; + border: 1px solid #e6eefe; font-size: 12px; - display: inline-block; - margin-right: 31px; - position: relative; } -.button_filter::after { - content: ""; - width: 1px; - height: 16px; - background-color: #e3e5ef; - position: absolute; - right: -15px; +.button_filter:hover { + border: 1px solid rgb(198, 226, 255); } -.button_filter:nth-child(4):after { - content: ""; - width: 0; +.button_filter:focus { + border: 1px solid rgb(58, 142, 230); } .button_filter_act { - color: #515fe7; + background-color: #515fe7; + border: 1px solid #515fe7; + color: #f8f9fd; + font-size: 12px; +} +.button_filter_act:hover { + border: 1px solid #414fd7; +} +.button_filter_act:focus { + border: 1px solid #313fc7; } .btn_group { - margin-top: 15px; margin-bottom: 15px; - margin-left: 15px; position: relative; } .btn_right_check { @@ -784,8 +690,7 @@ export default { diff --git a/src/components/service-list/service_shop_menu_copy.vue b/src/components/service-list/service_shop_menu_copy.vue new file mode 100644 index 0000000..20fe089 --- /dev/null +++ b/src/components/service-list/service_shop_menu_copy.vue @@ -0,0 +1,158 @@ + + + + + diff --git a/src/components/shop-cloud/shop-cloud copy.vue b/src/components/shop-cloud/shop-cloud copy.vue new file mode 100644 index 0000000..ec68245 --- /dev/null +++ b/src/components/shop-cloud/shop-cloud copy.vue @@ -0,0 +1,2327 @@ + + + + + + diff --git a/src/components/shop-cloud/shop-cloud.vue b/src/components/shop-cloud/shop-cloud.vue index ec68245..8fa0e6a 100644 --- a/src/components/shop-cloud/shop-cloud.vue +++ b/src/components/shop-cloud/shop-cloud.vue @@ -1,10 +1,10 @@