From 3cbe0263ea74048b63ccf2470585d58e0a9847ef Mon Sep 17 00:00:00 2001 From: ZF sun <34314687@qq.com> Date: Sat, 20 Dec 2025 15:41:32 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E4=BF=AE=E6=94=B9=E9=81=97=E7=95=99?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=E5=8D=95=E8=AF=8D=E6=8B=BC=E5=86=99=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/diy-components/diy-category-item.vue | 14 +++++++------- components/diy-components/diy-index-page.vue | 4 ++-- components/diy-components/diy-search.vue | 4 ++-- components/ns-navbar/ns-navbar.vue | 4 ++-- 4 files changed, 13 insertions(+), 13 deletions(-) diff --git a/components/diy-components/diy-category-item.vue b/components/diy-components/diy-category-item.vue index 8525792..4564cef 100644 --- a/components/diy-components/diy-category-item.vue +++ b/components/diy-components/diy-category-item.vue @@ -39,8 +39,8 @@ - 全部 - + 全部 + {{ one.category_name }} @@ -50,7 +50,7 @@ 全部 - + {{ one.category_name }} @@ -293,7 +293,7 @@ oneCategorySelect: function() { this.scrollTop = -1; this.goodsList = []; - this.selectCategoey(-1); + this.selectCategory(-1); }, select: function() { if (this.index == this.select) { @@ -607,7 +607,7 @@ } this.$emit('selectsku', data); }, - selectCategoey(index) { + selectCategory(index) { this.categoryId = index; this.pageIndex = 0; this.totalPage = 1; @@ -667,7 +667,7 @@ this.$emit('switch', index); } else { let index = this.categoryId - 1; - this.selectCategoey(index); + this.selectCategory(index); } } else { if (this.categoryId == -1 || (this.category.child_list && this.categoryId == this.category.child_list.length - 1)) { @@ -675,7 +675,7 @@ this.$emit('switch', index); } else { let index = this.categoryId + 1; - this.selectCategoey(index); + this.selectCategory(index); } } }, diff --git a/components/diy-components/diy-index-page.vue b/components/diy-components/diy-index-page.vue index 2ff0d8a..86abbaf 100644 --- a/components/diy-components/diy-index-page.vue +++ b/components/diy-components/diy-index-page.vue @@ -268,7 +268,7 @@ .exec(); }); - this.setModuleLocatinoFn(); + this.setModuleLocationFn(); }, methods: { initPageIndex() { @@ -415,7 +415,7 @@ this.isUnfold = !this.isUnfold; }, // 向vuex中的diyIndexPositionObj增加分类导航组件定位位置 - setModuleLocatinoFn() { + setModuleLocationFn() { const query = uni.createSelectorQuery().in(this); query.select('.nav-top-category') .boundingClientRect(data => { diff --git a/components/diy-components/diy-search.vue b/components/diy-components/diy-search.vue index 60b0033..463798a 100644 --- a/components/diy-components/diy-search.vue +++ b/components/diy-components/diy-search.vue @@ -175,7 +175,7 @@ }, mounted() { if (this.value.positionWay == 'fixed') - this.setModuleLocatinoFn(); + this.setModuleLocationFn(); }, methods: { search() { @@ -204,7 +204,7 @@ }); }, // 向vuex中的diyIndexPositionObj增加搜索组件定位位置 - setModuleLocatinoFn() { + setModuleLocationFn() { this.$nextTick(() => { const query = uni.createSelectorQuery().in(this); query.select('.diy-search-wrap') diff --git a/components/ns-navbar/ns-navbar.vue b/components/ns-navbar/ns-navbar.vue index 6667b50..963537f 100644 --- a/components/ns-navbar/ns-navbar.vue +++ b/components/ns-navbar/ns-navbar.vue @@ -152,7 +152,7 @@ export default { // this.navbarPlaceholderHeight(); }, mounted() { - // this.setModuleLocatinoFn(); + // this.setModuleLocationFn(); }, methods: { toLink(val) { @@ -191,7 +191,7 @@ export default { }); }, // 向vuex中的diyIndexPositionObj增加公告导航组件定位位置 - setModuleLocatinoFn() { + setModuleLocationFn() { const query = uni.createSelectorQuery().in(this); query.select('.ns-navbar-wrap .u-navbar') .boundingClientRect(data => {