Commit 74d7ebadac6781fc72e07ad77cce7bac0dce337d
1 parent
72137b2c
增加分销入口
Showing
1 changed file
with
10 additions
and
2 deletions
app.js
| @@ -20,6 +20,12 @@ App({ | @@ -20,6 +20,12 @@ App({ | ||
| 20 | "src_sele": t.imghost+"/miniapp/images/bar/fl_on.png" | 20 | "src_sele": t.imghost+"/miniapp/images/bar/fl_on.png" |
| 21 | }, | 21 | }, |
| 22 | { | 22 | { |
| 23 | + "weappurl": "packageA/pages/distribution/main/main", | ||
| 24 | + "nav_name": "分销", | ||
| 25 | + "src": t.imghost+"/miniapp/images/bar/fx.png", | ||
| 26 | + "src_sele": t.imghost+"/miniapp/images/bar/fx_on.png" | ||
| 27 | + }, | ||
| 28 | + { | ||
| 23 | "weappurl": "pages/cart/cart/cart", | 29 | "weappurl": "pages/cart/cart/cart", |
| 24 | "nav_name": "购物车", | 30 | "nav_name": "购物车", |
| 25 | "src": t.imghost+"/miniapp/images/bar/car.png", | 31 | "src": t.imghost+"/miniapp/images/bar/car.png", |
| @@ -358,10 +364,12 @@ App({ | @@ -358,10 +364,12 @@ App({ | ||
| 358 | if(arr.length>8){ | 364 | if(arr.length>8){ |
| 359 | arr.splice(0, 2); | 365 | arr.splice(0, 2); |
| 360 | } | 366 | } |
| 361 | - var arr_tabbar=["/pages/index/index/index","/pages/goods/categoryList/categoryList", | 367 | + var arr_tabbar=["/pages/index/index/index", |
| 368 | + "/pages/goods/categoryList/categoryList", | ||
| 362 | "/pages/goods/categoryList/categoryList?type=2", | 369 | "/pages/goods/categoryList/categoryList?type=2", |
| 363 | "/pages/goods/categoryList/categoryList?type=1", | 370 | "/pages/goods/categoryList/categoryList?type=1", |
| 364 | - "/pages/cart/cart/cart","/pages/user/index/index"]; | 371 | + "/pages/cart/cart/cart","/pages/user/index/index", |
| 372 | + "/packageA/pages/distribution/main/main"]; | ||
| 365 | if(arr_tabbar.indexOf(url)!=-1){ | 373 | if(arr_tabbar.indexOf(url)!=-1){ |
| 366 | if(url.indexOf("categoryList?type=1")!=-1) this.globalData.cat_type=1; | 374 | if(url.indexOf("categoryList?type=1")!=-1) this.globalData.cat_type=1; |
| 367 | if(url.indexOf("categoryList?type=2")!=-1) this.globalData.cat_type=2; | 375 | if(url.indexOf("categoryList?type=2")!=-1) this.globalData.cat_type=2; |