From 79694e5e4ef6eed9a93cead92c34d424a482d283 Mon Sep 17 00:00:00 2001 From: ZhaoTongYao <531131322@qq.com> Date: Fri, 9 Jul 2021 14:32:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8B=BC=E5=9B=A2=E8=B4=AD=E9=A1=BA=E9=81=93?= =?UTF-8?q?=E6=8D=8E=E8=8F=9C=E5=8D=95=E7=A7=BB=E5=88=B0=E5=8F=B3=E4=BE=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/toRegister/toRegister.js | 2 +- utils/heartBehavior.js | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) 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 }) } })