chore: 修改遗留代码单词拼写错误
This commit is contained in:
@@ -39,8 +39,8 @@
|
|||||||
<block v-if="category.child_list && value.goodsLevel == 2">
|
<block v-if="category.child_list && value.goodsLevel == 2">
|
||||||
<view class="screen-category-wrap">
|
<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">
|
<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--1" :class="{ selected: categoryId == -1 }" @click="selectCategory(-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-' + oneIndex" :class="{ selected: categoryId == oneIndex }" @click="selectCategory(oneIndex)" v-for="(one, oneIndex) in category.child_list" :key="oneIndex">
|
||||||
{{ one.category_name }}
|
{{ one.category_name }}
|
||||||
</view>
|
</view>
|
||||||
</scroll-view>
|
</scroll-view>
|
||||||
@@ -50,7 +50,7 @@
|
|||||||
<view class="screen-category-popup" @click="$refs.screenCategoryPopup.close()">
|
<view class="screen-category-popup" @click="$refs.screenCategoryPopup.close()">
|
||||||
<scroll-view scroll-y="true" class="screen-category" :class="{ 'screen-category-4': value.template == 4 }">
|
<scroll-view scroll-y="true" class="screen-category" :class="{ 'screen-category-4': value.template == 4 }">
|
||||||
<view class="title">全部</view>
|
<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 }}
|
{{ one.category_name }}
|
||||||
</view>
|
</view>
|
||||||
</scroll-view>
|
</scroll-view>
|
||||||
@@ -293,7 +293,7 @@
|
|||||||
oneCategorySelect: function() {
|
oneCategorySelect: function() {
|
||||||
this.scrollTop = -1;
|
this.scrollTop = -1;
|
||||||
this.goodsList = [];
|
this.goodsList = [];
|
||||||
this.selectCategoey(-1);
|
this.selectCategory(-1);
|
||||||
},
|
},
|
||||||
select: function() {
|
select: function() {
|
||||||
if (this.index == this.select) {
|
if (this.index == this.select) {
|
||||||
@@ -607,7 +607,7 @@
|
|||||||
}
|
}
|
||||||
this.$emit('selectsku', data);
|
this.$emit('selectsku', data);
|
||||||
},
|
},
|
||||||
selectCategoey(index) {
|
selectCategory(index) {
|
||||||
this.categoryId = index;
|
this.categoryId = index;
|
||||||
this.pageIndex = 0;
|
this.pageIndex = 0;
|
||||||
this.totalPage = 1;
|
this.totalPage = 1;
|
||||||
@@ -667,7 +667,7 @@
|
|||||||
this.$emit('switch', index);
|
this.$emit('switch', index);
|
||||||
} else {
|
} else {
|
||||||
let index = this.categoryId - 1;
|
let index = this.categoryId - 1;
|
||||||
this.selectCategoey(index);
|
this.selectCategory(index);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (this.categoryId == -1 || (this.category.child_list && this.categoryId == this.category.child_list.length - 1)) {
|
if (this.categoryId == -1 || (this.category.child_list && this.categoryId == this.category.child_list.length - 1)) {
|
||||||
@@ -675,7 +675,7 @@
|
|||||||
this.$emit('switch', index);
|
this.$emit('switch', index);
|
||||||
} else {
|
} else {
|
||||||
let index = this.categoryId + 1;
|
let index = this.categoryId + 1;
|
||||||
this.selectCategoey(index);
|
this.selectCategory(index);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -268,7 +268,7 @@
|
|||||||
.exec();
|
.exec();
|
||||||
});
|
});
|
||||||
|
|
||||||
this.setModuleLocatinoFn();
|
this.setModuleLocationFn();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
initPageIndex() {
|
initPageIndex() {
|
||||||
@@ -415,7 +415,7 @@
|
|||||||
this.isUnfold = !this.isUnfold;
|
this.isUnfold = !this.isUnfold;
|
||||||
},
|
},
|
||||||
// 向vuex中的diyIndexPositionObj增加分类导航组件定位位置
|
// 向vuex中的diyIndexPositionObj增加分类导航组件定位位置
|
||||||
setModuleLocatinoFn() {
|
setModuleLocationFn() {
|
||||||
const query = uni.createSelectorQuery().in(this);
|
const query = uni.createSelectorQuery().in(this);
|
||||||
query.select('.nav-top-category')
|
query.select('.nav-top-category')
|
||||||
.boundingClientRect(data => {
|
.boundingClientRect(data => {
|
||||||
|
|||||||
@@ -175,7 +175,7 @@
|
|||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
if (this.value.positionWay == 'fixed')
|
if (this.value.positionWay == 'fixed')
|
||||||
this.setModuleLocatinoFn();
|
this.setModuleLocationFn();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
search() {
|
search() {
|
||||||
@@ -204,7 +204,7 @@
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 向vuex中的diyIndexPositionObj增加搜索组件定位位置
|
// 向vuex中的diyIndexPositionObj增加搜索组件定位位置
|
||||||
setModuleLocatinoFn() {
|
setModuleLocationFn() {
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
const query = uni.createSelectorQuery().in(this);
|
const query = uni.createSelectorQuery().in(this);
|
||||||
query.select('.diy-search-wrap')
|
query.select('.diy-search-wrap')
|
||||||
|
|||||||
@@ -152,7 +152,7 @@ export default {
|
|||||||
// this.navbarPlaceholderHeight();
|
// this.navbarPlaceholderHeight();
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
// this.setModuleLocatinoFn();
|
// this.setModuleLocationFn();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
toLink(val) {
|
toLink(val) {
|
||||||
@@ -191,7 +191,7 @@ export default {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 向vuex中的diyIndexPositionObj增加公告导航组件定位位置
|
// 向vuex中的diyIndexPositionObj增加公告导航组件定位位置
|
||||||
setModuleLocatinoFn() {
|
setModuleLocationFn() {
|
||||||
const query = uni.createSelectorQuery().in(this);
|
const query = uni.createSelectorQuery().in(this);
|
||||||
query.select('.ns-navbar-wrap .u-navbar')
|
query.select('.ns-navbar-wrap .u-navbar')
|
||||||
.boundingClientRect(data => {
|
.boundingClientRect(data => {
|
||||||
|
|||||||
Reference in New Issue
Block a user