mirror of
http://git.coreshop.cn/jianweie/coreshoppro.git
synced 2025-12-06 19:53:27 +08:00
【修复】修复品牌数量过多,导致筛选下拉列表部分被屏蔽的问题。
This commit is contained in:
@@ -42,14 +42,16 @@
|
||||
<view class="fliter-item-title-hd"><view class="fliter-item-title-hd-title">品牌</view></view>
|
||||
</view>
|
||||
<view class="fliter-i-c coreshop-flex-direction-row">
|
||||
<view v-for="item in brandList" :key="item.id" v-if="item.id && item.name" @click="selectKey('brandList', item.id)">
|
||||
<view class="fic-item" v-if="!item.isSelect">
|
||||
<view class="fic-item-text two-line">{{ item.name }}</view>
|
||||
<scroll-view style="max-height: 300px;" :scroll-top="scrollTop" scroll-y="true" class="scroll-Y" show-scrollbar="true">
|
||||
<view v-for="item in brandList" :key="item.id" v-if="item.id && item.name" @click="selectKey('brandList', item.id)">
|
||||
<view class="fic-item" v-if="!item.isSelect">
|
||||
<view class="fic-item-text two-line">{{ item.name }}</view>
|
||||
</view>
|
||||
<view class="fic-item fic-item-active" v-if="item.isSelect">
|
||||
<view class="fic-item-text two-line">{{ item.name }}</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="fic-item fic-item-active" v-if="item.isSelect">
|
||||
<view class="fic-item-text two-line">{{ item.name }}</view>
|
||||
</view>
|
||||
</view>
|
||||
</scroll-view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="fliter-item" v-if="labelList.length > 0">
|
||||
@@ -248,7 +250,6 @@
|
||||
//加载执行
|
||||
onLoad: function (options) {
|
||||
uni.showTabBar();
|
||||
//console.log(options);
|
||||
var where = {};
|
||||
if (options.id) {
|
||||
where.catId = options.id;
|
||||
@@ -331,7 +332,6 @@
|
||||
},
|
||||
//点击综合排序
|
||||
comprehensive: function (value) {
|
||||
//console.log('点击综合排序:' + value);
|
||||
if (value) {
|
||||
this.searchData.order = {
|
||||
key: 'sort',
|
||||
@@ -433,7 +433,6 @@
|
||||
_this.labelList = filter.labelIds;
|
||||
}
|
||||
}
|
||||
//console.log(_this.searchData);
|
||||
if (res.data.totalPages > _this.searchData.page) {
|
||||
_this.loadStatus = 'loadmore';
|
||||
_this.searchData.page++;
|
||||
@@ -615,7 +614,6 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (type == 'brandList') {
|
||||
for (let i = 0; i < this.brandList.length; i++) {
|
||||
if (this.brandList[i].id == id) {
|
||||
@@ -625,7 +623,6 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (type == 'labelList') {
|
||||
for (let i = 0; i < this.labelList.length; i++) {
|
||||
if (this.labelList[i].id == id) {
|
||||
@@ -635,7 +632,6 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
console.log(this.brandList);
|
||||
},
|
||||
closeDropdown() {
|
||||
this.$refs.uDropdown.close();
|
||||
|
||||
Reference in New Issue
Block a user