修改顶部栏

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