From e6c1b71651b64b51171b38ebeafd41126498e904 Mon Sep 17 00:00:00 2001 From: meo <18801474720@163.com> Date: Wed, 11 Sep 2019 11:18:24 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=B5=B7=E6=82=A6=E5=9F=8E=E9=9C=80=E6=B1=82]?= =?UTF-8?q?[=E4=BF=AE=E6=94=B9]:[=E5=B0=8F=E7=A8=8B=E5=BA=8F=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E8=B0=83=E6=95=B4=E9=9C=80=E6=B1=82=20=E6=B5=B7?= =?UTF-8?q?=E6=82=A6=E5=9F=8E=E5=81=9C=E8=BD=A6=E9=A1=B5=E9=9D=A2=E4=B8=8D?= =?UTF-8?q?=E9=9C=80=E8=A6=81=EF=BC=8C=E4=B9=9F=E4=B8=8D=E9=9C=80=E8=A6=81?= =?UTF-8?q?=E6=8C=89=E9=92=AE]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- custom-tab-bar/index.js | 29 ++++++++++++++++++++++++++--- ext.json | 2 +- index/user.js | 4 ++++ 3 files changed, 31 insertions(+), 4 deletions(-) diff --git a/custom-tab-bar/index.js b/custom-tab-bar/index.js index 6823f96..b3c4a44 100644 --- a/custom-tab-bar/index.js +++ b/custom-tab-bar/index.js @@ -50,13 +50,36 @@ Component({ } ] }) + } else if (ifStoreApp == 2) { + this.setData({ + list: [ + { + "pagePath": "/index/index", + "iconPath": "../assets/images/home.png", + "selectedIconPath": "../assets/images/home-a.png", + "text": "首页" + }, + { + "pagePath": "/index/searchbar", + "iconPath": "../assets/images/mendian.png", + "selectedIconPath": "../assets/images/mendian-a.png", + "text": "门店" + }, + { + "pagePath": "/index/user", + "iconPath": "../assets/images/user.png", + "selectedIconPath": "../assets/images/user-a.png", + "text": "我的" + } + ] + }) } }, methods: { switchTab(e) { - const data = e.currentTarget.dataset - const url = data.path - wx.switchTab({url}) + const data = e.currentTarget.dataset; + const url = data.path; + wx.switchTab({url}); this.setData({ selected: data.index }) diff --git a/ext.json b/ext.json index a0ecc3b..8d27936 100644 --- a/ext.json +++ b/ext.json @@ -21,7 +21,7 @@ "etcpVersion": "release", "etcpCallbackUrl": "https://ciformall.youlane.cn/api/carCallback/etcpPaidCallback", "ifHaveWebSocket": "0", - "ifStoreApp": "0", + "ifStoreApp": "2", "ifHaveCarModular": "1" }, "name": "富茂客官开发", diff --git a/index/user.js b/index/user.js index 6b5b03c..5bfe8f1 100644 --- a/index/user.js +++ b/index/user.js @@ -134,6 +134,10 @@ Page({ that.getTabBar().setData({ selected: 1 }) + } else if(ifStoreApp == 2){ + that.getTabBar().setData({ + selected: 2 + }) }else{ that.getTabBar().setData({ selected: 3