diff --git a/app.js b/app.js index 3a6d23c..8df8c61 100644 --- a/app.js +++ b/app.js @@ -274,9 +274,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_picMax/diy_picMax.wxss b/components/diy_picMax/diy_picMax.wxss index 2e3f653..e5d053a 100644 --- a/components/diy_picMax/diy_picMax.wxss +++ b/components/diy_picMax/diy_picMax.wxss @@ -1,8 +1,8 @@ -.picMax{width: 100%; padding: 0 10rpx;position: relative;} +.picMax{width: 100%;position: relative;} .pic_item{position: absolute; top:0;left:0;} .pic_item image{width: 100%; height: 100%} -.width_1{width: 187rpx}.width_2{width: 374rpx;}.width_3{width: 561rpx}.width_4{width:748rpx;} -.height_1{height: 187rpx;}.height_2{height: 374rpx;}.height_3{height: 561rpx}.height_4{height: 748rpx;} -.mar_x1{margin-left:187rpx;}.mar_x2{margin-left:374rpx;}.mar_x3{margin-left:561rpx}.mar_x4{margin-left: 748rpx;} -.mar_y1{margin-top: 187rpx;}.mar_y2{margin-top: 374rpx;}.mar_y3{margin-top: 561rpx}.mar_y4{margin-top: 748rpx;} +.width_1{width: 187.5rpx}.width_2{width: 375rpx;}.width_3{width: 562.5rpx}.width_4{width:748rpx;} +.height_1{height: 187.5rpx;}.height_2{height: 375rpx;}.height_3{height: 562.5rpx}.height_4{height: 748rpx;} +.mar_x1{margin-left:187.5rpx;}.mar_x2{margin-left:375rpx;}.mar_x3{margin-left:562.5rpx}.mar_x4{margin-left: 748rpx;} +.mar_y1{margin-top: 187.5rpx;}.mar_y2{margin-top: 375rpx;}.mar_y3{margin-top: 562.5rpx}.mar_y4{margin-top: 748rpx;} .picMax-clear{clear: both;} \ No newline at end of file