修改顶部栏

parent 402975f0
<template>
<Header backgroundBox="#D2E4FF">
<Header backgroundBox="#D2E4FF" :show="false">
<div class="header">
<div class="title">分类</div>
<div class="search">
......@@ -15,7 +15,7 @@
<div class="bg">
<div class="content">
<van-pull-refresh v-model="refreshing" @refresh="handleRefresh">
<van-list v-model:loading="loading" :finished="finished" finished-text="没有更多了" :offset="contentHeight"
<van-list v-model:loading="loading" :finished="finished" finished-text="没有更多了" offset="50"
@load="getList" v-if="dataList.length">
<div class="list">
<div class="item" v-for="(item, index) in dataList" :key="index"
......
<template>
<view class="searchComponent" :style="{ height: contentHeight, background: backgroundBox }">
<view class="search" :style="{ background }">
<wd-icon
v-if="show"
name="thin-arrow-left"
class="icon"
@tap="back"
:style="{ color: backIcon }"
></wd-icon>
<van-icon name="arrow-left" v-if="show" class="icon" @click="back" :style="{ color: backIcon }" />
<slot></slot>
<text class="title" :style="{ color: textColor }" v-if="showTitle">{{ title }}</text>
</view>
......
<template>
<Header backgroundBox="#f8f8f8" :show="false"></Header>
<!-- <Header backgroundBox="#f8f8f8" :show="false"></Header> -->
<div class="container" v-if="userStore.isLogin">
<div class="userinfo">
<img class="avatar" mode="aspectFill"
......@@ -46,7 +46,7 @@
</div>
</div>
<div class="content">
<van-tabs v-model:active="active" background="#f8f8f8" animated swipeable sticky :offset-top="contentHeight">
<van-tabs v-model:active="active" background="#f8f8f8" animated swipeable sticky>
<van-tab title="待发布">
<picture-list ref="waitingPublishPicture" :active="0" @total="setTotal" @refresh="handleRefreshPublishPicture" @publish="handlePublishPicture"></picture-list>
</van-tab>
......@@ -83,15 +83,6 @@ const total = reactive({
2: 0
})
const contentHeight = ref(50)
onLoad(() => {
// xma.xh.getMenuButtonBoundingClientRect({
// success(res) {
// contentHeight.value = (res.top + res.bottom) / 2 + 25;
// },
// });
})
onShow(() => {
toLogin()
})
......
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