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 => {