// selectTopCategory方法修改
selectTopCategory: function (e) {
var index = parseInt(e.currentTarget.dataset.index);
if (this.selectedTopCategoryIndex !== index) {
this.selectedTopCategoryIndex = index;
this.loadSubCategories();
this.index_1 = 0; // 重置子分类选中索引
// 重置分页状态 - 新增
this.page = 0;
this.canLoad = true;
this.goTop();
// 自动加载第一个子分类的商品 - 注释说明
this.getGoods();
}
}