约到店

This commit is contained in:
Mr.jiang 2024-08-01 14:29:43 +08:00
parent 33358afe67
commit 377203fea9
1 changed files with 288 additions and 235 deletions

View File

@ -9,10 +9,12 @@
<span>{{getText}}</span>
</view>
<view>
<uni-search-bar @service="serviceTrue" :cancelext="'取消'" v-model="searchValue" @input="input" @clear="clear">
<uni-search-bar @service="serviceTrue" :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>
@ -39,7 +41,7 @@
</view>
<view class="flex" style="margin-top: 10rpx;">
<view class="shop_label" v-if="item.tagsData!=''">
<span v-for="tag in item.tagsData" :key="tag">{{tag}}</span>
</view>
<view class="shop_label" v-else>
<span>助眠解压</span>
@ -115,9 +117,9 @@
this.getText = e.text
this.myId = uni.getStorageSync('userId')
// this.getData();
// uni.setNavigationBarTitle({
// title: this.getText,
// })
uni.setNavigationBarTitle({
title: this.getText,
})
},
// onPullDownRefresh: function() {
// this.page = 1;
@ -188,7 +190,7 @@
},
queryList(pageNo, pageSize) {
if (this.getText == '企业') {
const params = {
var params = {
page: pageNo,
limit: pageSize,
city: '长春',
@ -203,15 +205,16 @@
this.$refs.paging.complete(false);
})
} else {
const params = {
var params = {
page: pageNo,
limit: pageSize,
title: this.searchValue
}
this.$Request.get('/app/consortia/selectConsortiaList', params).then(res => {
for (var i = 0; i < res.data.list.length; i++) {
res.data.list[i].tagsData=res.data.list[i].labels.split(',');
res.data.list[i].tagsData = res.data.list[i].tags.split(',');
}
console.log("res.data.list",params)
this.$refs.paging.complete(res.data.list);
}).catch(res => {
this.$refs.paging.complete(false);
@ -230,7 +233,8 @@
itemClick(item) {
if (this.getText == '企业') {
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
})
} else {
uni.navigateTo({
@ -244,14 +248,15 @@
</script>
<style scoped>
/deep/.refresh-body .content {
background-color: #f7f7f7;
}
/deep/.refresh-body {
height: 100% !important;
border-top: 2px solid #f7f7f7;
}
.content-view {
width: 100%;
height: 100vh;
@ -259,6 +264,7 @@
background-color: #f7f7f7;
position: relative;
}
.item-view-bottom-btn {
text-align: center;
width: 131rpx;
@ -270,35 +276,42 @@
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: 26rpx;
color: #848484;
text-decoration-line: line-through;
margin-left: 5px;
}
.item-view-bottom-qian span:nth-child(3) {
font-size: 26rpx;
color: #848484;
text-decoration-line: line-through;
}
.item-view-bottom-qian span:nth-child(2) {
font-weight: bold;
font-size: 36.81rpx;
color: #FF6000;
}
.item-view-bottom-qian span:nth-child(1) {
font-weight: 400;
font-size: 26rpx;
color: #FF6000;
}
.item-view-bottom-qian {
margin-top: 2px;
}
.item-view-bottom {
width: 100%;
display: flex;
@ -306,6 +319,7 @@
justify-content: space-between;
align-items: center;
}
.item-view-jianjie {
font-weight: 400;
font-size: 24rpx;
@ -313,17 +327,21 @@
margin: 5px 0px;
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 {
background-color: #f1f8d7;
color: #58b314;
@ -331,25 +349,30 @@
padding: 3rpx 3rpx;
border-radius: 15rpx 15rpx 2rpx 2rpx;
}
.taishi {
background-color: #e5d5c6;
color: #805d39;
}
.kangfu {
background-color: #fcf3da;
color: #ff8600;
}
.item-view-xiangmu span:nth-child(2) {
font-weight: normal;
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;
@ -358,6 +381,7 @@
font-size: 25rpx;
align-items: flex-end;
}
.item-view-title {
width: 75%;
font-weight: bold;
@ -367,6 +391,7 @@
text-overflow: ellipsis;
white-space: nowrap;
}
.item-view {
width: 60%;
height: 100%;
@ -376,15 +401,18 @@
justify-content: space-between;
padding: 5rpx 0;
}
.item-img {
width: 240rpx;
height: 200rpx;
border-radius: 14rpx;
position: relative;
}
.item-img img {
border-radius: 14rpx;
}
.img-span {
padding: 2px 5px;
font-weight: 400;
@ -398,10 +426,12 @@
margin-bottom: 5px;
margin-right: 5px;
}
.item-img image {
width: 100%;
height: 100%;
}
.item {
width: 100%;
margin: 0 auto;
@ -415,6 +445,7 @@
align-items: center;
padding: 20rpx;
}
.item-detail {
padding: 5rpx 15rpx;
border-radius: 10rpx;
@ -431,20 +462,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;
@ -456,6 +491,7 @@
font-size: 34rpx;
color: #019C88;
}
.index-fenl-title-bottom {
position: absolute;
bottom: 0;
@ -465,9 +501,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;
@ -479,10 +517,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;
@ -493,17 +534,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;
@ -514,12 +558,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;
@ -527,11 +573,13 @@
align-items: center;
justify-content: space-between;
}
.view-cata {
display: flex;
flex-direction: row;
align-items: center;
}
.shop_category {
display: flex;
flex-wrap: wrap;
@ -541,9 +589,11 @@
padding: 8rpx 0;
margin-top: 40rpx;
}
.shop_category_a {
color: #019c88;
}
.shop_item {
display: flex;
flex-wrap: wrap;
@ -551,16 +601,19 @@
width: 90%;
margin: 15rpx auto;
}
.shop_color {
color: #fb672b;
font-weight: bold;
font-size: 38rpx;
}
.shop_label {
display: flex;
flex-wrap: wrap;
margin-top: 4rpx;
}
.shop_label span {
background: linear-gradient(90deg, #ffefde, #fff7ef);
height: 34rpx;
@ -572,6 +625,7 @@
margin-bottom: 8rpx;
color: #f68607;
}
.shop-arrow {
display: inline-block;
border-top: 1px solid;
@ -583,5 +637,4 @@
transform: rotate(45deg);
margin-top: 7px;
}
</style>