From 594e5219c6504d5f4cd7333d491b0d154ed4e56f Mon Sep 17 00:00:00 2001 From: xpz2018 <107107461@qq.com> Date: Thu, 27 May 2021 11:39:54 +0800 Subject: [PATCH] no message --- pages/index/index.js | 8 ++++++++ pages/index/index.wxml | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/pages/index/index.js b/pages/index/index.js index b234dc8..13caa74 100644 --- a/pages/index/index.js +++ b/pages/index/index.js @@ -27,6 +27,7 @@ Scene({ items: [], mActiveIndex: 0, factoryId: '', + arrow: false, visible: false }, /************************************** 初始化流程 ********************************************/ @@ -42,11 +43,17 @@ Scene({ const element = app.userInfo.enterpriseInfos[mIndex] var enterprise = { text: element.enterpriseName } var children = [] + if(mIndex >= 1){ + this.data.arrow = true + } for (let nIndex = 0; n < element.factoryInfos.length; nIndex++) { const item = element.factoryInfos[nIndex] if(item.factoryId == app.userInfo.factoryId){ this.data.mActiveIndex = mIndex } + if(nIndex >= 1){ + this.data.arrow = true + } var factory = { id: item.factoryId } if(item.applicationStatus == 0 && !element.isAdmin){ factory.text = item.factoryName + '(申请中)' @@ -65,6 +72,7 @@ Scene({ mActiveIndex: this.data.mActiveIndex, factoryId: app.userInfo.factoryId, factoryName: app.userInfo.factoryName, + arrow: this.data.arrow, customBar: app.globalData.CustomBar || (app.globalData.isIos ? 64 : 60), fragment: (app.globalData.safeFragmentHeight + app.globalData.statusBarHeight), safeBottom: app.globalData.safeBottom diff --git a/pages/index/index.wxml b/pages/index/index.wxml index 86ceda0..9beb040 100644 --- a/pages/index/index.wxml +++ b/pages/index/index.wxml @@ -2,7 +2,7 @@ {{ userInfo ? (factoryName || '未注册工厂') : ''}} - +