顶部栏

parent b1e69df1
...@@ -119,7 +119,8 @@ ...@@ -119,7 +119,8 @@
"backgroundColor": "#F8F8F8", "backgroundColor": "#F8F8F8",
"app-plus": { "app-plus": {
"background": "#efeff4" "background": "#efeff4"
} },
"navigationStyle": "custom"
}, },
"tabBar": { "tabBar": {
"color": "#707070", "color": "#707070",
......
...@@ -54,12 +54,12 @@ ...@@ -54,12 +54,12 @@
}); });
xma.xh.getMenuButtonBoundingClientRect({ xma.xh.getMenuButtonBoundingClientRect({
success(res) { success(res) {
// console.log('宽度', res.width); // 宽度,单位:px console.log('宽度', res.width); // 宽度,单位:px
// console.log('高度', res.height); // 高度,单位:px console.log('高度', res.height); // 高度,单位:px
// console.log('上边界坐标', res.top); // 上边界坐标,单位:px console.log('上边界坐标', res.top); // 上边界坐标,单位:px
// console.log('右边界坐标', res.right); // 右边界坐标,单位:px console.log('右边界坐标', res.right); // 右边界坐标,单位:px
// console.log('下边界坐标', res.bottom); // 下边界坐标,单位:px console.log('下边界坐标', res.bottom); // 下边界坐标,单位:px
// console.log('左边界坐标', res.left); console.log('左边界坐标', res.left);
contentHeight.value = (res.top + res.bottom) / 2 + 25 + 'px'; contentHeight.value = (res.top + res.bottom) / 2 + 25 + 'px';
// contentHeight.value = res.bottom * 2 + 10 + 'rpx'; // 左边界坐标,单位:px // contentHeight.value = res.bottom * 2 + 10 + 'rpx'; // 左边界坐标,单位:px
}, },
......
<template> <template>
<van-sticky> <van-sticky>
<div class="header"> <div class="header">
<div class="tools"> <Header backgroundBox="white" :show="false">
<div class="tools">
<van-search v-model="catalog.materialTitle" shape="round" placeholder="请输入搜索关键词" @search="handleRefresh" <van-search v-model="catalog.materialTitle" shape="round" placeholder="请输入搜索关键词" @search="handleRefresh"
@clear="handleRefresh" /> @clear="handleRefresh" />
<div class="right" @click="router.push({ name: 'publish' })"> <div class="right" @click="router.push({ name: 'publish' })">
...@@ -9,6 +10,15 @@ ...@@ -9,6 +10,15 @@
<span>新建</span> <span>新建</span>
</div> </div>
</div> </div>
</Header>
<!-- <div class="tools">
<van-search v-model="catalog.materialTitle" shape="round" placeholder="请输入搜索关键词" @search="handleRefresh"
@clear="handleRefresh" />
<div class="right" @click="router.push({ name: 'publish' })">
<van-icon name="add" size="26" color="#0E7CE3" />
<span>新建</span>
</div>
</div> -->
<div class="menu"> <div class="menu">
<van-tabs v-model:active="tabsActive" line-width="20" title-active-color="#0E7CE3" <van-tabs v-model:active="tabsActive" line-width="20" title-active-color="#0E7CE3"
title-inactive-color="#82868E" @change="handleRefresh"> title-inactive-color="#82868E" @change="handleRefresh">
......
<template> <template>
<!-- <Header title="个人中心" :showTitle="true" :show="false"></Header> --> <!-- <Header backgroundBox="#f8f8f8" :show="false"></Header> -->
<div class="container" v-if="userStore.isLogin"> <div class="container" v-if="userStore.isLogin">
<div class="userinfo"> <div class="userinfo">
<img class="avatar" mode="aspectFill" <img class="avatar" mode="aspectFill"
...@@ -136,7 +136,7 @@ const handleOperation = (e) => { ...@@ -136,7 +136,7 @@ const handleOperation = (e) => {
.container { .container {
background-color: #f8f8f8; background-color: #f8f8f8;
padding: 38px 12px 0 12px; padding: 38px 12px 0 12px;
min-height: 100vh; // min-height: 100vh;
.userinfo { .userinfo {
display: flex; display: flex;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment