Commit 31fe71cf by 王志慧

commit

1 parent 48e877e5
...@@ -30,7 +30,7 @@ Component({ ...@@ -30,7 +30,7 @@ Component({
// 点击菜单按钮切换到对应的tab // 点击菜单按钮切换到对应的tab
getCurrentMenu(e) { getCurrentMenu(e) {
let { tab } = this.data let { tab } = this.data
const TEMP = tab[e.detail] const [TEMP]= tab.filter(item=>item.serviceType == e.detail);
this.setData({ this.setData({
tabIndex: e.detail, tabIndex: e.detail,
to: `to-${e.detail}`, to: `to-${e.detail}`,
...@@ -55,6 +55,7 @@ Component({ ...@@ -55,6 +55,7 @@ Component({
let { index } = e.currentTarget.dataset let { index } = e.currentTarget.dataset
let { tab } = this.data let { tab } = this.data
const TEMP = tab[index] const TEMP = tab[index]
this.setData({ this.setData({
tabIndex: index, tabIndex: index,
to: `to-${index}`, to: `to-${index}`,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!