Commit 31fe71cf by 王志慧

commit

1 parent 48e877e5
......@@ -30,7 +30,7 @@ Component({
// 点击菜单按钮切换到对应的tab
getCurrentMenu(e) {
let { tab } = this.data
const TEMP = tab[e.detail]
const [TEMP]= tab.filter(item=>item.serviceType == e.detail);
this.setData({
tabIndex: e.detail,
to: `to-${e.detail}`,
......@@ -55,6 +55,7 @@ Component({
let { index } = e.currentTarget.dataset
let { tab } = this.data
const TEMP = tab[index]
this.setData({
tabIndex: 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!