|
|
|
@ -121,13 +121,15 @@ const handleWeightChange = (val) => {
|
|
|
|
|
activeWeightKey.value = val
|
|
|
|
|
}
|
|
|
|
|
// 分类切换选中
|
|
|
|
|
const handleCategoryChange = (val) => {
|
|
|
|
|
const handleCategoryChange = (item) => {
|
|
|
|
|
if (!item.disabled) {
|
|
|
|
|
categoryList.forEach((e) => {
|
|
|
|
|
if (val == e.code) {
|
|
|
|
|
if (item.code == e.code) {
|
|
|
|
|
e.selected = !e.selected
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
// 预约回收
|
|
|
|
|
const handleBooking = async () => {
|
|
|
|
|
if (!isBooking.value) {
|
|
|
|
@ -232,7 +234,7 @@ const handlePopClose = (item) => {
|
|
|
|
|
'category-item',
|
|
|
|
|
]"
|
|
|
|
|
hover-class="none"
|
|
|
|
|
@click="handleCategoryChange(item.code)"
|
|
|
|
|
@click="handleCategoryChange(item)"
|
|
|
|
|
>
|
|
|
|
|
<view class="right">
|
|
|
|
|
<image class="icon" :src="item.icon"></image>
|
|
|
|
|