diff --git a/pages/toRegister/toRegister.js b/pages/toRegister/toRegister.js index 1c10973..d1ac241 100644 --- a/pages/toRegister/toRegister.js +++ b/pages/toRegister/toRegister.js @@ -21,7 +21,7 @@ Page({ // } // }) let that = this - const versionNum = "1.7.1" + const versionNum = "1.7.2" api.getScanSwitch(versionNum).then(function (res) { console.log(res.data) let state = res.data.scanFlag diff --git a/utils/heartBehavior.js b/utils/heartBehavior.js index 6c84cac..5aa5b7f 100644 --- a/utils/heartBehavior.js +++ b/utils/heartBehavior.js @@ -30,9 +30,10 @@ module.exports = Behavior ({ Promise.all([this.getModuleList(), this.getImgUrl()]).then( () => { let newArr = group(this.data.tabList.sort(compare('sort')), 2) this.setData({ - tabLeftList: newArr[0], - tabRightList: newArr[1] + tabLeftList: newArr[1], + tabRightList: newArr[0] }) + // 2021.07.09 左右菜单互换位置 }) }, // 获取模块信息 @@ -49,8 +50,8 @@ module.exports = Behavior ({ if (item.categoryCode == 'shouye') { this.data.tabList.push(item) this.setData({ - shouye: item, - tabList: this.data.tabList + shouye: item, + tabList: this.data.tabList }) } })