|
|
<template>
|
|
|
<div>
|
|
|
<cheader :title="sortName" class="list-header"></cheader>
|
|
|
<filter-box :val="order" :filter="filterConfig" v-if="enableOrder"></filter-box>
|
|
|
<filter-box :val="order" :filter="filterConfig" v-if="enableOrder" :fix-ios-top="fixIosTop"></filter-box>
|
|
|
<product-list :data="productList" :state="listState" class="list-items"></product-list>
|
|
|
<shopping-bag :cart-count="cartCount" v-if="isApp"></shopping-bag>
|
|
|
</div>
|
...
|
...
|
@@ -48,7 +48,9 @@ |
|
|
// state
|
|
|
inSearching: false, // 请求中
|
|
|
enableOrder: false,
|
|
|
cartCount: 0
|
|
|
cartCount: 0,
|
|
|
fixIosTop: false
|
|
|
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
...
|
...
|
@@ -180,6 +182,9 @@ |
|
|
bus.$on('app.shoppingcart.refresh', this.refreshCart);
|
|
|
}
|
|
|
|
|
|
if(yoho.isiOS) {
|
|
|
this.fixIosTop = true;
|
|
|
}
|
|
|
}
|
|
|
};
|
|
|
|
...
|
...
|
|