|
@@ -3,7 +3,7 @@
|
|
|
<view class="cat-list-area">
|
|
<view class="cat-list-area">
|
|
|
<view v-for="item in allCategory" :key="item.id" :class="[currentCategory.id===item.id?'active':'']" @click="changeCategory(item)" > {{item.categoryName}} </view>
|
|
<view v-for="item in allCategory" :key="item.id" :class="[currentCategory.id===item.id?'active':'']" @click="changeCategory(item)" > {{item.categoryName}} </view>
|
|
|
</view>
|
|
</view>
|
|
|
- <view class="num-area" v-if="currentCategory.flower && currentCategory.flower ==1">
|
|
|
|
|
|
|
+ <view class="num-area">
|
|
|
<view v-for="info in flowerNumList" :class="[flowerNum===info.num?'selected':'']" @click="setNum(info)" :key="info.num">{{info.name}}</view>
|
|
<view v-for="info in flowerNumList" :class="[flowerNum===info.num?'selected':'']" @click="setNum(info)" :key="info.num">{{info.name}}</view>
|
|
|
</view>
|
|
</view>
|
|
|
<scroll-view class="shop-show_box" enable-flex="true" scroll-y="true" lower-threshold="20" @scrolltolower="reachBottom">
|
|
<scroll-view class="shop-show_box" enable-flex="true" scroll-y="true" lower-threshold="20" @scrolltolower="reachBottom">
|
|
@@ -172,7 +172,9 @@ export default {
|
|
|
display: flex;
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
flex-direction: column;
|
|
|
box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
|
|
|
+ align-items: center;
|
|
|
& .cat-list-area {
|
|
& .cat-list-area {
|
|
|
|
|
+ justify-content:flex-start;
|
|
|
max-height: 300upx;
|
|
max-height: 300upx;
|
|
|
display: flex;
|
|
display: flex;
|
|
|
align-items: center;
|
|
align-items: center;
|
|
@@ -182,9 +184,11 @@ export default {
|
|
|
& > view {
|
|
& > view {
|
|
|
border:1px solid #e4e4e4;
|
|
border:1px solid #e4e4e4;
|
|
|
padding: 12upx 0upx;
|
|
padding: 12upx 0upx;
|
|
|
- font-size: 15px;
|
|
|
|
|
- min-width: 75upx;
|
|
|
|
|
|
|
+ font-size: 12px;
|
|
|
|
|
+ width: 68upx;
|
|
|
text-align: center;
|
|
text-align: center;
|
|
|
|
|
+ overflow: hidden;
|
|
|
|
|
+ white-space: nowrap;
|
|
|
&.active {
|
|
&.active {
|
|
|
background-color: #428369;
|
|
background-color: #428369;
|
|
|
color: #ffffff;
|
|
color: #ffffff;
|
|
@@ -194,17 +198,18 @@ export default {
|
|
|
& .num-area{
|
|
& .num-area{
|
|
|
display: flex;
|
|
display: flex;
|
|
|
flex-wrap: wrap;
|
|
flex-wrap: wrap;
|
|
|
- margin:8upx 0 8upx 0;
|
|
|
|
|
|
|
+ margin:5upx 0 5upx 0;
|
|
|
|
|
+ width:100%;
|
|
|
justify-content:space-around;
|
|
justify-content:space-around;
|
|
|
& > view {
|
|
& > view {
|
|
|
border:1upx solid #CCCCCC;
|
|
border:1upx solid #CCCCCC;
|
|
|
- width:30upx;
|
|
|
|
|
|
|
+ width:25upx;
|
|
|
height:25upx;
|
|
height:25upx;
|
|
|
border-radius:13upx;
|
|
border-radius:13upx;
|
|
|
display:flex;
|
|
display:flex;
|
|
|
justify-content:center;
|
|
justify-content:center;
|
|
|
align-items: center;
|
|
align-items: center;
|
|
|
- font-size:12upx;
|
|
|
|
|
|
|
+ font-size:11upx;
|
|
|
color:#666666;
|
|
color:#666666;
|
|
|
}
|
|
}
|
|
|
& .selected{
|
|
& .selected{
|
|
@@ -223,17 +228,17 @@ export default {
|
|
|
flex-wrap: wrap;
|
|
flex-wrap: wrap;
|
|
|
overflow-y: scroll;
|
|
overflow-y: scroll;
|
|
|
overflow-x: hidden;
|
|
overflow-x: hidden;
|
|
|
- height:90vh;
|
|
|
|
|
|
|
+ height:70vh;
|
|
|
|
|
+ justify-content:space-around;
|
|
|
& .show-shop_box{
|
|
& .show-shop_box{
|
|
|
& .item-detail{
|
|
& .item-detail{
|
|
|
position: relative;
|
|
position: relative;
|
|
|
- margin-right: 9upx;
|
|
|
|
|
margin-bottom: 6upx;
|
|
margin-bottom: 6upx;
|
|
|
- width: 82upx;
|
|
|
|
|
- height: 82upx;
|
|
|
|
|
|
|
+ width: 72upx;
|
|
|
|
|
+ height: 72upx;
|
|
|
& .img {
|
|
& .img {
|
|
|
- width: 82upx;
|
|
|
|
|
- height: 82upx;
|
|
|
|
|
|
|
+ width: 72upx;
|
|
|
|
|
+ height: 72upx;
|
|
|
}
|
|
}
|
|
|
.shop-info_price {
|
|
.shop-info_price {
|
|
|
position: absolute;
|
|
position: absolute;
|
|
@@ -242,14 +247,14 @@ export default {
|
|
|
width: 100%;
|
|
width: 100%;
|
|
|
font-size: 12upx;
|
|
font-size: 12upx;
|
|
|
color: #ffffff;
|
|
color: #ffffff;
|
|
|
- height:25upx;
|
|
|
|
|
|
|
+ height:22upx;
|
|
|
& > view {
|
|
& > view {
|
|
|
- font-size: 10upx;
|
|
|
|
|
& > view:nth-child(1) {
|
|
& > view:nth-child(1) {
|
|
|
overflow: hidden;
|
|
overflow: hidden;
|
|
|
text-overflow:ellipsis;
|
|
text-overflow:ellipsis;
|
|
|
white-space: nowrap;
|
|
white-space: nowrap;
|
|
|
width:90%;
|
|
width:90%;
|
|
|
|
|
+ font-size: 9upx;
|
|
|
}
|
|
}
|
|
|
& > view:nth-child(2) {
|
|
& > view:nth-child(2) {
|
|
|
font-size:8upx;
|
|
font-size:8upx;
|