From 3bd052001268a91b640174c32c24bc29b784afc3 Mon Sep 17 00:00:00 2001 From: Junling Bu Date: Sat, 18 Aug 2018 16:07:34 +0800 Subject: [PATCH] =?UTF-8?q?fix[litemall-wx]:=20=E4=BB=8Eid=E6=98=AFL1?= =?UTF-8?q?=E5=88=86=E7=B1=BBid=E6=97=B6=EF=BC=8C=E5=88=86=E7=B1=BB?= =?UTF-8?q?=E5=95=86=E5=93=81=E4=BF=A1=E6=81=AF=E5=BA=94=E8=AF=A5=E9=87=8D?= =?UTF-8?q?=E6=96=B0=E8=AE=BE=E7=BD=AE=E8=AF=A5L1=E5=88=86=E7=B1=BB?= =?UTF-8?q?=E7=9A=84=E5=AD=90=E5=88=86=E7=B1=BBid?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- litemall-wx/pages/category/category.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/litemall-wx/pages/category/category.js b/litemall-wx/pages/category/category.js index 3f824bfd..2aa3196e 100644 --- a/litemall-wx/pages/category/category.js +++ b/litemall-wx/pages/category/category.js @@ -49,6 +49,13 @@ Page({ title: res.data.parentCategory.name }) + // 当id是L1分类id时,这里需要重新设置成L1分类的一个子分类的id + if (res.data.parentCategory.id == that.data.id) { + that.setData({ + id: res.data.currentCategory.id + }); + } + //nav位置 let currentIndex = 0; let navListCount = that.data.navList.length;