diff --git a/app.js b/app.js index 70eb4df..3806aa5 100644 --- a/app.js +++ b/app.js @@ -278,9 +278,13 @@ App({ //----智能跳转,判断 非tabBar,tabBar页面的跳转---- goto:function (url) { 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"]; if(arr_tabbar.indexOf(url)!=-1){ - wx.switchTab({ url: url, }) //跳到tabbar页 + 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.switchTab({ url: url, }) //跳到tabbar页 }else{ wx.navigateTo({ url: url, }) //跳到非tabbar页 } diff --git a/components/diy_assist/diy_assist.wxss b/components/diy_assist/diy_assist.wxss index ebd5a1a..6c268e3 100644 --- a/components/diy_assist/diy_assist.wxss +++ b/components/diy_assist/diy_assist.wxss @@ -1,5 +1,5 @@ .assist{ width: 100%; min-height:90rpx; - border:1px solid #00F; + /*border:1px solid #00F;*/ } \ No newline at end of file diff --git a/components/diy_nav/diy_nav.js b/components/diy_nav/diy_nav.js index a0ec676..2365b15 100644 --- a/components/diy_nav/diy_nav.js +++ b/components/diy_nav/diy_nav.js @@ -31,13 +31,13 @@ Component({ // 这里是一个自定义方法,判断图片路径,并加载 pd_navicon:function(g_id){ - var item={}; - var nav_strs=g_id; + var item={},nav_strs=g_id,th=this; for (var i=0;i