女性专区 加侧边

This commit is contained in:
Mr.jiang 2024-08-20 16:57:41 +08:00
parent 653b59dd4a
commit 80e36d89d0
2 changed files with 374 additions and 254 deletions

View File

@ -162,7 +162,6 @@
<view class="index-taocan-view-nav" v-for="item in felNav" :key="item.id" @click="chengFel(item)">
<view class="index-taocan-view-nav-s">
<span class="index-taocan-view-nav-text" :class="[currentTabFl==item.id?'activeL':'activeH']">{{item.name}}</span>
<span class="index-taocan-view-nav-jie" :class="[currentTabFl==item.id?'activeXL':'activeXH']">{{item.content}}</span>
</view>
<view class="fenjie"></view>
</view>
@ -343,23 +342,19 @@
tjData:[],
felNav:[{
id:1,
content: '大家常买',
name: '热门精选'
name: '大家常买'
},
{
id:2,
content: '优惠提前享',
name: '推荐套餐'
name: '行业大拿'
},
{
id:3,
name: '专业培训',
content: '特色专业'
name: '女性专区',
},
{
id:4,
name: '更多优惠',
content: '更多'
name: '全部项目',
},
],
scrollLeft:0,
@ -1127,23 +1122,23 @@
},
chengFel(item){//
this.currentTabFl=item.id;
if(this.currentTabFl=='1'){
if(this.currentTabFl=='1'){//
this.remen()
}else if(this.currentTabFl=='2'){
}else if(this.currentTabFl=='2'){//
this.tjtaocan()
}else if(this.currentTabFl=='3'){
}else if(this.currentTabFl=='3'){//
uni.navigateTo({
url:'/pages/my/fuwuxiangm'
})
}else{
}else{//
uni.navigateTo({
url:'/pages/my/fuwuGengduo'
})
}
},
tjtaocan(){//
this.$Request.get("/app/massage/package/findPage", {
type:'104',
tjtaocan(){//
this.$Request.get("/app/artificer/selectArtificerList", {
isGoods:1,
page:'1',
limit:'4'
}).then(res => {
@ -1157,10 +1152,8 @@
}
});
},
remen(){//
this.$Request.get("/app/artificer/selectMassageTypePage", {
by: '3',
status:'1',
remen(){//
this.$Request.get("/app/massage/package/findPackageAndMassagePage", {
page:'1',
limit:'4'
}).then(res => {

View File

@ -9,22 +9,38 @@
<span>服务项目</span>
</view>
<view>
<uni-search-bar @service="serviceTrue" @confirm="search" :cancelext="'取消'" v-model="searchValue" @input="input" @clear="clear">
<uni-search-bar @service="serviceTrue" @confirm="search" :cancelext="'取消'" v-model="searchValue"
@input="input" @clear="clear">
</uni-search-bar>
<view class="search-btn" @click="searchBtn">
<image style="width:30rpx; height:30rpx; margin-right: 10rpx;" src="../../static/search.png"></image>
<image style="width:30rpx; height:30rpx; margin-right: 10rpx;"
src="../../static/search.png"></image>
搜索
</view>
</view>
</view>
<view class="fenlei">
<z-tabs class="z-tabs-fenlei" :list="tabList" @change="tabChange" @changeClick="changeClick"/>
</view>
</template>
<template #loadingMoreNoMore>
<custom-nomore />
</template>
<view class="item" v-for="(item,index) in dataList" :key="index" @click="itemClick(item)">
<!-- 右侧商品 -->
<!-- 主体部分 -->
<view class="body">
<!-- 左侧分类 -->
<view class="leftTab">
<scroll-view scroll-y="true" class="tabBox">
<block v-for="(item,index) in tabList" :key="index">
<view class="tabItem" :class="tabCurrent == index?'tabActive':''" @click="changeTab(index,item)">
{{item.value}}
</view>
</block>
</scroll-view>
</view>
<!-- 右侧商品 -->
<view class="rightGoods">
<!-- <view class="title">{{productTitle}}</view> -->
<view class="item" v-for="(item,index) in dataList" :key="index+'2'" @click="itemClick(item)">
<view class="item-img">
<image :src="item.massageImg" mode=""></image>
</view>
@ -56,6 +72,8 @@
</view>
</view>
</view>
</view>
</view>
</z-paging>
</view>
</template>
@ -76,7 +94,11 @@
limit: 10,
titleNmae: '',
classifyId: '',
tagsData:[]
tagsData: [],
//
tabCurrent: 0,
productTitle: '氧气罐',
fromStore: false, //
}
},
onLoad() {
@ -104,11 +126,13 @@
tabNav() {
let data = {
type: "服务类型",
remark:'女性专区'
}
this.$Request.get('/app/dict/list', data).then(res => {
if (res.code == 0) {
this.tabList = res.data;
this.classifyId=res.data[0].id;
this.classifyId=res.data[0].id,
this.productTitle = this.tabList[0].value
this.page = 1;
this.dataList = []
this.getData()
@ -163,7 +187,9 @@
this.$refs.paging.complete(false);
})
},
changeClick(index,item){
changeTab(index,item) {
this.tabCurrent = index
this.productTitle = this.tabList[index].value
this.classifyId = item.id
this.searchValue = ''
this.page = 1;
@ -180,14 +206,72 @@
},
itemClick(item) {
uni.navigateTo({
url:'/pages/my/fuwuDateil?id='+item.massageTypeId+'&limit='+this.limit+'&page='+this.page+'&name='+'index'+'&isCanCoupon='+item.isCanCoupon
url: '/pages/my/fuwuDateil?id=' + item.massageTypeId + '&limit=' + this.limit + '&page=' + this
.page + '&name=' + 'index' + '&isCanCoupon=' + item.isCanCoupon
})
}
}
}
</script>
<style scoped>
<style lang="scss" scoped>
.body {
height: 100vh;
display: flex;
justify-content: space-between;
.leftTab {
width: 177rpx;
height: 100%;
background: #ffffff;
border-radius: 0px 15rpx 0px 0px;
padding: 24rpx 11rpx;
box-sizing: border-box;
.tabBox {
height: 100%;
.tabItem {
text-align: center;
padding: 14rpx 0;
border-radius: 60rpx;
color: #464646;
font-size: 26rpx;
font-weight: bold;
margin-bottom: 20rpx;
}
.tabActive {
background: #60B347;
color: #ffffff;
}
}
}
.rightGoods {
width: 573rpx;
height: 100%;
padding: 0 16rpx 27rpx;
box-sizing: border-box;
.whiteBox {
height: 100%;
background: #ffffff;
border-radius: 15rpx;
padding: 0 25rpx;
box-sizing: border-box;
.title {
height: 77rpx;
line-height: 77rpx;
color: #2D2D2D;
font-size: 26rpx;
font-weight: bold;
}
}
}
}
.tab-view {
width: 100%;
display: flex;
@ -198,11 +282,13 @@
border-bottom: 1rpx solid #c4ede1;
padding-top: 6rpx;
}
.shop_label {
display: flex;
flex-wrap: wrap;
margin-top: 4rpx;
}
.shop_label span {
background: linear-gradient(90deg, #ffefde, #fff7ef);
height: 34rpx;
@ -214,22 +300,26 @@
margin-bottom: 8rpx;
color: #f68607;
}
/deep/.z-tabs-item-title {
color: #222;
}
/deep/.refresh-body .content{
}
/deep/.refresh-body .content {}
/deep/.refresh-body {
height: 100% !important;
border-top: 2px solid #f7f7f7;
margin: 80px 0px;
}
.content-view {
width: 100%;
height: 100vh;
overflow: hidden;
background-color: #f7f7f7;
}
.item-view-bottom-btn {
text-align: center;
width: 131rpx;
@ -241,32 +331,38 @@
font-size: 28rpx;
color: #FFFFFF;
}
.item-view-bottom-qian span:nth-child(5) {
font-size: 28rpx;
color: #848484;
text-decoration-line: line-through;
}
.item-view-bottom-qian span:nth-child(4) {
font-size: 28rpx;
color: #848484;
text-decoration-line: line-through;
}
.item-view-bottom-qian span:nth-child(3) {
font-size: 28rpx;
color: #848484;
text-decoration-line: line-through;
margin-left: 5px;
}
.item-view-bottom-qian span:nth-child(2) {
font-weight: bold !important;
font-size: 36.81rpx !important;
color: #FF6000 !important;
}
.item-view-bottom-qian span:nth-child(1) {
font-weight: 400;
font-size: 28rpx;
color: #FF6000;
}
.item-view-bottom-qian {
margin-top: 2px;
}
@ -278,23 +374,28 @@
justify-content: space-between;
align-items: center;
}
.item-view-jianjie {
font-weight: 400;
font-size: 24rpx;
color: #999;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2; /* 显示的行数,可以根据需要修改 */
-webkit-line-clamp: 2;
/* 显示的行数,可以根据需要修改 */
overflow: hidden;
text-overflow: ellipsis;
}
.item-view-biao {
border-radius: 15rpx 3rpx 15rpx 3rpx;
}
.tuina {
background-color: #d1f2df;
color: #17984d;
}
.xiaoer {
width: 120rpx;
height: 35rpx;
@ -304,10 +405,12 @@
color: #58b314;
font-size: 20rpx;
}
.taishi {
background-color: #e5d5c6;
color: #805d39;
}
.kangfu {
background-color: #fcf3da;
color: #ff8600;
@ -318,12 +421,14 @@
color: #333333;
font-size: 30rpx;
}
.item-view-xiangmu span:nth-child(1) {
font-weight: normal;
color: #666666;
margin-right: 5rpx;
font-size: 30rpx;
}
.item-view-xiangmu {
width: 100%;
display: flex;
@ -332,6 +437,7 @@
font-size: 25rpx;
align-items: flex-end;
}
.item-view-title {
width: 76%;
font-weight: bold;
@ -341,6 +447,7 @@
text-overflow: ellipsis;
white-space: nowrap;
}
.item-view {
width: 60%;
height: 100%;
@ -350,12 +457,14 @@
justify-content: space-between;
padding: 5rpx 0;
}
.item-img {
width: 240rpx;
height: 200rpx;
border-radius: 14rpx;
position: relative;
}
.img-span {
padding: 2px 5px;
font-weight: 400;
@ -369,11 +478,13 @@
margin-bottom: 5px;
margin-right: 5px;
}
.item-img image {
width: 100%;
height: 100%;
border-radius: 14rpx;
}
.item {
width: 100%;
margin: 0 auto;
@ -404,20 +515,24 @@
width: 100%;
background-color: #eeeeee;
}
/deep/.zp-paging-container {
background-color: #f7f7f7;
width: 100%;
}
/deep/.zp-paging-container-content {
width: 95%;
margin: 0 auto;
}
.fenlei {
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
}
.index-fenl-title {
width: 81rpx;
text-align: center;
@ -429,6 +544,7 @@
font-size: 34rpx;
color: #019C88;
}
.index-fenl-title-bottom {
position: absolute;
bottom: 0;
@ -438,9 +554,11 @@
border-radius: 7rpx;
background: linear-gradient(-48deg, rgba(1, 156, 136, 0.35), rgba(45, 196, 142, 0.35));
}
/deep/.uni-searchbar__cancel {
display: none;
}
.search-btn {
text-align: center;
color: #019c88;
@ -452,10 +570,13 @@
display: flex;
align-items: center;
}
/deep/.uni-searchbar__box-icon-search,.search-btn{
/deep/.uni-searchbar__box-icon-search,
.search-btn {
width: 110rpx;
height: 50rpx;
}
/deep/.uni-searchbar__box {
height: 34px;
border-radius: 30px !important;
@ -466,17 +587,20 @@
flex-flow: row-reverse;
position: relative;
}
/deep/.uni-searchbar {
width: 250px;
border-radius: 31rpx;
padding-right: 24rpx;
}
.service-head-top-left image {
width: 20px;
height: 20rpx;
margin-right: 5px;
margin-left: 10rpx;
}
.service-head-top-left span {
width: 180rpx;
height: 60rpx;
@ -487,12 +611,14 @@
color: #171717;
margin-top: 14rpx;
}
.service-head-top-left {
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
}
.service-head-top {
height: 90rpx;
display: flex;
@ -500,6 +626,7 @@
align-items: center;
justify-content: space-between;
}
.view-cata {
display: flex;
flex-direction: row;