|
@@ -32,15 +32,9 @@
|
|
|
<view class="item-title">
|
|
|
<text>{{item.name}}</text>
|
|
|
</view>
|
|
|
- <view class="item-box" v-for="itm of item.foods" :key="idx">
|
|
|
- <view class="item-l">
|
|
|
- <img class="l-img" src="@/static/QR57a.jpg" alt="">
|
|
|
- </view>
|
|
|
- <view class="item-r">
|
|
|
- <p class='p1'>yizhiyang的鲜花{{itm.name}}11111111111111</p>
|
|
|
- <p class='p2'>月售100</p>
|
|
|
- <p class='p2'>库存90</p>
|
|
|
- <p class='p3'>¥100起</p>
|
|
|
+ <view class="item-box" >
|
|
|
+ <view class="item" v-for="(itm,idx) of item.foods" :key="idx" :class="itm.type ? 'act-type' : ''" @click="handlerSelectItem(itm,idx)">
|
|
|
+ {{ itm.name }}
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -70,19 +64,22 @@
|
|
|
"cat": 383,
|
|
|
"name": "蔬菜",
|
|
|
"icon": "http://nq348.com/uploads/category/20220315/1aeed6fa43b54cd68cce0c4883160f91.png",
|
|
|
- "key": "蔬菜"
|
|
|
+ "key": "蔬菜",
|
|
|
+ "type":false
|
|
|
},
|
|
|
{
|
|
|
"cat": 384,
|
|
|
"name": "食用菌",
|
|
|
"icon": "http://nq348.com/uploads/category/20220418/09839c618b35b510d50151f9a17793ee.png",
|
|
|
- "key": "食用菌"
|
|
|
+ "key": "食用菌",
|
|
|
+ "type":false
|
|
|
},
|
|
|
{
|
|
|
"cat": 385,
|
|
|
"name": "水果",
|
|
|
"icon": "http://nq348.com/uploads/category/20220418/5294ad2fc7effc9629cbfdb8baf41773.png",
|
|
|
- "key": "水果"
|
|
|
+ "key": "水果",
|
|
|
+ "type":false
|
|
|
}
|
|
|
]
|
|
|
},
|
|
@@ -92,33 +89,37 @@
|
|
|
"cat": 434,
|
|
|
"name": "包装",
|
|
|
"icon": "http://nq348.com/uploads/category/20220418/ebdfd326333344825adbe81dbd89e2c9.png",
|
|
|
- "key": "包装"
|
|
|
+ "key": "包装",
|
|
|
+ "type":false
|
|
|
},
|
|
|
{
|
|
|
"cat": 435,
|
|
|
"name": "安全溯源",
|
|
|
"icon": "http://nq348.com/uploads/category/20220418/03230c63f066f46005abf5f576df0ed1.png",
|
|
|
- "key": "安全溯源"
|
|
|
+ "key": "安全溯源",
|
|
|
+ "type":false
|
|
|
},
|
|
|
{
|
|
|
"cat": 436,
|
|
|
"name": "农用百货",
|
|
|
"icon": "http://nq348.com/uploads/category/20220418/93393f2df3264faba86bb449a0c10a79.png",
|
|
|
- "key": "农用百货"
|
|
|
+ "key": "农用百货",
|
|
|
+ "type":false
|
|
|
},
|
|
|
{
|
|
|
"cat": 437,
|
|
|
"name": "仓储物流",
|
|
|
"icon": "http://nq348.com/uploads/category/20220418/f553505ebabbcb1bf762b288716cf1e7.png",
|
|
|
- "key": "仓储物流"
|
|
|
+ "key": "仓储物流",
|
|
|
+ "type":false
|
|
|
}
|
|
|
]
|
|
|
}
|
|
|
],
|
|
|
list1: [{
|
|
|
- name: '在售中',
|
|
|
+ name: '主营服务',
|
|
|
}, {
|
|
|
- name: '已下架',
|
|
|
+ name: '辅盈服务(选填)',
|
|
|
}],
|
|
|
}
|
|
|
},
|
|
@@ -266,6 +267,11 @@
|
|
|
this.delete_type = false
|
|
|
}
|
|
|
},
|
|
|
+ // 选择类型
|
|
|
+ handlerSelectItem(itm,idx){
|
|
|
+ console.log('itm',itm,idx);
|
|
|
+ itm.type = !itm.type
|
|
|
+ },
|
|
|
// 跳转到下一步
|
|
|
handlerSkipNext(){
|
|
|
uni.navigateTo({
|
|
@@ -395,47 +401,20 @@
|
|
|
}
|
|
|
|
|
|
.item-box {
|
|
|
- display: flex;
|
|
|
- margin-bottom: 10rpx;
|
|
|
-
|
|
|
- .item-l {
|
|
|
- border: 2rpx solid #EEF0F0;
|
|
|
- border-radius: 20rpx;
|
|
|
- margin-right: 20rpx;
|
|
|
-
|
|
|
- .l-img {
|
|
|
- width: 140rpx;
|
|
|
- height: 130rpx;
|
|
|
- border-radius: 20rpx;
|
|
|
- }
|
|
|
+ display: grid;
|
|
|
+ grid-template-columns: 30% 30% 30%;
|
|
|
+ justify-content: space-between;
|
|
|
+ .item{
|
|
|
+ margin-bottom: 10rpx;
|
|
|
+ background-color: #EDEBEB;
|
|
|
+ color:#000;
|
|
|
+ padding: 10rpx;
|
|
|
+ text-align: center;
|
|
|
+ border-radius: 10rpx;
|
|
|
}
|
|
|
-
|
|
|
- .item-r {
|
|
|
-
|
|
|
- .p1,
|
|
|
- .type_p1 {
|
|
|
- width: 350rpx;
|
|
|
- font-size: 28rpx;
|
|
|
- color: #000;
|
|
|
- margin-bottom: 5rpx;
|
|
|
- overflow-x: hidden;
|
|
|
- text-overflow: ellipsis;
|
|
|
- white-space: nowrap;
|
|
|
- }
|
|
|
-
|
|
|
- .type_p1 {
|
|
|
- width: 480rpx;
|
|
|
- }
|
|
|
-
|
|
|
- .p2 {
|
|
|
- font-size: 24rpx;
|
|
|
- color: #A4A5AD;
|
|
|
- }
|
|
|
-
|
|
|
- .p3 {
|
|
|
- font-size: 26rpx;
|
|
|
- color: #D6534D;
|
|
|
- }
|
|
|
+ .act-type{
|
|
|
+ border: 2rpx solid #5992BB !important;
|
|
|
+ color: #5992BB !important;
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -457,7 +436,7 @@
|
|
|
color: #fff;
|
|
|
font-size: 32rpx;
|
|
|
border-radius: 40rpx;
|
|
|
- margin-top: 40rpx;
|
|
|
+ margin-bottom: 40rpx;
|
|
|
width: 95%;
|
|
|
}
|
|
|
::v-deep .u-input--radius.data-v-fdbb9fe6,
|