|
|
<template>
|
|
|
<div>
|
|
|
<cheader :title="sortName" class="list-header">
|
|
|
<i class="icon icon-filter" slot="right" @touchstart="openFilter"></i>
|
|
|
<i v-if="isiOS" class="icon icon-filter" slot="right" @touchstart="openFilter"></i>
|
|
|
<i v-else class="icon icon-filter" slot="right" @click="openFilter"></i>
|
|
|
</cheader>
|
|
|
<order :config="orderConfig" :val="order" v-if="enableOrder"></order>
|
|
|
<List :data="productList" :state="listState"></List>
|
...
|
...
|
@@ -10,6 +11,7 @@ |
|
|
</template>
|
|
|
<script>
|
|
|
const $ = require('jquery');
|
|
|
const yoho = require('yoho');
|
|
|
const Vue = require('vue');
|
|
|
const lazyload = require('vue-lazyload');
|
|
|
const infinitScroll = require('vue-infinite-scroll');
|
...
|
...
|
@@ -31,6 +33,7 @@ |
|
|
el: '#product-list',
|
|
|
data: function() {
|
|
|
return {
|
|
|
isiOS: yoho.isiOS,
|
|
|
sortName: locationQuery.title || locationQuery.sort_name, // 优先使用 title
|
|
|
orderConfig: [],
|
|
|
filterConfig: null,
|
...
|
...
|
|