chore: 修改遗留代码单词拼写错误
This commit is contained in:
@@ -39,8 +39,8 @@
|
||||
<block v-if="category.child_list && value.goodsLevel == 2">
|
||||
<view class="screen-category-wrap">
|
||||
<scroll-view scroll-x="true" class="screen-category" :class="{ 'screen-category-4': value.template == 4 }" :scroll-with-animation="true" :scroll-into-view="scrollIntoView">
|
||||
<view class="item" id="category-2--1" :class="{ selected: categoryId == -1 }" @click="selectCategoey(-1)">全部</view>
|
||||
<view class="item" :id="'category-2-' + oneIndex" :class="{ selected: categoryId == oneIndex }" @click="selectCategoey(oneIndex)" v-for="(one, oneIndex) in category.child_list" :key="oneIndex">
|
||||
<view class="item" id="category-2--1" :class="{ selected: categoryId == -1 }" @click="selectCategory(-1)">全部</view>
|
||||
<view class="item" :id="'category-2-' + oneIndex" :class="{ selected: categoryId == oneIndex }" @click="selectCategory(oneIndex)" v-for="(one, oneIndex) in category.child_list" :key="oneIndex">
|
||||
{{ one.category_name }}
|
||||
</view>
|
||||
</scroll-view>
|
||||
@@ -50,7 +50,7 @@
|
||||
<view class="screen-category-popup" @click="$refs.screenCategoryPopup.close()">
|
||||
<scroll-view scroll-y="true" class="screen-category" :class="{ 'screen-category-4': value.template == 4 }">
|
||||
<view class="title">全部</view>
|
||||
<view class="item" :class="{ selected: categoryId == oneIndex }" @click="selectCategoey(oneIndex)" v-for="(one, oneIndex) in category.child_list" :key="oneIndex">
|
||||
<view class="item" :class="{ selected: categoryId == oneIndex }" @click="selectCategory(oneIndex)" v-for="(one, oneIndex) in category.child_list" :key="oneIndex">
|
||||
{{ one.category_name }}
|
||||
</view>
|
||||
</scroll-view>
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -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 => {
|
||||
|
||||
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user