This commit is contained in:
kbing1981 2024-07-24 14:27:50 +08:00
parent f5f08cb73c
commit 040760329b
5 changed files with 85 additions and 77 deletions

View File

@ -1,6 +1,7 @@
<!-- 自定义下拉刷新与上拉加载演示(vue) --> <!-- 自定义下拉刷新与上拉加载演示(vue) -->
<template> <template>
<view class="content-view"> <view class="content-view">
<view class="tab-view">
<view class="service-head-top"> <view class="service-head-top">
<view class="service-head-top-left"> <view class="service-head-top-left">
<image @click="backImg" src="../../static/fanhui.png" mode="widthFix"></image> <image @click="backImg" src="../../static/fanhui.png" mode="widthFix"></image>
@ -18,6 +19,7 @@
<view class="fenlei"> <view class="fenlei">
<z-tabs class="z-tabs-fenlei" :list="tabList" @change="tabChange" @changeClick="changeClick"/> <z-tabs class="z-tabs-fenlei" :list="tabList" @change="tabChange" @changeClick="changeClick"/>
</view> </view>
</view>
<t-refresh ref="refresh" v-if="dataList.length>0" @refresh="refresh" @loadMore="loadMore" :loadingType="loadingType" :tPadding="0"> <t-refresh ref="refresh" v-if="dataList.length>0" @refresh="refresh" @loadMore="loadMore" :loadingType="loadingType" :tPadding="0">
<template slot="content"> <template slot="content">
<view class="item" v-for="(item,index) in dataList" :key="index" @click="itemClick(item)"> <view class="item" v-for="(item,index) in dataList" :key="index" @click="itemClick(item)">
@ -173,33 +175,44 @@
</script> </script>
<style scoped> <style scoped>
.tab-view{
width: 100%;
display: flex;
flex-direction: column;
position: fixed;
z-index: 999;
background:#fff linear-gradient(60deg,rgba(115, 212, 183, 0.2),rgba(227, 251, 244, 0.1),rgba(193, 236, 223, 0.35));
border-bottom:1rpx solid #c4ede1;
padding-top: 6rpx;
}
.shop_label{ .shop_label{
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
margin-top: 10rpx;
} }
.shop_label span{ .shop_label span{
background: #e5e5e5; background: #f3f3f3;
height: 34rpx;
line-height: 34rpx;
border-radius: 8rpx; border-radius: 8rpx;
padding: 2rpx 8rpx; padding: 0 10rpx;
font-size: 20rpx; font-size: 22rpx;
margin-right: 8rpx; margin-right: 8rpx;
margin-bottom: 8rpx; margin-bottom: 8rpx;
} }
/deep/.z-tabs-item-title{ /deep/.z-tabs-item-title{
font-size: 30rpx;
color: #222; color: #222;
} }
/deep/.refresh-body .content{ /deep/.refresh-body .content{
background-color: #f7f7f7;
} }
/deep/.refresh-body{ /deep/.refresh-body{
height: 100% !important; height: 100% !important;
border-top: 2px solid #f7f7f7; border-top: 2px solid #f7f7f7;
margin: 88px 0px;
} }
.content-view{ .content-view{
width: 100%; width: 100%;
height: 100vh; height: 100vh;
padding-bottom: 100px;
overflow: hidden; overflow: hidden;
background-color: #f7f7f7; background-color: #f7f7f7;
} }
@ -401,47 +414,49 @@
} }
.search-btn{ .search-btn{
text-align: center; text-align: center;
line-height: 32px; line-height: 56rpx;
color: #fff; color: #fff;
position: absolute; position: absolute;
right: 0; right:30rpx;
top: 0; top: 22rpx;
margin-top:9.4px; height: 56rpx !important;
margin-right: 11px;
height: 32px !important;
} }
/deep/.uni-searchbar__box-icon-search,.search-btn{ /deep/.uni-searchbar__box-icon-search,.search-btn{
width: 120rpx; width: 110rpx;
height: 60rpx; height: 50rpx;
background: #019c88; background: #18A689;
border-radius: 31rpx; border-radius: 31rpx;
font-size: 14px;
} }
/deep/.uni-searchbar__box{ /deep/.uni-searchbar__box{
height: 31px; height: 30px;
border-radius: 15px !important; border-radius: 30px !important;
background-color: #fff !important; background-color: #fff !important;
border: 1px solid #E5E5E5; border: 1px solid #09a28a;
padding: 0px;
display: flex; display: flex;
flex-direction: row; flex-direction: row;
flex-flow: row-reverse; flex-flow: row-reverse;
position: relative; position: relative;
} }
/deep/.uni-searchbar{ /deep/.uni-searchbar{
width: 240px; width: 230px;
border-radius: 31rpx; border-radius: 31rpx;
margin-right: 20rpx;
} }
.service-head-top-left image{ .service-head-top-left image{
width: 25px; width: 20px;
height: 30rpx; height: 20rpx;
margin-right: 10px; margin-right:5px;
margin-left: 10rpx;
} }
.service-head-top-left span{ .service-head-top-left span{
width: 180rpx;
height: 60rpx;
background:url('../../static/images/headline.png') 0rpx 26rpx;
background-repeat: no-repeat;
font-weight: bold; font-weight: bold;
font-size: 32rpx; font-size: 34rpx;
color: #333; color: #171717;
margin-top: 14rpx;
} }
.service-head-top-left{ .service-head-top-left{
display: flex; display: flex;
@ -450,13 +465,12 @@
justify-content: space-between; justify-content: space-between;
} }
.service-head-top{ .service-head-top{
width: 100%; height:90rpx;
display: flex; display: flex;
flex-direction: row; flex-direction: row;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
background-color: #fff; }
}
.view-cata{ .view-cata{
display: flex; display: flex;
flex-direction: row; flex-direction: row;

View File

@ -15,7 +15,6 @@
搜索 搜索
</view> </view>
</view> </view>
</view> </view>
<view class="fenlei"> <view class="fenlei">
<z-tabs class="z-tabs-fenlei":list="tabList" @change="tabChange" @changeClick="changeClick"/> <z-tabs class="z-tabs-fenlei":list="tabList" @change="tabChange" @changeClick="changeClick"/>
@ -204,19 +203,21 @@
flex-direction: column; flex-direction: column;
position: fixed; position: fixed;
z-index: 999; z-index: 999;
background: linear-gradient(60deg,rgba(115, 212, 183, 0.2),rgba(227, 251, 244, 0.1),rgba(193, 236, 223, 0.35)); background:#fff linear-gradient(60deg,rgba(115, 212, 183, 0.2),rgba(227, 251, 244, 0.1),rgba(193, 236, 223, 0.35));
border-bottom:1rpx solid #c4ede1; border-bottom:1rpx solid #c4ede1;
padding-top: 6rpx; padding-top: 6rpx;
} }
.shop_label{ .shop_label{
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
margin-top: 8rpx; margin-top: 10rpx;
} }
.shop_label span{ .shop_label span{
background: #e5e5e5; background: #f3f3f3;
height: 34rpx;
line-height: 34rpx;
border-radius: 8rpx; border-radius: 8rpx;
padding: 3rpx 10rpx; padding: 0 10rpx;
font-size: 22rpx; font-size: 22rpx;
margin-right: 8rpx; margin-right: 8rpx;
margin-bottom: 8rpx; margin-bottom: 8rpx;
@ -225,12 +226,11 @@
margin-top: 5px; margin-top: 5px;
} }
/deep/.refresh-body .content{ /deep/.refresh-body .content{
background-color: #f7f7f7;
} }
/deep/.refresh-body{ /deep/.refresh-body{
height: 100% !important; height: 100% !important;
border-top: 2px solid #f7f7f7; border-top: 2px solid #f7f7f7;
margin: 80px 0px; margin: 88px 0px;
} }
.content-view{ .content-view{
width: 100%; width: 100%;
@ -447,27 +447,24 @@
border-radius: 30px !important; border-radius: 30px !important;
background-color: #fff !important; background-color: #fff !important;
border: 1px solid #09a28a; border: 1px solid #09a28a;
padding: 0px;
display: flex; display: flex;
flex-direction: row; flex-direction: row;
flex-flow: row-reverse; flex-flow: row-reverse;
position: relative; position: relative;
margin-top: 4rpx;
margin-right: 15rpx;
}
.search-btn{
text-align: center;
line-height: 28px;
color: #fff;
position: absolute;
right:26rpx;
top: 25rpx;
height: 29px !important;
} }
/deep/.uni-searchbar{ /deep/.uni-searchbar{
width: 230px; width: 230px;
border-radius: 31rpx; border-radius: 31rpx;
position: relative; margin-right: 20rpx;
}
.search-btn{
text-align: center;
line-height: 56rpx;
color: #fff;
position: absolute;
right:30rpx;
top: 22rpx;
height: 56rpx !important;
} }
/deep/.uni-input-input { /deep/.uni-input-input {
display: block; display: block;
@ -521,12 +518,12 @@
justify-content: space-between; justify-content: space-between;
} }
.service-head-top{ .service-head-top{
width: 100%; height:90rpx;
display: flex; display: flex;
flex-direction: row; flex-direction: row;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
} }
.view-cata{ .view-cata{
display: flex; display: flex;
flex-direction: row; flex-direction: row;

View File

@ -227,17 +227,17 @@
.shop_label{ .shop_label{
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
margin: 10rpx 0; margin-top: 10rpx;
align-items: center;
} }
.shop_label span{ .shop_label span{
background: #e5e5e5; background: #f3f3f3;
height: 34rpx;
line-height: 34rpx;
border-radius: 8rpx; border-radius: 8rpx;
padding: 8rpx 10rpx; padding: 0 10rpx;
font-size: 20rpx; font-size: 22rpx;
margin-right: 8rpx; margin-right: 8rpx;
display: flex; margin-bottom: 8rpx;
align-items: center;
} }
.shop-arrow{ .shop-arrow{
display: inline-block; display: inline-block;
@ -482,7 +482,7 @@
} }
/deep/.zp-paging-container-content{ /deep/.zp-paging-container-content{
width: 95%; width: 95%;
margin: 45px auto 0px auto; margin:0px auto 0px auto;
} }
.fenlei{ .fenlei{
display: flex; display: flex;

View File

@ -402,7 +402,6 @@
height: 50rpx; height: 50rpx;
background: #18A689; background: #18A689;
border-radius: 31rpx; border-radius: 31rpx;
} }
/deep/.uni-searchbar__box{ /deep/.uni-searchbar__box{
height: 30px; height: 30px;

View File

@ -211,7 +211,6 @@
/deep/.refresh-body{ /deep/.refresh-body{
height: 100% !important; height: 100% !important;
border-top: 2px solid #f7f7f7; border-top: 2px solid #f7f7f7;
margin: 50px 0px;
} }
.content-view{ .content-view{
width: 100%; width: 100%;
@ -424,37 +423,33 @@
} }
.search-btn{ .search-btn{
text-align: center; text-align: center;
line-height: 28px; line-height: 56rpx;
color: #fff; color: #fff;
position: absolute; position: absolute;
right:26rpx; right:30rpx;
top: 25rpx; top: 22rpx;
height: 29px !important; height: 56rpx !important;
} }
/deep/.uni-searchbar__box-icon-search,.search-btn{ /deep/.uni-searchbar__box-icon-search,.search-btn{
width: 110rpx; width: 110rpx;
height: 50rpx; height: 50rpx;
background: #18A689; background: #18A689;
border-radius: 31rpx; border-radius: 31rpx;
} }
/deep/.uni-searchbar__box{ /deep/.uni-searchbar__box{
height: 30px; height: 30px;
border-radius: 30px !important; border-radius: 30px !important;
background-color: #fff !important; background-color: #fff !important;
border: 1px solid #09a28a; border: 1px solid #09a28a;
padding: 0px;
display: flex; display: flex;
flex-direction: row; flex-direction: row;
flex-flow: row-reverse; flex-flow: row-reverse;
position: relative; position: relative;
margin-top: 10rpx;
margin-right: 15rpx;
} }
/deep/.uni-searchbar{ /deep/.uni-searchbar{
width: 230px; width: 230px;
border-radius: 31rpx; border-radius: 31rpx;
position: relative; margin-right: 20rpx;
} }
.service-head-top-left image{ .service-head-top-left image{
width: 20px; width: 20px;
@ -480,13 +475,13 @@
} }
.service-head-top{ .service-head-top{
width: 100%; width: 100%;
height: 100rpx;
display: flex; display: flex;
flex-direction: row; flex-direction: row;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
background-color: #fff; background: linear-gradient(60deg,rgba(115, 212, 183, 0.2),rgba(227, 251, 244, 0.1),rgba(193, 236, 223, 0.35));
position: fixed; border-bottom:1rpx solid #c4ede1;
z-index: 999;
} }
.view-cata{ .view-cata{
display: flex; display: flex;
@ -520,12 +515,15 @@
.shop_label{ .shop_label{
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
margin-top: 10rpx;
} }
.shop_label span{ .shop_label span{
background: #e5e5e5; background: #f3f3f3;
height: 34rpx;
line-height: 34rpx;
border-radius: 8rpx; border-radius: 8rpx;
padding: 2rpx 8rpx; padding: 0 10rpx;
font-size: 20rpx; font-size: 22rpx;
margin-right: 8rpx; margin-right: 8rpx;
margin-bottom: 8rpx; margin-bottom: 8rpx;
} }