|
@@ -6,8 +6,8 @@
|
|
|
<text v-if='haveBack' @click="_goBack" class="iconfont icon-fanhui"></text>
|
|
|
<text v-else @click="_goHome" class="iconfont icon-shouye"></text>
|
|
|
</view>
|
|
|
- <view class="navbar-text" :style="{height:navbarBtn.height+'px;',fontSize:fontSizeSetting+'px;'}">
|
|
|
- <view class="gosearch-btn" :style="{paddingLeft:navbarBtn.height+'px;',top:5+'px;',left:(navbarBtn.right+navbarBtn.height+20)+'px;',borderRadius:navbarBtn.height/2+'px;',width:200+'px;',lineHeight:navbarBtn.height+'px;'}">
|
|
|
+ <view class="navbar-text" :style="{top:navbarBtn.top + statusBarHeight+'px;',height:navbarBtn.height+'px;',fontSize:fontSizeSetting+'px;'}">
|
|
|
+ <view class="gosearch-btn" :style="{paddingLeft:navbarBtn.height+'px;',left:(navbarBtn.height+30)+'px;',borderRadius:navbarBtn.height/2+'px;',width:(375-navbarBtn.width-(navbarBtn.width/2)-15)+'px;',lineHeight:navbarBtn.height+'px;'}">
|
|
|
<text class="iconfont icon-sousuo":style="{width:navbarBtn.height+'px;',height:navbarBtn.height+'px;',lineHeight:navbarBtn.height+'px;'}"></text>
|
|
|
<view class="input" @click="this.$api.navigateTo(clickPath)">搜索项目仪器</view>
|
|
|
</view>
|
|
@@ -45,7 +45,7 @@
|
|
|
data() {
|
|
|
return{
|
|
|
headerType:'',
|
|
|
- clickPath:'/pages/search/search-instrument',
|
|
|
+ clickPath:'/pages/search/search-instrument',
|
|
|
haveBack: true, // 是否有返回按钮,true 有 false 没有 若从分享页进入则为 false
|
|
|
statusBarHeight: 0, // 状态栏高度
|
|
|
navbarHeight: 0, // 顶部导航栏高度,
|
|
@@ -84,6 +84,7 @@
|
|
|
// 屏幕宽度 - 胶囊right
|
|
|
right: this.systeminfo.screenWidth - headerPosi.right
|
|
|
}
|
|
|
+ console.log(btnPosi)
|
|
|
let haveBack;
|
|
|
if (getCurrentPages().length === 1) { // 当只有一个页面时
|
|
|
haveBack = false;
|
|
@@ -136,7 +137,7 @@
|
|
|
.navbar-text {
|
|
|
color: #000000;
|
|
|
font-weight: 500;
|
|
|
- position: relative;
|
|
|
+ position: fixed;
|
|
|
}
|
|
|
.gosearch-btn{
|
|
|
height: 100%;
|
|
@@ -146,7 +147,8 @@
|
|
|
position: relative;
|
|
|
box-sizing: border-box;
|
|
|
position:absolute ;
|
|
|
- border: 1px solid rgba(0, 0, 0, 0.1);
|
|
|
+ top: 0;
|
|
|
+ border: 0.5px solid rgba(0, 0, 0, 0.1);
|
|
|
.icon-sousuo{
|
|
|
height: 100%;
|
|
|
text-align: center;
|
|
@@ -172,7 +174,7 @@
|
|
|
border-radius: 50%;
|
|
|
text-align: center;
|
|
|
background: rgba(255,255,255,0.6);
|
|
|
- border: 1px solid rgba(0,0,0, 0.1);
|
|
|
+ border: 0.5px solid rgba(0,0,0, 0.1);
|
|
|
box-sizing: border-box;
|
|
|
z-index: 9999;
|
|
|
}
|