|
|
@ -42,10 +42,10 @@ |
|
|
|
:list="category[current].children" |
|
|
|
:current="currentChildren" |
|
|
|
keyName="name" |
|
|
|
:chain="true" |
|
|
|
:chain="false" |
|
|
|
@change="change"> |
|
|
|
<!-- <view class="list"> --> |
|
|
|
<template v-for="(item, index) in category[current].children"> |
|
|
|
<!-- <template v-for="(item, index) in category[current].children"> |
|
|
|
<uv-vtabs-item :index="index" :key="index"> |
|
|
|
<view class="category-item"> |
|
|
|
<view class="category-title"> |
|
|
@ -57,9 +57,18 @@ |
|
|
|
@click="$utils.navigateTo(`/pages_order/product/productDetail?id=${pro.id}`)" /> |
|
|
|
</view> |
|
|
|
</uv-vtabs-item> |
|
|
|
</template> |
|
|
|
<uv-empty mode="list" v-if="category[current].children.length == 0"></uv-empty> |
|
|
|
</template> --> |
|
|
|
<!-- </view> --> |
|
|
|
|
|
|
|
<uv-vtabs-item> |
|
|
|
<view class="category-item"> |
|
|
|
<productItem :item="pro" |
|
|
|
v-for="(pro, i) in categoryList.shopList" :key="i" |
|
|
|
@click="$utils.navigateTo(`/pages_order/product/productDetail?id=${pro.id}`)" /> |
|
|
|
|
|
|
|
<uv-empty v-if="categoryList.shopList.length == 0" text="还没有呢"/> |
|
|
|
</view> |
|
|
|
</uv-vtabs-item> |
|
|
|
</uv-vtabs> |
|
|
|
</view> |
|
|
|
|
|
|
@ -91,7 +100,10 @@ |
|
|
|
} |
|
|
|
}, |
|
|
|
computed: { |
|
|
|
...mapState(['category']) |
|
|
|
...mapState(['category']), |
|
|
|
categoryList(){ |
|
|
|
return this.category[this.current].children[this.currentChildren] |
|
|
|
}, |
|
|
|
}, |
|
|
|
onLoad({ |
|
|
|
search, |
|
|
|