|
@@ -62,7 +62,7 @@
|
|
|
:scroll-with-animation="true"
|
|
:scroll-with-animation="true"
|
|
|
>
|
|
>
|
|
|
<view class="goods-category-section" :id="category.scrollId" v-for="category in filteredGoods" :key="category.id">
|
|
<view class="goods-category-section" :id="category.scrollId" v-for="category in filteredGoods" :key="category.id">
|
|
|
- <view class="category-title">{{ category.name }}</view>
|
|
|
|
|
|
|
+ <!-- <view class="category-title">{{ category.name }}</view> -->
|
|
|
<u-checkbox-group v-model="selectedGoods" placement="column">
|
|
<u-checkbox-group v-model="selectedGoods" placement="column">
|
|
|
<view class="goods-box" v-for="goods in category.items" :key="goods.id">
|
|
<view class="goods-box" v-for="goods in category.items" :key="goods.id">
|
|
|
<view class="goods-card">
|
|
<view class="goods-card">
|
|
@@ -221,6 +221,7 @@ export default {
|
|
|
// 审核状态: 0 审核中, 1 已审核, 2 驳回
|
|
// 审核状态: 0 审核中, 1 已审核, 2 驳回
|
|
|
// reviewStatus: 0,
|
|
// reviewStatus: 0,
|
|
|
name: this.queryName,
|
|
name: this.queryName,
|
|
|
|
|
+ category: this.currentCategoryTab + 1,
|
|
|
}
|
|
}
|
|
|
// 售卖中
|
|
// 售卖中
|
|
|
if (this.currentStatusTab == 0) {
|
|
if (this.currentStatusTab == 0) {
|
|
@@ -421,6 +422,10 @@ export default {
|
|
|
// 核心功能 1: 点击左侧二级分类,右侧商品列表滚动到对应位置
|
|
// 核心功能 1: 点击左侧二级分类,右侧商品列表滚动到对应位置
|
|
|
onCategoryTabChange(index) {
|
|
onCategoryTabChange(index) {
|
|
|
this.currentCategoryTab = index;
|
|
this.currentCategoryTab = index;
|
|
|
|
|
+
|
|
|
|
|
+ this.onClearSel();
|
|
|
|
|
+ this.getData();
|
|
|
|
|
+ return;
|
|
|
|
|
|
|
|
// 1. 设置标记,在滚动动画期间忽略 onGoodsScroll,防止快速切换闪烁
|
|
// 1. 设置标记,在滚动动画期间忽略 onGoodsScroll,防止快速切换闪烁
|
|
|
this.isScrolling = true;
|
|
this.isScrolling = true;
|