添加标签

This commit is contained in:
Mr.jiang 2024-07-13 14:21:23 +08:00
parent 99752b5910
commit 466f80ae06
8 changed files with 141 additions and 28 deletions

View File

@ -59,8 +59,8 @@
<span></span> <span></span>
<span>{{item.oldPrice}}/{{item.serviceCount}}</span> <span>{{item.oldPrice}}/{{item.serviceCount}}</span>
</view> </view>
<view class="item-view-jianjie"> <view class="shop_label" v-if="tagsData">
{{item.content}} <span v-for="tag in tagsData" :key="tag">{{tag}}</span>
</view> </view>
<view class="item-view-bottom"> <view class="item-view-bottom">
<view class="item-view-xiangmu"> <view class="item-view-xiangmu">
@ -91,7 +91,8 @@
serviceTrue:true, serviceTrue:true,
page:1, page:1,
limit:10, limit:10,
titleNmae:'' titleNmae:'',
tagsData:[]
} }
}, },
onLoad(){ onLoad(){
@ -119,6 +120,9 @@
this.$Request.get('/app/user/package/findMyPackageList', data).then(res => { this.$Request.get('/app/user/package/findMyPackageList', data).then(res => {
if (res.code == 0) { if (res.code == 0) {
this.dataList=res.data.records; this.dataList=res.data.records;
for(var i=0;i<this.dataList.length;i++){
this.tagsData=this.dataList[i].labels.split(',');
}
} }
}) })
}, },
@ -169,6 +173,18 @@
</script> </script>
<style scoped> <style scoped>
.shop_label{
display: flex;
flex-wrap: wrap;
}
.shop_label span{
background: #e5e5e5;
border-radius: 8rpx;
padding: 2rpx 8rpx;
font-size: 20rpx;
margin-right: 8rpx;
margin-bottom: 8rpx;
}
.item-view-bottom-qian{ .item-view-bottom-qian{
margin-top: 5px; margin-top: 5px;
} }

View File

@ -45,8 +45,8 @@
</view> </view>
</view> </view>
<view class="item-view-jianjie"> <view class="shop_label" v-if="tagsData">
{{item.content}} <span v-for="tag in tagsData" :key="tag">{{tag}}</span>
</view> </view>
<view class="item-view-bottom"> <view class="item-view-bottom">
<view class="item-view-xiangmu"> <view class="item-view-xiangmu">
@ -84,7 +84,8 @@
page:1, page:1,
limit:10, limit:10,
titleNmae:'', titleNmae:'',
classifyId:'' classifyId:'',
tagsData:[]
} }
}, },
onLoad(e){ onLoad(e){
@ -134,6 +135,9 @@
if (res.data) { if (res.data) {
if (this.page == 1) this.dataList = []; // if (this.page == 1) this.dataList = []; //
this.dataList = [...this.dataList, ...res.data.list]; // this.dataList = [...this.dataList, ...res.data.list]; //
for(var i=0;i<this.dataList.length;i++){
this.tagsData=this.dataList[i].labels.split(',');
}
uni.stopPullDownRefresh() uni.stopPullDownRefresh()
} }
} }
@ -177,6 +181,18 @@
</script> </script>
<style scoped> <style scoped>
.shop_label{
display: flex;
flex-wrap: wrap;
}
.shop_label span{
background: #e5e5e5;
border-radius: 8rpx;
padding: 2rpx 8rpx;
font-size: 20rpx;
margin-right: 8rpx;
margin-bottom: 8rpx;
}
/deep/.refresh-body{ /deep/.refresh-body{
height: 845px !important; height: 845px !important;
background-color: #f7f7f7; background-color: #f7f7f7;

View File

@ -59,8 +59,8 @@
<span style="text-decoration: line-through;">{{item.oldPrice}}/{{item.serviceCount}}</span> <span style="text-decoration: line-through;">{{item.oldPrice}}/{{item.serviceCount}}</span>
</view> </view>
<view class="item-view-jianjie"> <view class="shop_label" v-if="tagsData">
{{item.content}} <span v-for="tag in tagsData" :key="tag">{{tag}}</span>
</view> </view>
<view class="item-view-bottom"> <view class="item-view-bottom">
<view class="item-view-xiangmu"> <view class="item-view-xiangmu">
@ -91,7 +91,8 @@
serviceTrue:true, serviceTrue:true,
page:1, page:1,
limit:10, limit:10,
titleNmae:'' titleNmae:'',
tagsData:[]
} }
}, },
onLoad(){ onLoad(){
@ -119,6 +120,9 @@
this.$Request.get('/app/user/package/findMyPackageList', data).then(res => { this.$Request.get('/app/user/package/findMyPackageList', data).then(res => {
if (res.code == 0) { if (res.code == 0) {
this.dataList=res.data.records; this.dataList=res.data.records;
for(var i=0;i<this.dataList.length;i++){
this.tagsData=this.dataList[i].labels.split(',');
}
} }
}) })
}, },
@ -169,6 +173,18 @@
</script> </script>
<style scoped> <style scoped>
.shop_label{
display: flex;
flex-wrap: wrap;
}
.shop_label span{
background: #e5e5e5;
border-radius: 8rpx;
padding: 2rpx 8rpx;
font-size: 20rpx;
margin-right: 8rpx;
margin-bottom: 8rpx;
}
.item-view-bottom-qian{ .item-view-bottom-qian{
margin-top: 5px; margin-top: 5px;
} }

