Commit 3c8ed42b Harvey

no message

1 个父辈 86cd7569
<template> <template>
<view> <view>
<view class="top-nav"> <view id="topNav" class="top-nav">
<button class="top-nav-btn" :class="{'top-nav-btn-on':sub_module_id == item.value}" v-for="(item,i) in nav" <button class="top-nav-btn" :class="{'top-nav-btn-on':sub_module_id == item.value}" v-for="(item,i) in nav"
:data-v="item.value" @click="navChange" :key="i">{{item.text}}</button> :data-v="item.value" @click="navChange" :key="i">{{item.text}}</button>
</view> </view>
......
<template> <template>
<view> <view>
<view class="top-nav"> <view :style="{'top': nav_top }">
<view class="top-nav-btn" :class="{'top-nav-btn-on':sub_module_id == item.value}" v-for="(item,i) in nav" <view class="top-nav-btn" :class="{'top-nav-btn-on':sub_module_id == item.value}" v-for="(item,i) in nav"
:data-v="item.value" @click="navChange" :key="i">{{item.text}}</view> :data-v="item.value" @click="navChange" :key="i">{{item.text}}</view>
</view> </view>
...@@ -55,7 +55,8 @@ ...@@ -55,7 +55,8 @@
leftData: [], leftData: [],
rightData: [], rightData: [],
mode: 'widthFix', mode: 'widthFix',
sub_module_id: 0 sub_module_id: 0,
nav_top: '44px'
} }
}, },
async onLoad() { async onLoad() {
...@@ -63,6 +64,7 @@ ...@@ -63,6 +64,7 @@
if (window.Android) { if (window.Android) {
const $h5 = require('@/static/js/h5-utils.js') const $h5 = require('@/static/js/h5-utils.js')
$h5.remove_uni_page_head() $h5.remove_uni_page_head()
this.nav_top = '0'
} }
//#endif //#endif
this.bindData() this.bindData()
...@@ -115,14 +117,13 @@ ...@@ -115,14 +117,13 @@
.top-nav { .top-nav {
display: flex; display: flex;
padding: 5px 0px 10px 0px; padding: 5px 0px 10px 0px;
flex-wrap: wrap; flex-wrap: wrap;
justify-content: space-around; justify-content: space-around;
width: 100%; width: 100%;
position: fixed; position: fixed;
top: 44px;
z-index: 999; z-index: 999;
background: #ffffff; background: #ffffff;
max-width: $sys-max-width; max-width: $sys-max-width;
} }
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!