Browse Source

修复nav跳转BUG

master
邓平艺 4 years ago
parent
commit
18d2b21273
  1. 8
      components/lf-nav/lf-nav.vue

8
components/lf-nav/lf-nav.vue

@ -9,8 +9,8 @@
</block> </block>
<block v-else> <block v-else>
<view class="head-nav" :style="{'top': headHeight - 40 + 'px'}" v-if="showIcon"> <view class="head-nav" :style="{'top': headHeight - 40 + 'px'}" v-if="showIcon">
<text class="le lf-icon-jiantouzuo font-40size" @click="clickDropOut"></text>
<text class="le lf-icon-home font-40size" @click="clickHome"></text>
<text class="lf-iconfont icon-daifukuan font-40size" @click="clickDropOut"></text>
<text class="lf-iconfont icon-sousuo font-40size" @click="clickHome"></text>
</view> </view>
<view class="title-box" :style="{'margin': headHeight - 36 + 'px auto 0'}"> <view class="title-box" :style="{'margin': headHeight - 36 + 'px auto 0'}">
<input class="search" placeholder="搜你想要的" confirm-type="search" v-model="value" @confirm="onSearch" v-if="search" /> <input class="search" placeholder="搜你想要的" confirm-type="search" v-model="value" @confirm="onSearch" v-if="search" />
@ -99,7 +99,7 @@
let pages = getCurrentPages(); let pages = getCurrentPages();
if(pages.length <= 1){ if(pages.length <= 1){
uni.redirectTo({ uni.redirectTo({
url: '/pages/index/index'
url: '/pages/index/index/index'
}) })
return; return;
} }
@ -109,7 +109,7 @@
// //
clickHome(){ clickHome(){
uni.reLaunch({ uni.reLaunch({
url: '/pages/index/index'
url: '/pages/index/index/index'
}) })
}, },
// //

Loading…
Cancel
Save