View File

@ -38,8 +38,8 @@
<span style="text-decoration: line-through; color: #999;margin-left: 5px;">{{item.oldPrice}}</span> <span style="text-decoration: line-through; color: #999;margin-left: 5px;">{{item.oldPrice}}</span>
</view> </view>
</view> </view>
<view class="item-view-jianjie"> <view class="shop_label" v-if="tagsData">
{{item.jianjie}} <span v-for="tag in tagsData" :key="tag">{{tag}}</span>
</view> </view>
<view class="item-view-bottom"> <view class="item-view-bottom">
@ -78,7 +78,8 @@
page:1, page:1,
limit:10, limit:10,
titleNmae:'', titleNmae:'',
classifyId:'' classifyId:'',
tagsData:[]
} }
}, },
onLoad(){ onLoad(){
@ -139,6 +140,9 @@
if (res.data) { if (res.data) {
if (this.page == 1) this.dataList = []; // if (this.page == 1) this.dataList = []; //
this.dataList = [...this.dataList, ...res.data.list]; // this.dataList = [...this.dataList, ...res.data.list]; //
for(var i=0;i<this.dataList.length;i++){
this.tagsData=this.dataList[i].labels.split(',');
}
uni.stopPullDownRefresh() uni.stopPullDownRefresh()
} }
} }
@ -169,6 +173,18 @@
</script> </script>
<style scoped> <style scoped>
.shop_label{
display: flex;
flex-wrap: wrap;
}
.shop_label span{
background: #e5e5e5;
border-radius: 8rpx;
padding: 2rpx 8rpx;
font-size: 20rpx;
margin-right: 8rpx;
margin-bottom: 8rpx;
}
/deep/.z-tabs-item-title{ /deep/.z-tabs-item-title{
font-size: 30rpx; font-size: 30rpx;
color: #222; color: #222;

View File

@ -19,8 +19,8 @@
<span class="xiaoer item-view-biao">{{item.classifyName}}</span> <span class="xiaoer item-view-biao">{{item.classifyName}}</span>
<span>已售{{item.sales}} | 好评{{item.esteemRate}}%</span> <span>已售{{item.sales}} | 好评{{item.esteemRate}}%</span>
</view> --> </view> -->
<view class="item-view-jianjie"> <view class="shop_label" v-if="tagsData">
{{item.content}} <span v-for="tag in tagsData" :key="tag">{{tag}}</span>
</view> </view>
<view class="item-view-bottom"> <view class="item-view-bottom">
<view class="item-view-bottom-qian"> <view class="item-view-bottom-qian">
@ -66,7 +66,8 @@
page:1, page:1,
limit:10, limit:10,
titleNmae:'', titleNmae:'',
classifyId:'' classifyId:'',
tagsData:[]
} }
}, },
onLoad(){ onLoad(){
@ -111,6 +112,9 @@
if (res.data) { if (res.data) {
if (this.page == 1) this.dataList = []; // if (this.page == 1) this.dataList = []; //
this.dataList = [...this.dataList, ...res.data.records]; // this.dataList = [...this.dataList, ...res.data.records]; //
for(var i=0;i<this.dataList.length;i++){
this.tagsData=this.dataList[i].labels.split(',');
}
uni.stopPullDownRefresh() uni.stopPullDownRefresh()
} }
} }
@ -149,6 +153,18 @@
</script> </script>
<style scoped> <style scoped>
.shop_label{
display: flex;
flex-wrap: wrap;
}
.shop_label span{
background: #e5e5e5;
border-radius: 8rpx;
padding: 2rpx 8rpx;
font-size: 20rpx;
margin-right: 8rpx;
margin-bottom: 8rpx;
}
.header-bottom-title-liao{ .header-bottom-title-liao{
display: inline-block; display: inline-block;
padding: 1px 10px; padding: 1px 10px;

View File

@ -32,8 +32,8 @@
<span></span> <span></span>
<span>{{item.oldPrice}}<text v-if="item.type!='104'">/{{item.serviceCount}}</text>{{typeData=='104'?'':typeData=='105'?'':''}}</span> <span>{{item.oldPrice}}<text v-if="item.type!='104'">/{{item.serviceCount}}</text>{{typeData=='104'?'':typeData=='105'?'':''}}</span>
</view> </view>
<view class="item-view-jianjie"> <view class="shop_label" v-if="tagsData">
{{item.content}} <span v-for="tag in tagsData" :key="tag">{{tag}}</span>
</view> </view>
<view class="item-view-bottom"> <view class="item-view-bottom">
<view class="item-view-xiangmu"> <view class="item-view-xiangmu">
@ -72,6 +72,7 @@
titleNmae:'', titleNmae:'',
classifyId:'', classifyId:'',
getName:'', getName:'',
tagsData:[]
} }
}, },
onLoad(e){ onLoad(e){
@ -120,6 +121,9 @@
if (res.data) { if (res.data) {
if (this.page == 1) this.dataList = []; // if (this.page == 1) this.dataList = []; //
this.dataList = [...this.dataList, ...res.data.list]; // this.dataList = [...this.dataList, ...res.data.list]; //
for(var i=0;i<this.dataList.length;i++){
this.tagsData=this.dataList[i].labels.split(',');
}
uni.stopPullDownRefresh() uni.stopPullDownRefresh()
} }
} }
@ -155,6 +159,18 @@
</script> </script>
<style scoped> <style scoped>
.shop_label{
display: flex;
flex-wrap: wrap;
}
.shop_label span{
background: #e5e5e5;
border-radius: 8rpx;
padding: 2rpx 8rpx;
font-size: 20rpx;
margin-right: 8rpx;
margin-bottom: 8rpx;
}
.item-view-bottom-qian{ .item-view-bottom-qian{
margin-top: 5px; margin-top: 5px;
} }

