diff --git a/custom-tab-bar/index.js b/custom-tab-bar/index.js index ad7d3e8..532967a 100644 --- a/custom-tab-bar/index.js +++ b/custom-tab-bar/index.js @@ -107,15 +107,11 @@ Component({ fontcolor:data.fontcolor, is_custum:1 }) - // console.log('abc=======<<<<<', this.data.list); + }, nav_goto:function(e){ - // const data = e.currentTarget.dataset - // this.setData({ - // active: data.index - // }) - // console.log('active***********<<<<<', this.data.active); + var url=e.currentTarget.dataset.url; if(!url) return false; if(url[0]!='/') url='/'+url; @@ -123,18 +119,7 @@ Component({ getApp().goto(url); }, - - // switchTab(e) { - // const data = e.currentTarget.dataset - // const url = data.path - // wx.switchTab({url}) - // this.setData({ - // selected: data.index - // }) - // } - - } diff --git a/custom-tab-bar/index.wxml b/custom-tab-bar/index.wxml index 0c417bb..23f8d7f 100644 --- a/custom-tab-bar/index.wxml +++ b/custom-tab-bar/index.wxml @@ -4,9 +4,6 @@ - - {{cartGoodsNum}} @@ -23,8 +20,7 @@ - +