<uni-popup ref="popup" >
<view class="popup-navbar">
<view class="close" @click="close"><text class="iconfont icon-close"></text></view>
<view class="popup-nav">
<view class="nav-item" v-for="(item,index) in navs">
<navigator :url="item.link" class="link" :class="nIndex == index?'active':''" @click="close">
{{item.text}}
</navigator>
</view>
</view>
</view>
</uni-popup>
重点是给navigator 加上点击事件
@click="close"