Browse Source

志愿者左右列表按钮互换位置

release
ZhaoTongYao 4 years ago
parent
commit
94c0e04a19
  1. 2
      pages/toRegister/toRegister.js
  2. 8
      utils/heartBehavior.js

2
pages/toRegister/toRegister.js

@ -21,7 +21,7 @@ Page({
// } // }
// }) // })
let that = this let that = this
const versionNum = "1.7.25" const versionNum = "1.7.26"
api.getScanSwitch(versionNum).then(function (res) { api.getScanSwitch(versionNum).then(function (res) {
console.log(res.data) console.log(res.data)
let state = res.data ? res.data.scanFlag : '1' let state = res.data ? res.data.scanFlag : '1'

8
utils/heartBehavior.js

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

Loading…
Cancel
Save