...
|
...
|
@@ -2,12 +2,14 @@ |
|
|
<div class="product-list" :class="{'no-header': noheader}">
|
|
|
<header-box :title="sortName" class="list-header"></header-box>
|
|
|
<filter-box :val="order" :filter="filterConfig" v-if="enableOrder"></filter-box>
|
|
|
<product-list :data="productList" :state="listState" class="list-items"></product-list>
|
|
|
<product-list :data="productList" :state="listState" class="list-items"
|
|
|
:report-page-name="pageName" :report-page-param="pageParam"></product-list>
|
|
|
<shopping-bag :cart-count="cartCount" v-if="isApp"></shopping-bag>
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
import $ from 'jquery';
|
|
|
import _ from 'lodash';
|
|
|
import yoho from 'yoho';
|
|
|
import Vue from 'vue';
|
|
|
import lazyload from 'vue-lazyload';
|
...
|
...
|
@@ -50,7 +52,11 @@ |
|
|
inSearching: false, // 请求中
|
|
|
enableOrder: false,
|
|
|
cartCount: 0,
|
|
|
fixIosTop: false
|
|
|
fixIosTop: false,
|
|
|
|
|
|
// for yas report
|
|
|
pageName: 'h5FP_category',
|
|
|
pageParam: locationQuery.sort || ''
|
|
|
|
|
|
};
|
|
|
},
|
...
|
...
|
@@ -104,6 +110,13 @@ |
|
|
if (res.data) {
|
|
|
this.page = res.data.page;
|
|
|
this.totalPage = res.data.page_total;
|
|
|
|
|
|
// yas report param injection
|
|
|
_.each(res.data.product_list, item => {
|
|
|
item.from_page_name = this.pageName;
|
|
|
item.from_page_param = this.pageParam;
|
|
|
});
|
|
|
|
|
|
this.productList = this.productList.concat(res.data.product_list);
|
|
|
|
|
|
if (!this.filterConfig) {
|
...
|
...
|
|