diff --git a/app.js b/app.js index e674963..81df597 100644 --- a/app.js +++ b/app.js @@ -494,6 +494,15 @@ App({ "/pages/cart/cart/cart", "/pages/user/index/index", "/pages/distribution/distribution"]; + for(var i in arr_tabbar){ + var ck_url=arr_tabbar[i]; + if (("/"+url).indexOf(ck_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; + wx.reLaunch({ url: url, }) //跳到tabbar页 + return; + } + } 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; diff --git a/packageE/pages/togoin/togoin.wxml b/packageE/pages/togoin/togoin.wxml index 0427781..8cde9a2 100644 --- a/packageE/pages/togoin/togoin.wxml +++ b/packageE/pages/togoin/togoin.wxml @@ -31,8 +31,8 @@ @@ -41,8 +41,8 @@ @@ -50,8 +50,8 @@