From 74d7ebadac6781fc72e07ad77cce7bac0dce337d Mon Sep 17 00:00:00 2001 From: taiyuan Date: Fri, 2 Apr 2021 16:58:29 +0800 Subject: [PATCH] 增加分销入口 --- app.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/app.js b/app.js index e712a88..f5e353a 100644 --- a/app.js +++ b/app.js @@ -20,6 +20,12 @@ App({ "src_sele": t.imghost+"/miniapp/images/bar/fl_on.png" }, { + "weappurl": "packageA/pages/distribution/main/main", + "nav_name": "分销", + "src": t.imghost+"/miniapp/images/bar/fx.png", + "src_sele": t.imghost+"/miniapp/images/bar/fx_on.png" + }, + { "weappurl": "pages/cart/cart/cart", "nav_name": "购物车", "src": t.imghost+"/miniapp/images/bar/car.png", @@ -358,10 +364,12 @@ App({ if(arr.length>8){ arr.splice(0, 2); } - var arr_tabbar=["/pages/index/index/index","/pages/goods/categoryList/categoryList", + var arr_tabbar=["/pages/index/index/index", + "/pages/goods/categoryList/categoryList", "/pages/goods/categoryList/categoryList?type=2", "/pages/goods/categoryList/categoryList?type=1", - "/pages/cart/cart/cart","/pages/user/index/index"]; + "/pages/cart/cart/cart","/pages/user/index/index", + "/packageA/pages/distribution/main/main"]; if(arr_tabbar.indexOf(url)!=-1){ if(url.indexOf("categoryList?type=1")!=-1) this.globalData.cat_type=1; if(url.indexOf("categoryList?type=2")!=-1) this.globalData.cat_type=2; -- libgit2 0.21.4