|
@@ -49,7 +49,7 @@
|
|
|
<view class="user-info">
|
|
|
<!-- <image class="head" :src="item.logoPath"></image> -->
|
|
|
<view class="user-name">
|
|
|
- {{item.shopName}}
|
|
|
+ {{item.goodsDescribe}}
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="price-box">
|
|
@@ -190,13 +190,12 @@
|
|
|
getMenu({currentPage:1,pageSize:5,userId,belongType:2}).then(res=>{
|
|
|
if(res.state == 'Success'){
|
|
|
this.typeList = res.content.records
|
|
|
- const redRoad = this.typeList.find(item=>item.columnName == '红色革命');
|
|
|
- // 把红色革命放到列表的第一个
|
|
|
- if(redRoad){
|
|
|
- this.typeList = this.typeList.filter(item=>item.columnName != '红色革命')
|
|
|
- this.typeList.unshift(redRoad)
|
|
|
- }
|
|
|
- console.log(res.content.records);
|
|
|
+ // const redRoad = this.typeList.find(item=>item.columnName == '红色革命');
|
|
|
+ // // 把红色革命放到列表的第一个
|
|
|
+ // if(redRoad){
|
|
|
+ // this.typeList = this.typeList.filter(item=>item.columnName != '红色革命')
|
|
|
+ // this.typeList.unshift(redRoad)
|
|
|
+ // }
|
|
|
}
|
|
|
})
|
|
|
},
|
|
@@ -424,6 +423,12 @@
|
|
|
.user-name{
|
|
|
color: #AAAAAA;
|
|
|
font-size: 24rpx;
|
|
|
+ // 超出部分变成...
|
|
|
+ display: -webkit-box;
|
|
|
+ -webkit-box-orient: vertical;
|
|
|
+ -webkit-line-clamp: 1;
|
|
|
+ overflow: hidden;
|
|
|
+ text-overflow: ellipsis;
|
|
|
// margin-left: 12rpx;
|
|
|
}
|
|
|
}
|
|
@@ -512,6 +517,10 @@
|
|
|
color: #AAAAAA;
|
|
|
font-size: 24rpx;
|
|
|
overflow: hidden;
|
|
|
+ text-overflow: ellipsis;
|
|
|
+ display: -webkit-box;
|
|
|
+ -webkit-box-orient: vertical;
|
|
|
+ -webkit-line-clamp: 1;
|
|
|
// margin-left: 12rpx;
|
|
|
}
|
|
|
}
|