Browse Source

左右列表按钮互换位置

master
ZhaoTongYao 4 years ago
parent
commit
14dda63e6b
  1. 8
      utils/heartBehavior.js

8
utils/heartBehavior.js

@ -81,9 +81,9 @@ module.exports = Behavior ({
// this.setData({
// tabList: this.data.tabList
// })
this.data.tabRightList.push(item)
this.data.tabLeftList.push(item)
this.setData({
tabRightList: this.data.tabRightList
tabLeftList: this.data.tabLeftList.sort(compare('sort'))
})
} else if (item.imgType == '8') {
this.setData({
@ -97,9 +97,9 @@ module.exports = Behavior ({
})
} else if (item.imgType == '11' || item.imgType == '12') {
// 2021.11.17 左侧固定 志愿团队 共建联盟
this.data.tabLeftList.push(item)
this.data.tabRightList.push(item)
this.setData({
tabLeftList: this.data.tabLeftList.sort(compare('imgType'))
tabRightList: this.data.tabRightList.sort(compare('sort'))
})
}
})

Loading…
Cancel
Save