View File

@ -59,8 +59,8 @@
<span></span> <span></span>
<span>{{item.oldPrice}}/</span> <span>{{item.oldPrice}}/</span>
</view> </view>
<view class="item-view-jianjie"> <view class="shop_label" v-if="tagsData">
{{item.content}} <span v-for="tag in tagsData" :key="tag">{{tag}}</span>
</view> </view>
<view class="item-view-bottom"> <view class="item-view-bottom">
<view class="item-view-xiangmu"> <view class="item-view-xiangmu">
@ -91,7 +91,8 @@
serviceTrue:true, serviceTrue:true,
page:1, page:1,
limit:10, limit:10,
titleNmae:'' titleNmae:'',
tagsData:[]
} }
}, },
onLoad(){ onLoad(){
@ -118,6 +119,9 @@
this.$Request.get('/app/user/package/findMyPackageList', data).then(res => { this.$Request.get('/app/user/package/findMyPackageList', data).then(res => {
if (res.code == 0) { if (res.code == 0) {
this.dataList=res.data.records; this.dataList=res.data.records;
for(var i=0;i<this.dataList.length;i++){
this.tagsData=this.dataList[i].labels.split(',');
}
} }
}) })
}, },
@ -169,6 +173,18 @@
</script> </script>
<style scoped> <style scoped>
.shop_label{
display: flex;
flex-wrap: wrap;
}
.shop_label span{
background: #e5e5e5;
border-radius: 8rpx;
padding: 2rpx 8rpx;
font-size: 20rpx;
margin-right: 8rpx;
margin-bottom: 8rpx;
}
.img-span{ .img-span{
padding: 2px 5px; padding: 2px 5px;
font-weight: 400; font-weight: 400;

View File

@ -514,6 +514,14 @@
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
} }
.shop_label span{
background: #e5e5e5;
border-radius: 8rpx;
padding: 2rpx 8rpx;
font-size: 20rpx;
margin-right: 8rpx;
margin-bottom: 8rpx;
}
.shop-arrow{ .shop-arrow{
display: inline-block; display: inline-block;
border-top: 1px solid; border-top: 1px solid;
@ -525,12 +533,5 @@
transform: rotate(45deg); transform: rotate(45deg);
margin-top: 7px; margin-top: 7px;
} }
.shop_label span{
background: #e5e5e5;
border-radius: 8rpx;
padding: 2rpx 8rpx;
font-size: 20rpx;
margin-right: 8rpx;
margin-bottom: 8rpx;
}
</style> </style>