From bde7ef55d54bde99b1260fb92a46e7c943747b1c Mon Sep 17 00:00:00 2001 From: jiannibang <271381693@qq.com> Date: Fri, 15 Mar 2024 21:00:04 +0800 Subject: [PATCH] =?UTF-8?q?=E5=89=A9=E4=BD=99=E7=B1=B3=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/bluetooth/index.js | 4 +++- pages/bluetooth/index.wxml | 3 ++- pages/bluetooth/index.wxss | 11 +++++++++++ 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/pages/bluetooth/index.js b/pages/bluetooth/index.js index 5958db1..ee516e9 100644 --- a/pages/bluetooth/index.js +++ b/pages/bluetooth/index.js @@ -53,6 +53,7 @@ Page({ bluetoothOpened: false, mode: "bluetooth", naviData: null, + distance2End: null, }, /** * 生命周期函数--监听页面加载 @@ -231,7 +232,7 @@ Page({ this.setState(STATES.inNav); this.setData({ showTabs: true, - tab: 1, + tab: 0, }); }, 1000); }, @@ -405,6 +406,7 @@ Page({ "距离区间终点距离:", distance2End / 27 ); + this.setData({ distance2End: Math.ceil(distance2End / 27) }); if (distance / 27 > 10 && this.data.state === STATES.inNav) { this.reroute(); } diff --git a/pages/bluetooth/index.wxml b/pages/bluetooth/index.wxml index a92dbd5..accdde9 100644 --- a/pages/bluetooth/index.wxml +++ b/pages/bluetooth/index.wxml @@ -12,4 +12,5 @@ - \ No newline at end of file + + \ No newline at end of file diff --git a/pages/bluetooth/index.wxss b/pages/bluetooth/index.wxss index 790236a..67c444e 100644 --- a/pages/bluetooth/index.wxss +++ b/pages/bluetooth/index.wxss @@ -404,3 +404,14 @@ height: 54px; pointer-events: none; } + +.nav { + position: fixed; + height: 110px; + left: 10px; + right: 10px; + bottom: 116px; + background: #ffffff; + z-index: 12 !important; + border-radius: 18px 18px 0 0; +}